C# Class Aura.Msgr.GuildManager

Inheritance: Aura.Shared.Database.AbstractGuildManager
Exibir arquivo Open project: aura-project/aura

Public Methods

Method Description
ForOnlineMembers ( Guild guild, Action action ) : void

Executes the given action for all members of guild that are online.

Initialize ( ) : void

Initializes manager, loading all guilds and starting update tick.

Protected Methods

Method Description
OnSyncGuildAdded ( Guild guild ) : void
OnSyncGuildMemberAccepted ( Guild guild, GuildMember member ) : void
OnSyncGuildMemberAdded ( Guild guild, GuildMember member ) : void
OnSyncGuildMemberDeclined ( Guild guild, GuildMember member ) : void
OnSyncGuildMemberRemoved ( Guild guild, GuildMember member ) : void
OnSyncGuildMemberUpdated ( Guild guild, GuildMember member ) : void
OnSyncGuildRemoved ( Guild guild ) : void

Private Methods

Method Description
OnUpdateTick ( object state ) : void

Called every 5 minutes to synchronize guild information.

Method Details

ForOnlineMembers() public static method

Executes the given action for all members of guild that are online.
public static ForOnlineMembers ( Guild guild, Action action ) : void
guild Guild
action Action
return void

Initialize() public method

Initializes manager, loading all guilds and starting update tick.
public Initialize ( ) : void
return void

OnSyncGuildAdded() protected method

protected OnSyncGuildAdded ( Guild guild ) : void
guild Guild
return void

OnSyncGuildMemberAccepted() protected method

protected OnSyncGuildMemberAccepted ( Guild guild, GuildMember member ) : void
guild Guild
member Aura.Shared.Database.GuildMember
return void

OnSyncGuildMemberAdded() protected method

protected OnSyncGuildMemberAdded ( Guild guild, GuildMember member ) : void
guild Guild
member Aura.Shared.Database.GuildMember
return void

OnSyncGuildMemberDeclined() protected method

protected OnSyncGuildMemberDeclined ( Guild guild, GuildMember member ) : void
guild Guild
member Aura.Shared.Database.GuildMember
return void

OnSyncGuildMemberRemoved() protected method

protected OnSyncGuildMemberRemoved ( Guild guild, GuildMember member ) : void
guild Guild
member Aura.Shared.Database.GuildMember
return void

OnSyncGuildMemberUpdated() protected method

protected OnSyncGuildMemberUpdated ( Guild guild, GuildMember member ) : void
guild Guild
member Aura.Shared.Database.GuildMember
return void

OnSyncGuildRemoved() protected method

protected OnSyncGuildRemoved ( Guild guild ) : void
guild Guild
return void