Example #1
0
 public MapTileBlockObject(int id, int positionIndex, MapTileBlockType mapTileBlockType, List<MapTile> tiles)
 {
     Id = id;
     PositionIndex = positionIndex;
     MapTileBlockType = new MapTileBlockTypeObject(mapTileBlockType.Id, mapTileBlockType.Name);
     MapTiles = tiles.Select(mt => new MapTileObject(mt.Id, mt.X, mt.Y, mt.Width, mt.Height, mt.MapTileType, mapTileBlockType)).ToList();
 }
Example #2
0
 public MapTileTypeObject(int id, string name, bool movementAllowed, string background, MapTileBlockType mapTileBlockType)
 {
     Id = id;
     Name = name;
     MovementAllowed = movementAllowed;
     Background = background;
     MapTileBlockType = new MapTileBlockTypeObject(mapTileBlockType.Id, mapTileBlockType.Name);
 }