Controller for setting and checking per-rank permissions and per-player exceptions. Used by World.AccessSecurity, World.BuildSecurity, and Zone.
More...
Controller for setting and checking per-rank permissions and per-player exceptions. Used by World.AccessSecurity, World.BuildSecurity, and Zone.
| fCraft.SecurityController.SecurityController |
( |
| ) |
|
Creates a new controller with no restrictions.
| fCraft.SecurityController.SecurityController |
( |
[NotNull] XContainer |
el, |
|
|
bool |
parseExceptions |
|
) |
| |
Creates a copy of an existing controller.
| bool fCraft.SecurityController.Check |
( |
[NotNull] PlayerInfo |
info | ) |
|
Checks whether a player is allowed by this controller.
- Parameters
-
- Returns
- True if player is allowed.
Checks player's permission status with this controller, in detail.
- Parameters
-
- Returns
- Security check result.
| object fCraft.SecurityController.Clone |
( |
| ) |
|
Creates a copy of an existing controller.
Either specially excludes a player (if their state was previously neutral), or removes a specific inclusion.
- Parameters
-
- Returns
- Previous exception state of the player.
| string fCraft.SecurityController.GetDescription |
( |
[NotNull] IClassy |
target, |
|
|
[NotNull] string |
noun, |
|
|
[NotNull] string |
verb |
|
) |
| |
Creates a description string of the controller.
- Parameters
-
| 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"). |
Either specially includes a player (if their state was previously neutral), or removes a specific exclusion.
- Parameters
-
- Returns
- Previous exception state of the player.
| void fCraft.SecurityController.Reset |
( |
| ) |
|
Resets all permissions: minimum rank, excluded player list, and included player list.
| void fCraft.SecurityController.ResetExcludedList |
( |
| ) |
|
Clears the list of specifically excluded players.
| void fCraft.SecurityController.ResetIncludedList |
( |
| ) |
|
Clears the list of specifically included players.
| void fCraft.SecurityController.ResetMinRank |
( |
| ) |
|
| XElement fCraft.SecurityController.Serialize |
( |
| ) |
|
| XElement fCraft.SecurityController.Serialize |
( |
[NotNull] string |
tagName | ) |
|
| const string fCraft.SecurityController.XmlRootElementName = "PermissionController" |
| bool fCraft.SecurityController.HasRankRestriction |
|
get |
True if a rank restriction is in effect. This property is used to distinguish cases of no MinRank set vs. cases of MinRank set to LowestRank.
| bool fCraft.SecurityController.HasRestrictions |
|
get |
True if this controller has any restrictions (per-rank or per-player).
| Rank fCraft.SecurityController.MinRank |
|
getset |
Lowest allowed player rank.
| EventHandler fCraft.SecurityController.Changed |
The documentation for this class was generated from the following file: