public PlayerData(int playerId, string playerName, bool loadNextAsNewGame) { this.playerId = playerId; this.playerName = playerName; this.health = -1; this.endurance = -1; this.armor = -1; this.playerTimeData = null; this.currentEquipment = null; this.position = null; this.toolbarItems = null; this.inventoryItems = null; this.loadNextAsNewGame = loadNextAsNewGame; }
public PlayerData(int playerId, string playerName, int health, int armor, int endurance, float[] position, PlayerTimeData playerTimeData, ItemForSave[] currentEquipment, ItemForSave[] toolbarItems, ItemForSave[] inventoryItems, bool loadNextAsNewGame) { this.playerId = playerId; this.playerName = playerName; this.health = health; this.endurance = endurance; this.armor = armor; this.playerTimeData = playerTimeData; this.currentEquipment = currentEquipment; this.position = position; this.toolbarItems = toolbarItems; this.inventoryItems = inventoryItems; this.loadNextAsNewGame = loadNextAsNewGame; }