public PlayerInfo(Player player) { this.Map = player.Map.Name; this.Position = player.Position; this.Inventory = new ItemListInfo(player.Inventory); this.Tools = new ItemListInfo(player.Tools); }
public FurnitureInfo(Furniture furniture) : base(furniture.Position) { this.Type = furniture.Type.Name; this.Dir = furniture.Direction.Name; if (furniture.Type.IsStorage) { this.Storage = new ItemListInfo(furniture.Storage); } }