public override void LoadFromDict(string dataKey, Dictionary <string, object> dict) { _key = dataKey; if (dict == null) { LoadFromSavedData(dataKey); } else { dict.TryGetBool(lockedKey, out _locked); dict.TryGetInt(HashcodeKey, out _Hashcode); dict.TryGetInt(posInOwnerKey, out _posInOwner); dict.TryGetInt(qualityKey, out _quality); dict.TryGetInt(starKey, out _star); dict.TryGetInt(levelKey, out _level); dict.TryGetFloat(initalQualityKey, out _initalQuality); dict.TryGetString(idKey, out _id); dict.TryGetString(ownerIdKey, out _ownerId); string customDataKey; dict.TryGetString(attitubeKey, out customDataKey); _attitube = new GDEgoddessAttiData(customDataKey); LoadFromSavedData(dataKey); } }
public override void LoadFromDict(string dataKey, Dictionary <string, object> dict) { _key = dataKey; if (dict == null) { LoadFromSavedData(dataKey); } else { dict.TryGetInt(starKey, out _star); dict.TryGetInt(volumeKey, out _volume); dict.TryGetInt(expKey, out _exp); dict.TryGetInt(rune0Key, out _rune0); dict.TryGetInt(rune1Key, out _rune1); dict.TryGetInt(rune2Key, out _rune2); dict.TryGetInt(rune3Key, out _rune3); dict.TryGetInt(indexKey, out _index); dict.TryGetInt(skillGradeKey, out _skillGrade); dict.TryGetString(idKey, out _id); dict.TryGetString(NAMEKey, out _NAME); string customDataKey; dict.TryGetString(attitubeKey, out customDataKey); _attitube = new GDEgoddessAttiData(customDataKey); dict.TryGetIntList(UseTeamIdKey, out UseTeamId); LoadFromSavedData(dataKey); } }
public GDEgoddessAttiData ShallowClone() { string newKey = Guid.NewGuid().ToString(); GDEgoddessAttiData newClone = new GDEgoddessAttiData(newKey); newClone.agile = agile; newClone.stamina = stamina; newClone.recovery = recovery; newClone.leader = leader; return(newClone); }
public void Reset_attitube() { GDEDataManager.ResetToDefault(_key, attitubeKey); Dictionary <string, object> dict; GDEDataManager.Get(_key, out dict); string customDataKey; dict.TryGetString(attitubeKey, out customDataKey); _attitube = new GDEgoddessAttiData(customDataKey); attitube.ResetAll(); }
public override void LoadFromSavedData(string dataKey) { _key = dataKey; _locked = GDEDataManager.GetBool(_key, lockedKey, _locked); _Hashcode = GDEDataManager.GetInt(_key, HashcodeKey, _Hashcode); _posInOwner = GDEDataManager.GetInt(_key, posInOwnerKey, _posInOwner); _quality = GDEDataManager.GetInt(_key, qualityKey, _quality); _star = GDEDataManager.GetInt(_key, starKey, _star); _level = GDEDataManager.GetInt(_key, levelKey, _level); _initalQuality = GDEDataManager.GetFloat(_key, initalQualityKey, _initalQuality); _id = GDEDataManager.GetString(_key, idKey, _id); _ownerId = GDEDataManager.GetString(_key, ownerIdKey, _ownerId); _attitube = GDEDataManager.GetCustom(_key, attitubeKey, _attitube); }
public override void LoadFromSavedData(string dataKey) { _key = dataKey; _star = GDEDataManager.GetInt(_key, starKey, _star); _volume = GDEDataManager.GetInt(_key, volumeKey, _volume); _exp = GDEDataManager.GetInt(_key, expKey, _exp); _rune0 = GDEDataManager.GetInt(_key, rune0Key, _rune0); _rune1 = GDEDataManager.GetInt(_key, rune1Key, _rune1); _rune2 = GDEDataManager.GetInt(_key, rune2Key, _rune2); _rune3 = GDEDataManager.GetInt(_key, rune3Key, _rune3); _index = GDEDataManager.GetInt(_key, indexKey, _index); _skillGrade = GDEDataManager.GetInt(_key, skillGradeKey, _skillGrade); _id = GDEDataManager.GetString(_key, idKey, _id); _NAME = GDEDataManager.GetString(_key, NAMEKey, _NAME); _attitube = GDEDataManager.GetCustom(_key, attitubeKey, _attitube); UseTeamId = GDEDataManager.GetIntList(_key, UseTeamIdKey, UseTeamId); }
public GDEgoddessAttiData DeepClone() { GDEgoddessAttiData newClone = ShallowClone(); return(newClone); }