C# Class fCraft.PlayerClass

显示文件 Open project: fragmer/fCraft Class Usage Examples

Public Properties

Property Type Description
color string
index int
maxPromote PlayerClass
maxPromoteVal string
name string
permissions bool[]
prefix string
rank byte
reservedSlot bool
spamKickThreshold int

Public Methods

Method Description
Can ( Permissions permission ) : bool
CanBan ( PlayerClass other ) : bool
CanDemote ( PlayerClass other ) : bool
CanKick ( PlayerClass other ) : bool
CanPromote ( PlayerClass other ) : bool
GetMaxBanIndex ( ) : int
GetMaxDemoteIndex ( ) : int
GetMaxKickIndex ( ) : int
GetMaxPromoteIndex ( ) : int
IsValidClassName ( string className ) : bool
IsValidPrefix ( string val ) : bool
PlayerClass ( ) : System

Method Details

Can() public method

public Can ( Permissions permission ) : bool
permission Permissions
return bool

CanBan() public method

public CanBan ( PlayerClass other ) : bool
other PlayerClass
return bool

CanDemote() public method

public CanDemote ( PlayerClass other ) : bool
other PlayerClass
return bool

CanKick() public method

public CanKick ( PlayerClass other ) : bool
other PlayerClass
return bool

CanPromote() public method

public CanPromote ( PlayerClass other ) : bool
other PlayerClass
return bool

GetMaxBanIndex() public method

public GetMaxBanIndex ( ) : int
return int

GetMaxDemoteIndex() public method

public GetMaxDemoteIndex ( ) : int
return int

GetMaxKickIndex() public method

public GetMaxKickIndex ( ) : int
return int

GetMaxPromoteIndex() public method

public GetMaxPromoteIndex ( ) : int
return int

IsValidClassName() public static method

public static IsValidClassName ( string className ) : bool
className string
return bool

IsValidPrefix() public static method

public static IsValidPrefix ( string val ) : bool
val string
return bool

PlayerClass() public method

public PlayerClass ( ) : System
return System

Property Details

color public_oe property

public string color
return string

index public_oe property

public int index
return int

maxPromote public_oe property

public PlayerClass,fCraft maxPromote
return PlayerClass

maxPromoteVal public_oe property

public string maxPromoteVal
return string

name public_oe property

public string name
return string

permissions public_oe property

public bool[] permissions
return bool[]

prefix public_oe property

public string prefix
return string

rank public_oe property

public byte rank
return byte

reservedSlot public_oe property

public bool reservedSlot
return bool

spamKickThreshold public_oe property

public int spamKickThreshold
return int