public static void Load(HomeSave toLoad) { MainHouse.Load(toLoad.HouseLevel); Dorm.Load(toLoad.DormLevel); Gym.Load(toLoad.GymLevel); Kitchen.Load(toLoad.KitchenLevel); }
public void LoadData(string json) { FullSave fullSave = JsonUtility.FromJson <FullSave>(json); // Singleton static // Reference JsonUtility.FromJsonOverwrite(fullSave.PlayerPart.Who, Player); StartHomeStats.Load(fullSave.HomePart); dorm.Load(fullSave.DormPart); voreChar.Load(fullSave.VoreSaves, Player); // Pure static DateSystem.Load(fullSave.DatePart); QuestsSystem.Load(fullSave.QuestSave); PlayerFlags.Load(fullSave.PlayerFlagsSave); MapEvents.GetMapEvents.Load(fullSave.PosPart, fullSave.TeleportSaves); GameManager.Load(fullSave.GameManagerSave); EventLog.ClearLog(); LoadEvent?.Invoke(); }