|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| delegate void | TextProcessAction (ref string text) |
| Preferences (string path, bool parseAllTypes=false, bool useBson=false) | |
| bool | Load () |
| bool | Save (bool canCreateFile=true) |
| void | Clear () |
| void | Put (string name, object value) |
| bool | Contains (string name) |
| T | Get< T > (string name, T defaultValue) |
| void | Get< T > (string name, ref T currentValue) |
| List< string > | GetAllKeys () |
Public Attributes | |
| readonly bool | UseBson |
| bool | AutoSave |
Events | |
| Action< Preferences > | OnSave |
| Action< Preferences > | OnLoad |
| TextProcessAction | OnProcessText |
Private Attributes | |
| Dictionary< string, object > | _data = new Dictionary<string, object>() |
| readonly string | _path |
| readonly JsonSerializerSettings | _serializerSettings |
| readonly object | _lock = new object() |
Definition at line 12 of file Preferences.cs.