public MyVoxelPathfinding(MyNavmeshCoordinator coordinator)
        {
            MyEntities.OnEntityAdd += MyEntities_OnEntityAdd;

            m_navigationMeshes   = new Dictionary <MyVoxelMap, MyVoxelNavigationMesh>();
            m_tmpUpdatePositions = new List <Vector3D>(8);
            m_tmpVoxelMaps       = new List <MyVoxelMap>();
            m_tmpNavmeshes       = new List <MyVoxelNavigationMesh>();
            m_coordinator        = coordinator;
            coordinator.SetVoxelPathfinding(this);
        }
        public MyVoxelPathfinding(MyNavmeshCoordinator coordinator)
        {
            MyEntities.OnEntityAdd += MyEntities_OnEntityAdd;

            m_navigationMeshes = new Dictionary<MyVoxelBase, MyVoxelNavigationMesh>();
            m_tmpUpdatePositions = new List<Vector3D>(8);
            m_tmpVoxelMaps = new List<MyVoxelBase>();
            m_tmpNavmeshes = new List<MyVoxelNavigationMesh>();
            m_coordinator = coordinator;
            coordinator.SetVoxelPathfinding(this);
        }
Beispiel #3
0
 public MyVoxelPathfinding(MyNavmeshCoordinator coordinator)
 {
     MyEntities.OnEntityAdd   += new Action <MyEntity>(this.MyEntities_OnEntityAdd);
     this.m_navigationMeshes   = new Dictionary <MyVoxelBase, MyVoxelNavigationMesh>();
     this.m_tmpUpdatePositions = new List <Vector3D>(8);
     this.m_tmpVoxelMaps       = new List <MyVoxelBase>();
     this.m_tmpNavmeshes       = new List <MyVoxelNavigationMesh>();
     this.m_coordinator        = coordinator;
     coordinator.SetVoxelPathfinding(this);
     if (MyFakes.REPLAY_NAVMESH_GENERATION || MyFakes.LOG_NAVMESH_GENERATION)
     {
         this.DebugLog = new MyVoxelPathfindingLog("PathfindingLog.log");
     }
 }