Exemplo n.º 1
0
        public MpqTerrainManager(TileIdentifier tileId)
        {
            var wowRootDir = DBCTool.FindWowDir();
            MpqManager = new MpqManager(wowRootDir);
            TileId = tileId;

            var entries = GetMapEntries();
            MapInfo entry = null;
            foreach (var item in entries)
            {
                if (item.Id != tileId.MapId) continue;

                entry = item;
                break;
            }

            WDTParser.MpqManager = MpqManager;
            _wdt = WDTParser.Process(entry);

            _adtManager = new ADTManager(this);
            _wmoManager = new WMOManager();
            _m2Manager = new M2Manager();
            _meshManager = new NavMeshManager();
            _selectedTriangleManager = new SelectedTriangleManager(_adtManager);
        }
        public ExtractedTerrainManager(string dataPath, TileIdentifier tileId)
        {
            _mapId = tileId.MapId;
            _baseDirectory = dataPath;

            _adtManager = new ExtractedADTManager(this, _baseDirectory, _mapId);
            _m2Manager = new ExtractedM2Manager(_baseDirectory, _mapId);
            _wmoManager = new ExtractedWMOManager(_baseDirectory, _mapId);
            _meshManager = new NavMeshManager();
            _selectedTriangleManager = new SelectedTriangleManager(_adtManager);
        }
Exemplo n.º 3
0
 public RecastRendererBase(Game game, GraphicsDeviceManager graphics, NavMeshManager manager)
     : this(game, manager)
 {
     _graphics = graphics;
 }
Exemplo n.º 4
0
 public RecastRendererBase(Game game, NavMeshManager manager)
     : base(game)
 {
     _manager = manager;
 }
Exemplo n.º 5
0
 public RecastRendererBase(Game game, GraphicsDeviceManager graphics, NavMeshManager manager)
     : this(game, manager)
 {
     _graphics = graphics;
 }
Exemplo n.º 6
0
 public RecastRendererBase(Game game, NavMeshManager manager)
     : base(game)
 {
     _manager = manager;
 }
Exemplo n.º 7
0
 public RecastFrameRenderer(Game game, NavMeshManager manager)
     : base(game, manager)
 {
 }
Exemplo n.º 8
0
 public RecastSolidRenderer(Game game, GraphicsDeviceManager graphics, NavMeshManager manager)
     : base(game, graphics, manager)
 {
 }
Exemplo n.º 9
0
 public RecastFrameRenderer(Game game, GraphicsDeviceManager graphics, NavMeshManager manager)
     : base(game, graphics, manager)
 {
 }
Exemplo n.º 10
0
 public RecastFrameRenderer(Game game, NavMeshManager manager)
     : base(game, manager)
 {
 }