Struct GuildRankData
One editable guild rank: an ordering position, a display name and a permission mask.
public struct GuildRankData
- Inherited Members
Remarks
RankOrder is the same byte character_guild.rank has always stored, so
the move from the hard-coded GuildRank enum to per-guild rank rows rewrites no
membership row. Higher order is more senior; the guild's leader is the member holding the
highest order that exists in that guild.
Permissions is the GuildPermissions flag mask, carried as a plain
long because the database project deliberately does not depend on the shared
assembly's enum for storage — the column is a bitfield either way, and the server casts.
Constructors
GuildRankData(long, long, long, byte, string, long)
Initializes a new guild rank row.
public GuildRankData(long id, long version, long guildID, byte rankOrder, string name, long permissions)
Parameters
idlongPrimary key, or zero when not yet written.
versionlongConcurrency token.
guildIDlongOwning guild.
rankOrderbyteOrdering position.
namestringDisplay name.
permissionslongPermission bit mask.
Fields
GuildID
The guild that owns this rank.
public readonly long GuildID
Field Value
ID
Primary key. Zero for a row that has not been written yet.
public readonly long ID
Field Value
Name
Display name.
public readonly string Name
Field Value
Permissions
Permission bit mask.
public readonly long Permissions
Field Value
RankOrder
Ordering position. Higher is more senior. Unique within a guild.
public readonly byte RankOrder
Field Value
Version
Application-level concurrency token.
public readonly long Version