示例#1
0
        public IMapGraphic LoadMap(Map map)
        {
            factory.Setup();
            var tiles = map.Tiles;
            table = new Table<IGraphicComponent>();

            for (var i = 0; i < tiles.Rows; i++)
            {
                for (var j = 0; j < tiles.Columns; j++)
                {
                    table[i, j] = factory.CreateSpriteSheetTexture(tiles[i, j].TextureName);
                }
            }
            return new MapGraphic(table);
        }
示例#2
0
 public void LoadMap(Map map)
 {
     throw new System.NotImplementedException();
 }
示例#3
0
 public MainModule(Map map)
 {
     this.map = map;
 }
示例#4
0
        public void SetMap(Map map)
        {
            this.map = map;
            controller.SetMap(map);

        }