Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
     }
 }