/// <summary> /// Game Save /// </summary> /// <param name="saveData"></param> public void LoadPlayerSaveData(PlayerSaveData saveData, AssemblePartGeneralSaveData partSaveData) { resourceData = PlayerResourceData.LoadSave(saveData.playerSaveData_Resource); timeData = TimeData.LoadGameSave(saveData.timeSave); materialStorageData = MaterialStorageData.LoadSaveData(saveData.materialSaveData); assemblePartData = PlayerAssemblePartData.LoadSaveData(partSaveData); }
public static PlayerSaveData CreateSave() { PlayerSaveData data = new PlayerSaveData(); data.playerSaveData_Resource = PlayerSaveData_Resource.CreateSaveData(); data.materialSaveData = MaterialStorageSaveData.CreateSave(); ///Save Game Time data.timeSave = TimeDataSave.CreateSave(); return(data); }
public static GameSaveData CreateSave(int groupID, int saveIndex) { GameSaveData saveData = new GameSaveData(); saveData.GroupID = groupID; saveData.SaveIndex = saveIndex; saveData.playerSaveData = PlayerSaveData.CreateSave(); saveData.mainShipSaveData = MainShipSaveData.CreateSave(); saveData.assembleSaveData = AssembleSaveData.CreateSave(); saveData.technologySaveData = TechnologySaveData.CreateSave(); return(saveData); }