LoadTile() публичный Метод

public LoadTile ( TileIdentifier tileId ) : bool
tileId TileIdentifier
Результат bool
Пример #1
0
        internal static bool TryLoad(TileIdentifier tileId, out Tile tile)
        {
            tile = null;
            var mpqManager = new MpqTerrainManager(tileId);
            if (!mpqManager.LoadTile(tileId)) return false;

            tile = new Tile
            {
                //_terrainTree = mpqManager.ADTManager.MapTiles[0].QuadTree,
                //_m2Tree = ((M2Manager) mpqManager.M2Manager).QuadTree,
                //_wmoTree = ((WMOManager) mpqManager.WMOManager).QuadTree,
                Bounds = PositionUtil.GetTileBoundingRect(tileId),
            };

            return true;
        }