C# Класс fCraft.SecurityController

Controller for setting and checking per-rank permissions and per-player exceptions. Used by World.AccessSecurity, World.BuildSecurity, and Zone.
Наследование: ICloneable, INotifiesOnChange
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RaiseChangedEvent void
UpdatePlayerListCache void

Открытые методы

Метод Описание
Check ( [ info ) : bool

Checks whether a player is allowed by this controller.

CheckDetailed ( [ info ) : SecurityCheckResult

Checks player's permission status with this controller, in detail.

Clone ( ) : object

Creates a copy of an existing controller.

Exclude ( [ info ) : PermissionOverride

Either specially excludes a player (if their state was previously neutral), or removes a specific inclusion.

GetDescription ( [ target, [ noun, [ verb ) : string

Creates a description string of the controller.

Include ( [ info ) : PermissionOverride

Either specially includes a player (if their state was previously neutral), or removes a specific exclusion.

Reset ( ) : void

Resets all permissions: minimum rank, excluded player list, and included player list.

ResetExcludedList ( ) : void

Clears the list of specifically excluded players.

ResetIncludedList ( ) : void

Clears the list of specifically included players.

ResetMinRank ( ) : void
SecurityController ( ) : System

Creates a new controller with no restrictions.

SecurityController ( [ other ) : System

Creates a copy of an existing controller.

SecurityController ( [ el, bool parseExceptions ) : System
Serialize ( ) : System.Xml.Linq.XElement
Serialize ( [ tagName ) : System.Xml.Linq.XElement

Приватные методы

Метод Описание
RaiseChangedEvent ( ) : void
UpdatePlayerListCache ( ) : void

Описание методов

Check() публичный Метод

Checks whether a player is allowed by this controller.
public Check ( [ info ) : bool
info [ Player to check.
Результат bool

CheckDetailed() публичный Метод

Checks player's permission status with this controller, in detail.
public CheckDetailed ( [ info ) : SecurityCheckResult
info [ Player to check.
Результат SecurityCheckResult

Clone() публичный Метод

Creates a copy of an existing controller.
public Clone ( ) : object
Результат object

Exclude() публичный Метод

Either specially excludes a player (if their state was previously neutral), or removes a specific inclusion.
public Exclude ( [ info ) : PermissionOverride
info [ Player's info.
Результат PermissionOverride

GetDescription() публичный Метод

Creates a description string of the controller.
public GetDescription ( [ target, [ noun, [ verb ) : string
target [ Name of the object that owns this controller.
noun [ The type of target (e.g. "world" or "zone").
verb [ The action, in past tense, that this /// controller manages (e.g. "accessed" or "modified").
Результат string

Include() публичный Метод

Either specially includes a player (if their state was previously neutral), or removes a specific exclusion.
public Include ( [ info ) : PermissionOverride
info [ Player's info.
Результат PermissionOverride

Reset() публичный Метод

Resets all permissions: minimum rank, excluded player list, and included player list.
public Reset ( ) : void
Результат void

ResetExcludedList() публичный Метод

Clears the list of specifically excluded players.
public ResetExcludedList ( ) : void
Результат void

ResetIncludedList() публичный Метод

Clears the list of specifically included players.
public ResetIncludedList ( ) : void
Результат void

ResetMinRank() публичный Метод

public ResetMinRank ( ) : void
Результат void

SecurityController() публичный Метод

Creates a new controller with no restrictions.
public SecurityController ( ) : System
Результат System

SecurityController() публичный Метод

Creates a copy of an existing controller.
public SecurityController ( [ other ) : System
other [
Результат System

SecurityController() публичный Метод

public SecurityController ( [ el, bool parseExceptions ) : System
el [
parseExceptions bool
Результат System

Serialize() публичный Метод

public Serialize ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

Serialize() публичный Метод

public Serialize ( [ tagName ) : System.Xml.Linq.XElement
tagName [
Результат System.Xml.Linq.XElement