BGC Tools
Public Member Functions | Data Fields
BGC.Users.UserData Class Reference
Inheritance diagram for BGC.Users.UserData:
Inheritance graph
[legend]
Collaboration diagram for BGC.Users.UserData:
Collaboration graph
[legend]

Public Member Functions

 UserData (string userName)
 
- Public Member Functions inherited from BGC.Users.ProfileData
 ProfileData (string userName)
 
virtual void Clear ()
 Clear all values and keys More...
 
void SetInt (string key, int value)
 Set value at indicated key More...
 
void SetBool (string key, bool value)
 Set value at indicated key More...
 
void SetString (string key, string value)
 Set value at indicated key More...
 
void SetFloat (string key, float value)
 Set value at indicated key More...
 
void SetDouble (string key, double value)
 Set value at indicated key More...
 
void SetJsonValue (string key, JsonValue value)
 Set value at indicated key More...
 
void SetJsonArray (string key, JsonArray value)
 Set value at indicated key More...
 
int GetInt (string key, int defaultReturn=0)
 Get value associated with indicated key More...
 
bool GetBool (string key, bool defaultReturn=false)
 Get value associated with indicated key More...
 
float GetFloat (string key, float defaultReturn=0f)
 Get value associated with indicated key More...
 
double GetDouble (string key, double defaultReturn=0.0)
 Get value associated with indicated key More...
 
string GetString (string key, string defaultReturn="")
 Get value associated with indicated key More...
 
JsonValue GetJsonValue (string key, JsonValue defaultReturn=default(JsonValue))
 Get value associated with indicated key More...
 
JsonArray GetJsonArray (string key, JsonArray defaultReturn=default(JsonArray))
 Get value associated with indicated key More...
 
bool HasKey (string key)
 Get if any value is associated with indicated key More...
 
void RemoveKey (string key)
 Remove any value is associated with indicated key More...
 
void Serialize ()
 Save contents to file More...
 
bool Deserialize ()
 Load user contents from file More...
 
virtual void DeletePlayerData ()
 

Data Fields

override bool IsDefault => false
 

Additional Inherited Members

- Protected Attributes inherited from BGC.Users.ProfileData
string PlayerFilePath
 Path of the user datafile More...
 
- Properties inherited from BGC.Users.ProfileData
string UserName [get]
 
abstract bool IsDefault [get]
 Is this an instance of default data? More...
 

Detailed Description

Definition at line 3 of file UserData.cs.

Constructor & Destructor Documentation

◆ UserData()

BGC.Users.UserData.UserData ( string  userName)
inline

Definition at line 8 of file UserData.cs.

9  : base(userName)
10  {
11  }

Field Documentation

◆ IsDefault

override bool BGC.Users.UserData.IsDefault => false

Definition at line 5 of file UserData.cs.


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