public void LoadInventory(BaseInventoryData data) { base_pieces = new int[data.base_pieces.Length]; enemy_groups = new int[data.enemy_groups.Length]; for (int i = 0; i < base_pieces.Length; i++) { base_pieces[i] = data.base_pieces[i]; } for (int i = 0; i < enemy_groups.Length; i++) { enemy_groups[i] = data.enemy_groups[i]; } }
public InventoryData(int gold) { base_inventory_data = BaseInventoryData.empty; this.gold = gold; }
public InventoryData(Inventory inventory) { base_inventory_data = inventory.base_inventory.SaveInventory(); gold = inventory.gold; }