Exemplo n.º 1
0
 //constructor
 public SaveData(WorldData worldData, PlayerCharacterData playerCharacterData)
 {
     // World Data
     this.worldType      = worldData.GetWorldType();
     this.gameEnding     = worldData.GetGameEnding();
     this.bossesDefeated = worldData.GetBossesDefeated();
     this.finishGameTime = worldData.GetFinishGameTime();
     this.playTime       = worldData.GetPlayTime();
     // Player Character Persistent Data
     this.currentHP          = playerCharacterData.GetCurrentHP();
     this.primaryWeapon      = playerCharacterData.GetPrimaryWeapon();
     this.secondaryWeapon    = playerCharacterData.GetSecondaryWeapon();
     this.locationSceneIndex = playerCharacterData.GetLocationSceneIndex();
 }