Table of Contents

Class GuildEventData

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA event data for guild join and leave events.

public class GuildEventData : EventData
Inheritance
GuildEventData
Inherited Members

Constructors

GuildEventData(ICharacter, long, byte, GuildPermissions)

Creates a new GuildEventData.

public GuildEventData(ICharacter initiator, long guildID, byte rankOrder, GuildPermissions permissions)

Parameters

initiator ICharacter

The character joining or leaving the guild.

guildID long

The guild ID.

rankOrder byte

The ladder position in the guild.

permissions GuildPermissions

The permissions that rank holds.

Properties

GuildID

The guild ID. Zero indicates no guild.

public long GuildID { get; }

Property Value

long

Permissions

The permissions the character's rank holds.

public GuildPermissions Permissions { get; }

Property Value

GuildPermissions

Remarks

Included alongside the order because a rank's POSITION and its POWERS are no longer the same fact. Rank 2 in one guild may invite and rank 2 in another may not, so a trigger that wants to fire for "an officer" has to ask about the permission, not the number.

RankOrder

The character's position on the guild's rank ladder. Zero indicates no guild.

public byte RankOrder { get; }

Property Value

byte

Remarks

This was a GuildRank enum value. Ranks are now rows a guild owns, so there is no fixed set of names an ECA condition could compare against — the ladder position is the only thing that means the same in every guild. A designer asking "is this character senior?" wants Permissions; one asking "how high are they?" wants this.