示例#1
0
 public void SavePlayerStatsData(OnGameSaved data)
 {
     data.saveData.maximumHealth       = stats.GetStat(Stat.MaximumHealth);
     data.saveData.healthRegeneration  = stats.GetStat(Stat.HealthRegeneration);
     data.saveData.maximumStamina      = stats.GetStat(Stat.MaximumStamina);
     data.saveData.staminaRegeneration = stats.GetStat(Stat.StaminaRegeneration);
     data.saveData.speed       = stats.GetStat(Stat.Speed);
     data.saveData.attackSpeed = stats.GetStat(Stat.AttackSpeed);
     data.saveData.experimence = stats.GetStat(Stat.Experimence);
     data.saveData.lvl         = stats.GetStat(Stat.Lvl);
     data.saveData.gold        = stats.GetStat(Stat.Gold);
 }
 private void AddAdditionalDataToSave(OnGameSaved eventData)
 {
     eventData.saveData.worldLvl   = currentWorldLevel;
     eventData.saveData.date       = System.DateTime.Now.ToString(dateFormatForSave);
     eventData.saveData.playerName = playerName;
 }