diff options
| author | Michael <[email protected]> | 2017-05-29 20:08:30 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-29 20:08:30 -0400 |
| commit | 37ac4c684ce3904c5ec614362ed99bb9867ca0f3 (patch) | |
| tree | 0f2418da210f1f3c315d10f3b197c15f61291f49 /ShiftOS.Objects | |
| parent | ff47625d2547deed441a853569f9fe84197e23b6 (diff) | |
| download | shiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.tar.gz shiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.tar.bz2 shiftos_thereturn-37ac4c684ce3904c5ec614362ed99bb9867ca0f3.zip | |
It's amazing what talking to Rylan can do to an integer datatype.
Diffstat (limited to 'ShiftOS.Objects')
| -rw-r--r-- | ShiftOS.Objects/EngineShiftnetSubscription.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.Objects/Save.cs | 4 | ||||
| -rw-r--r-- | ShiftOS.Objects/Shop.cs | 2 | ||||
| -rw-r--r-- | ShiftOS.Objects/UniteClient.cs | 12 |
4 files changed, 10 insertions, 10 deletions
diff --git a/ShiftOS.Objects/EngineShiftnetSubscription.cs b/ShiftOS.Objects/EngineShiftnetSubscription.cs index 1296a98..c319f18 100644 --- a/ShiftOS.Objects/EngineShiftnetSubscription.cs +++ b/ShiftOS.Objects/EngineShiftnetSubscription.cs @@ -10,7 +10,7 @@ namespace ShiftOS.Objects { public string Name { get; set; } public string Description { get; set; } - public int CostPerMonth { get; set; } + public uint CostPerMonth { get; set; } public int DownloadSpeed { get; set; } public string Company { get; set; } } diff --git a/ShiftOS.Objects/Save.cs b/ShiftOS.Objects/Save.cs index 8675a35..0fef7b3 100644 --- a/ShiftOS.Objects/Save.cs +++ b/ShiftOS.Objects/Save.cs @@ -41,9 +41,9 @@ 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; + private ulong _cp = 0; - public long Codepoints + public ulong Codepoints { get { diff --git a/ShiftOS.Objects/Shop.cs b/ShiftOS.Objects/Shop.cs index 65f5746..c603523 100644 --- a/ShiftOS.Objects/Shop.cs +++ b/ShiftOS.Objects/Shop.cs @@ -42,7 +42,7 @@ namespace ShiftOS.Objects { public string Name { get; set; } public string Description { get; set; } - public int Cost { get; set; } + public ulong Cost { get; set; } public int FileType { get; set; } public byte[] MUDFile { get; set; } } diff --git a/ShiftOS.Objects/UniteClient.cs b/ShiftOS.Objects/UniteClient.cs index d8e34b7..ccd721b 100644 --- a/ShiftOS.Objects/UniteClient.cs +++ b/ShiftOS.Objects/UniteClient.cs @@ -83,9 +83,9 @@ namespace ShiftOS.Unite /// Get the Pong codepoint highscore for the current user. /// </summary> /// <returns>The amount of Codepoints returned by the server</returns> - public int GetPongCP() + public ulong GetPongCP() { - return Convert.ToInt32(MakeCall("/API/GetPongCP")); + return Convert.ToUInt64(MakeCall("/API/GetPongCP")); } /// <summary> @@ -110,7 +110,7 @@ namespace ShiftOS.Unite /// Set the pong Codepoints record for the user /// </summary> /// <param name="value">The amount of Codepoints to set the record to</param> - public void SetPongCP(int value) + public void SetPongCP(ulong value) { MakeCall("/API/SetPongCP/" + value.ToString()); } @@ -182,16 +182,16 @@ namespace ShiftOS.Unite /// Get the user's codepoints. /// </summary> /// <returns>The amount of codepoints stored on the server for this user.</returns> - public long GetCodepoints() + public ulong GetCodepoints() { - return Convert.ToInt64(MakeCall("/API/GetCodepoints")); + return Convert.ToUInt64(MakeCall("/API/GetCodepoints")); } /// <summary> /// Set the user's codepoints. /// </summary> /// <param name="value">The amount of codepoints to set the user's codepoints value to.</param> - public void SetCodepoints(long value) + public void SetCodepoints(ulong value) { MakeCall("/API/SetCodepoints/" + value.ToString()); } |
