Méthode | Description | |
---|---|---|
Apply ( |
Adds creature to the guild as applicant.
|
|
ChangeStone ( Guild guild, GuildStoneType stoneType ) : void |
Changes the look of the guild's stone.
|
|
ConvertPlayPoints ( |
Gives all of creature's play points to guild as guild points.
|
|
CreateGuild ( Party party, string name, GuildType type, GuildVisibility visibility ) : void |
Creates new guild with the members from the party.
|
|
DestroyStone ( Guild guild ) : void |
Destroy's guild's stone.
|
|
DonateGold ( |
Donates the given amount of gold from the creature to guild.
|
|
DonateItem ( |
Donates the given item from the creature to guild. The item is converted to its worth, e.g. Gold and checks add their actual amounts, while other items use their sell price. While it's seemingly pointless to make a dedicated DonateItem method, maybe we can use this for something at some point, e.g. donating items that other members can retrieve? |
|
GuildManager ( ) : Aura.Channel.Network.Sending |
Creates new manager instance.
|
|
Initialize ( ) : void |
Initializes manager, loading all guilds from database and subscribing to relevant events.
|
|
PlaceStone ( Guild guild ) : void |
Places stone for guild in world.
|
|
SetGuildForCharacter ( Creature character ) : void |
Sets the character's Guild and GuildMember properties if they're in a guild.
|
|
SetStone ( Guild guild ) : void |
Places stone and saves its location to database.
|
Méthode | Description | |
---|---|---|
LoadGuild ( Guild guild ) : void |
Loads given guild.
|
|
OnSyncGuildAdded ( Guild guild ) : void |
Called when a guild is added during synchronization. As long as guilds are only created by players at run-time this should generally never do anything, because all members that need to be updated will be on the channel where the guild was created. |
|
OnSyncGuildMemberAccepted ( Guild guild, GuildMember member ) : void |
Called when a member's rank changes from Applied to !Declined during synchronization.
|
|
OnSyncGuildMemberAdded ( Guild guild, GuildMember member ) : void |
Called when a guild member is added during synchronization. Shouldn't happen during normal game-play, as the member is added to the guild when they apply. |
|
OnSyncGuildMemberDeclined ( Guild guild, GuildMember member ) : void |
Called when a member's rank changes from Applied to Declined during synchronization.
|
|
OnSyncGuildMemberRemoved ( Guild guild, GuildMember member ) : void |
Called when a guild member is removed during synchronization. Happens when a member leaves, is kicked, or is removed from the db on another channel. |
|
OnSyncGuildMemberUpdated ( Guild guild, GuildMember member ) : void |
Called when a member's rank changed during synchronization. For example, when the leader changed their rank. |
|
OnSyncGuildRemoved ( Guild guild ) : void |
Called when a guild is removed during synchronization. This will happen if a guild is disbanded from this or another channel. |
Méthode | Description | |
---|---|---|
AddGold ( Guild guild, int amount ) : void |
Adds gold and saves guild's resources to db.
|
|
ForOnlineMembers ( Guild guild, Action |
Executes the given action for all members of guild that are online.
|
|
GetStone ( long guildId ) : |
Returns stone prop of the given guild.
|
|
OnCreatureConnected ( |
Called when a creature connected to the channel.
|
|
OnMabiTick ( |
Called every 5 minutes to synchronize guild information.
|
|
OnStoneTouch ( |
Prop behavior for guild stones.
|
|
UpdateStoneLocation ( Guild guild ) : void |
Updates the guild stone's location for all members.
|
public Apply ( |
||
creature | ||
guild | Guild | |
application | string | |
Résultat | void |
public ChangeStone ( Guild guild, GuildStoneType stoneType ) : void | ||
guild | Guild | |
stoneType | GuildStoneType | |
Résultat | void |
public ConvertPlayPoints ( |
||
creature | ||
guild | Guild | |
Résultat | void |
public CreateGuild ( Party party, string name, GuildType type, GuildVisibility visibility ) : void | ||
party | Party | |
name | string | |
type | GuildType | |
visibility | GuildVisibility | |
Résultat | void |
public DonateGold ( |
||
creature | ||
guild | Guild | |
amount | int | |
Résultat | void |
public DonateItem ( |
||
creature | ||
guild | Guild | |
item | Item | |
Résultat | void |
public GuildManager ( ) : Aura.Channel.Network.Sending | ||
Résultat | Aura.Channel.Network.Sending |
protected OnSyncGuildAdded ( Guild guild ) : void | ||
guild | Guild | |
Résultat | void |
protected OnSyncGuildMemberAccepted ( Guild guild, GuildMember member ) : void | ||
guild | Guild | |
member | GuildMember | |
Résultat | void |
protected OnSyncGuildMemberAdded ( Guild guild, GuildMember member ) : void | ||
guild | Guild | |
member | GuildMember | |
Résultat | void |
protected OnSyncGuildMemberDeclined ( Guild guild, GuildMember member ) : void | ||
guild | Guild | |
member | GuildMember | |
Résultat | void |
protected OnSyncGuildMemberRemoved ( Guild guild, GuildMember member ) : void | ||
guild | Guild | |
member | GuildMember | |
Résultat | void |
protected OnSyncGuildMemberUpdated ( Guild guild, GuildMember member ) : void | ||
guild | Guild | |
member | GuildMember | |
Résultat | void |
protected OnSyncGuildRemoved ( Guild guild ) : void | ||
guild | Guild | |
Résultat | void |
public SetGuildForCharacter ( Creature character ) : void | ||
character | Creature | |
Résultat | void |