/// <summary> /// Creates an entirely new player. /// </summary> public static void CreateNewPlayer() { Player = new PlayerTrader(null, new Balance()); Inventory inventory = new Inventory(Player); Player.Inventory = inventory; //Give the player the default starting money: Player.Balance.Deposit(250); }
public void Load_Player() { Load_PlayerShipTemplates(); PlayerTrader trader = new PlayerTrader(null, new Balance(PlayerTrader.PlayerBalance)); Inventory inventory = new Inventory(trader); trader.Inventory = inventory; PlayerController.AssignNewTrader(trader); foreach (var item in PlayerTrader.PlayerInventory.Items) { inventory.AddItem(item.GetItem(inventory)); } }
public static void AssignNewTrader(PlayerTrader trader) { Player = trader; }