static void AddCharacterData(string _Player, CharacterData _CharacterData, DateTime _DateTime) { if (sm_OldHistory.ContainsKey(_Player) == false) { sm_OldHistory.Add(_Player, new PlayerData.PlayerHistory()); } sm_OldHistory[_Player].AddToHistory(_CharacterData, new UploadID(0, _DateTime)); }
static CharacterData GenerateCharacterData_LVL60(PlayerRace _Race, PlayerClass _Class, PlayerSex _Sex) { CharacterData characterData = new CharacterData(""); characterData.Race = _Race; characterData.Class = _Class; characterData.Sex = _Sex; characterData.Level = 60; return(characterData); }
public CharacterDataHistoryItem(SerializationInfo _Info, StreamingContext _Context) { Data = (CharacterData)_Info.GetValue("Data", typeof(CharacterData)); Uploader = (UploadID)_Info.GetValue("Uploader", typeof(UploadID)); }
//public CharacterDataHistoryItem() //{ } public CharacterDataHistoryItem(CharacterData _Character, UploadID _Uploader) { Data = _Character; Uploader = _Uploader; }
public void AddToHistory(CharacterData _CharacterData, UploadID _Uploader) { UtilityClass.AddToHistory.RunGeneric(CharacterHistory, _CharacterData, _Uploader); }