diff options
| author | Michael <[email protected]> | 2017-05-21 08:31:48 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-21 08:31:48 -0400 |
| commit | 6eb764bd5c1342fc7d3d6f2bd46069462b2a48db (patch) | |
| tree | c5a61830d05fe2f052fc978f0bb388a054e0f885 /ShiftOS.Objects/Save.cs | |
| parent | 9999324bd7751f536741c108322766421dae1a52 (diff) | |
| download | shiftos_thereturn-6eb764bd5c1342fc7d3d6f2bd46069462b2a48db.tar.gz shiftos_thereturn-6eb764bd5c1342fc7d3d6f2bd46069462b2a48db.tar.bz2 shiftos_thereturn-6eb764bd5c1342fc7d3d6f2bd46069462b2a48db.zip | |
Hmmmmmm
Diffstat (limited to 'ShiftOS.Objects/Save.cs')
| -rw-r--r-- | ShiftOS.Objects/Save.cs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/ShiftOS.Objects/Save.cs b/ShiftOS.Objects/Save.cs index cc19c79..f4e1e09 100644 --- a/ShiftOS.Objects/Save.cs +++ b/ShiftOS.Objects/Save.cs @@ -41,8 +41,33 @@ namespace ShiftOS.Objects [Obsolete("This save variable is no longer used in Beta 2.4 and above of ShiftOS. Please use ShiftOS.Engine.SaveSystem.CurrentUser.Username to access the current user's username.")] public string Username { get; set; } + private long _cp = 0; + + public long Codepoints + { + get + { + if (!string.IsNullOrWhiteSpace(UniteAuthToken)) + { + var uc = new ShiftOS.Unite.UniteClient("", UniteAuthToken); + return uc.GetCodepoints(); + } + else + return _cp; + } + set + { + if (!string.IsNullOrWhiteSpace(UniteAuthToken)) + { + var uc = new ShiftOS.Unite.UniteClient("", UniteAuthToken); + uc.SetCodepoints(value); + } + else + _cp = value; + + } + } - public long Codepoints { get; set; } public Dictionary<string, bool> Upgrades { get; set; } public int StoryPosition { get; set; } public string Language { get; set; } |
