Table of Contents

Struct GuildRankData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

id long

Primary key, or zero when not yet written.

version long

Concurrency token.

guildID long

Owning guild.

rankOrder byte

Ordering position.

name string

Display name.

permissions long

Permission bit mask.

Fields

GuildID

The guild that owns this rank.

public readonly long GuildID

Field Value

long

ID

Primary key. Zero for a row that has not been written yet.

public readonly long ID

Field Value

long

Name

Display name.

public readonly string Name

Field Value

string

Permissions

Permission bit mask.

public readonly long Permissions

Field Value

long

RankOrder

Ordering position. Higher is more senior. Unique within a guild.

public readonly byte RankOrder

Field Value

byte

Version

Application-level concurrency token.

public readonly long Version

Field Value

long