C# Class fCraft.PermissionController

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

Public Methods

Method Description
Can ( PlayerInfo player ) : bool
Can ( PlayerInfo player, PlayerInfo targetPlayer ) : bool
Can ( PlayerInfo player, PlayerInfo targetPlayer, Rank targetRank ) : bool
Can ( PlayerInfo player, PlayerInfo targetPlayer, int quantity ) : bool
Can ( PlayerInfo player, Rank targetRank ) : bool
Can ( PlayerInfo player, int quantity ) : bool
CanGrant ( PlayerInfo player ) : bool
CanRevoke ( PlayerInfo player ) : bool
Exclude ( Rank rank ) : PermissionOverride
Exclude ( string name ) : PermissionOverride
GetLimit ( PlayerInfo player ) : PermissionLimits
Include ( Rank rank, PermissionLimits limits ) : PermissionOverride
Include ( string name, PermissionLimits limits ) : PermissionOverride
PermissionController ( [ parent ) : System

Private Methods

Method Description
GetPlayerLimit ( PlayerInfo player ) : PermissionLimits
GetRankLimit ( Rank rank ) : PermissionLimits

Method Details

Can() public method

public Can ( PlayerInfo player ) : bool
player PlayerInfo
return bool

Can() public method

public Can ( PlayerInfo player, PlayerInfo targetPlayer ) : bool
player PlayerInfo
targetPlayer PlayerInfo
return bool

Can() public method

public Can ( PlayerInfo player, PlayerInfo targetPlayer, Rank targetRank ) : bool
player PlayerInfo
targetPlayer PlayerInfo
targetRank Rank
return bool

Can() public method

public Can ( PlayerInfo player, PlayerInfo targetPlayer, int quantity ) : bool
player PlayerInfo
targetPlayer PlayerInfo
quantity int
return bool

Can() public method

public Can ( PlayerInfo player, Rank targetRank ) : bool
player PlayerInfo
targetRank Rank
return bool

Can() public method

public Can ( PlayerInfo player, int quantity ) : bool
player PlayerInfo
quantity int
return bool

CanGrant() public method

public CanGrant ( PlayerInfo player ) : bool
player PlayerInfo
return bool

CanRevoke() public method

public CanRevoke ( PlayerInfo player ) : bool
player PlayerInfo
return bool

Exclude() public method

public Exclude ( Rank rank ) : PermissionOverride
rank Rank
return PermissionOverride

Exclude() public method

public Exclude ( string name ) : PermissionOverride
name string
return PermissionOverride

GetLimit() public method

public GetLimit ( PlayerInfo player ) : PermissionLimits
player PlayerInfo
return PermissionLimits

Include() public method

public Include ( Rank rank, PermissionLimits limits ) : PermissionOverride
rank Rank
limits PermissionLimits
return PermissionOverride

Include() public method

public Include ( string name, PermissionLimits limits ) : PermissionOverride
name string
limits PermissionLimits
return PermissionOverride

PermissionController() public method

public PermissionController ( [ parent ) : System
parent [
return System