Exemplo n.º 1
0
 public void UnloadData()
 {
     if (DebugLog != null)
     {
         DebugLog.Close();
         DebugLog = null;
     }
     MyEntities.OnEntityAdd -= MyEntities_OnEntityAdd;
 }
Exemplo n.º 2
0
 public void UnloadData()
 {
     if (this.DebugLog != null)
     {
         this.DebugLog.Close();
         this.DebugLog = null;
     }
     MyEntities.OnEntityAdd -= new Action <MyEntity>(this.MyEntities_OnEntityAdd);
 }
Exemplo n.º 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");
     }
 }