Table of Contents

Struct PlotAccessData

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

Plot access grant data transfer object.

public struct PlotAccessData
Inherited Members

Remarks

Carries the permission mask as the integer the row stores rather than as a resolved set, because this assembly cannot reference the shared types where PlotPermission lives. Callers mask it through FishMMO.Shared.PlotAccess.Sanitize, which is also where a bit this build does not recognise is dropped.

Constructors

PlotAccessData(long, long, long, int, long, DateTime)

public PlotAccessData(long id, long plotID, long characterID, int permissions, long grantedByCharacterID, DateTime timeGranted)

Parameters

id long
plotID long
characterID long
permissions int
grantedByCharacterID long
timeGranted DateTime

Fields

CharacterID

The character granted access.

public readonly long CharacterID

Field Value

long

GrantedByCharacterID

Who granted it.

public readonly long GrantedByCharacterID

Field Value

long

ID

Primary key.

public readonly long ID

Field Value

long

Permissions

What they may do, as a permission bitmask.

public readonly int Permissions

Field Value

int

PlotID

The plot the grant is about.

public readonly long PlotID

Field Value

long

TimeGranted

When the grant was made or last changed (UTC).

public readonly DateTime TimeGranted

Field Value

DateTime