Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.IO.Preferences Class Reference

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)
 
Get< T > (string name, T defaultValue)
 
void Get< T > (string name, ref T currentValue)
 
List< stringGetAllKeys ()
 

Public Attributes

readonly bool UseBson
 
bool AutoSave
 

Events

Action< PreferencesOnSave
 
Action< PreferencesOnLoad
 
TextProcessAction OnProcessText
 

Private Attributes

Dictionary< string, object > _data = new Dictionary<string, object>()
 
readonly string _path
 
readonly JsonSerializerSettings _serializerSettings
 
readonly object _lock = new object()
 

Detailed Description

Definition at line 12 of file Preferences.cs.


The documentation for this class was generated from the following file: