Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Type: PlayerSaveFile
- // Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: E28DCA22-3777-4723-8281-E05AF28F0AAA
- // Assembly location: D:\Andy's\Games\New folder\Assembly-CSharp.dll
- using System;
- using System.Collections.Generic;
- public class PlayerSaveFile
- {
- public string login_Name = string.Empty;
- public string auth_Token = string.Empty;
- public string account_email = string.Empty;
- public string account_registered = string.Empty;
- public bool option_sound_on = true;
- public bool option_music_on = true;
- public string allChatHistoryJSON = string.Empty;
- public int leaguePanelState = 1;
- public DateTime lastSavedTime = DateTime.MinValue;
- public string allCharacterCustomizationsJSON = string.Empty;
- public BaseCharacterID lastUsedBaseCharacterID = BaseCharacterID.Dust;
- public string objectiveJSON = string.Empty;
- public string allPlayerInfoString = string.Empty;
- public string adsModelSaveString = string.Empty;
- public bool isRegistered;
- public bool isLoginThroughFaceBook;
- public Language option_language;
- public int lastLeagueIDValue;
- public int lastReadLobbyHint;
- public PlayerSaveFile()
- {
- }
- public PlayerSaveFile(Dictionary<string, object> iSavedDict)
- {
- this.login_Name = WebModel.GetStringFromResponseData("login_Name", iSavedDict);
- this.auth_Token = WebModel.GetStringFromResponseData("auth_Token", iSavedDict);
- this.account_email = WebModel.GetStringFromResponseData("account_email", iSavedDict);
- this.allCharacterCustomizationsJSON = WebModel.GetStringFromResponseData("allCharacterCustomizationsJSON", iSavedDict);
- this.lastUsedBaseCharacterID = (BaseCharacterID) WebModel.GetIntFromResponseData("lastUsedBaseCharacterID", iSavedDict);
- this.isRegistered = WebModel.GetBoolFromResponseData("isRegistered", iSavedDict);
- this.isLoginThroughFaceBook = WebModel.GetBoolFromResponseData("isLoginThroughFaceBook", iSavedDict);
- this.option_sound_on = WebModel.GetBoolFromResponseData("option_sound_on", iSavedDict);
- this.option_music_on = WebModel.GetBoolFromResponseData("option_music_on", iSavedDict);
- this.option_language = Language.English;
- if (iSavedDict.ContainsKey("option_language"))
- this.option_language = (Language) WebModel.GetIntFromResponseData("option_language", iSavedDict);
- this.allChatHistoryJSON = WebModel.GetStringFromResponseData("allChatHistoryJSON", iSavedDict);
- this.objectiveJSON = WebModel.GetStringFromResponseData("objectiveJSON", iSavedDict);
- if (iSavedDict.ContainsKey("leaguePanelState"))
- {
- this.leaguePanelState = WebModel.GetIntFromResponseData("leaguePanelState", iSavedDict);
- if (this.leaguePanelState == -1)
- this.leaguePanelState = 1;
- }
- if (iSavedDict.ContainsKey("lastSavedTime"))
- DateTime.TryParse(iSavedDict["lastSavedTime"].ToString(), out this.lastSavedTime);
- if (iSavedDict.ContainsKey("lastLeagueIDValue"))
- this.lastLeagueIDValue = int.Parse(iSavedDict["lastLeagueIDValue"].ToString());
- if (iSavedDict.ContainsKey("lastReadLobbyHint"))
- this.lastReadLobbyHint = int.Parse(iSavedDict["lastReadLobbyHint"].ToString());
- this.allPlayerInfoString = WebModel.GetStringFromResponseData("allPlayerInfoString", iSavedDict);
- this.adsModelSaveString = WebModel.GetStringFromResponseData("adsModelSaveString", iSavedDict);
- }
- public Dictionary<string, object> GetSaveDict()
- {
- Dictionary<string, object> dictionary = new Dictionary<string, object>();
- dictionary["login_Name"] = (object) this.login_Name;
- dictionary["auth_Token"] = (object) this.auth_Token;
- dictionary["account_email"] = (object) this.account_email;
- dictionary["allCharacterCustomizationsJSON"] = (object) this.allCharacterCustomizationsJSON;
- dictionary["lastUsedBaseCharacterID"] = (object) this.lastUsedBaseCharacterID;
- dictionary["option_sound_on"] = (object) (bool) (this.option_sound_on ? 1 : 0);
- dictionary["option_music_on"] = (object) (bool) (this.option_music_on ? 1 : 0);
- dictionary["option_language"] = (object) this.option_language;
- dictionary["isRegistered"] = (object) (bool) (this.isRegistered ? 1 : 0);
- dictionary["isLoginThroughFaceBook"] = (object) (bool) (this.isLoginThroughFaceBook ? 1 : 0);
- dictionary["allChatHistoryJSON"] = (object) this.allChatHistoryJSON;
- dictionary["leaguePanelState"] = (object) this.leaguePanelState;
- dictionary["lastSavedTime"] = (object) this.lastSavedTime;
- dictionary["allPlayerInfoString"] = (object) this.allPlayerInfoString;
- dictionary["adsModelSaveString"] = (object) this.adsModelSaveString;
- dictionary["objectiveJSON"] = (object) this.objectiveJSON;
- dictionary["lastLeagueIDValue"] = (object) this.lastLeagueIDValue;
- dictionary["lastReadLobbyHint"] = (object) this.lastReadLobbyHint;
- return dictionary;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement