Property | Type | Description | |
---|---|---|---|
IsPublic | bool | ||
MOTD | string | ||
MaxPlayers | int | ||
Salt | int | ||
Salt | long | ||
ServerName | string | ||
ServerURL | string | ||
VerifyNames | bool | ||
classes | ClassList | ||
errors | string | ||
logger | Logger |
Method | Description | |
---|---|---|
Config ( |
||
GetBasePriority ( ) : System.Diagnostics.ProcessPriorityClass | ||
GetBool ( string key ) : bool | ||
GetInt ( string key ) : int | ||
GetString ( string key ) : string | ||
Init ( string configFileName ) : bool | ||
Load ( string configFileName ) : bool | ||
LoadDefaults ( ) : void | ||
LoadDefaultsAdvanced ( ) : void | ||
LoadDefaultsGeneral ( ) : void | ||
LoadDefaultsLogging ( ) : void | ||
LoadDefaultsSavingAndBackup ( ) : void | ||
LoadDefaultsSecurity ( ) : void | ||
Log ( string format, LogType type ) : void | ||
ParseLogOptions ( XElement el, bool &list ) : void | ||
ResetClasses ( ) : void | ||
Save ( string configFileName ) : bool | ||
SetValue ( string key, string value ) : bool |
Method | Description | |
---|---|---|
ApplyConfig ( ) : void | ||
DefineClass ( System.Xml.Linq.XElement el ) : bool | ||
DefineDefaultClasses ( ) : System.Xml.Linq.XElement | ||
ReadBool ( XElement doc, string fieldName, bool _default ) : bool | ||
ReadInt ( XElement doc, string fieldName, int _default ) : int | ||
ReadString ( XElement doc, string fieldName, string _default ) : string | ||
ValidateBool ( string key, string value ) : bool | ||
ValidateColor ( string key, string value ) : bool | ||
ValidateEnum ( string key, string value ) : bool | ||
ValidateInt ( string key, string value, int minRange, int maxRange ) : bool | ||
ValidateString ( string key, string value, int minLength, int maxLength ) : bool |
public Config ( |
||
_world | ||
_classes | ||
_logger | Logger | |
return | System |
public GetBasePriority ( ) : System.Diagnostics.ProcessPriorityClass | ||
return | System.Diagnostics.ProcessPriorityClass |
public static Init ( string configFileName ) : bool | ||
configFileName | string | |
return | bool |
public LoadDefaultsSavingAndBackup ( ) : void | ||
return | void |
public Log ( string format, LogType type ) : void | ||
format | string | |
type | LogType | |
return | void |
public ParseLogOptions ( XElement el, bool &list ) : void | ||
el | XElement | |
list | bool | |
return | void |
public SetValue ( string key, string value ) : bool | ||
key | string | |
value | string | |
return | bool |