public MyPathfinding() : base(0x80, null) { this.NextTimestampFunction = new Func <long>(this.GenerateNextTimestamp); this.m_obstacles = new MyDynamicObstacles(); this.m_navmeshCoordinator = new MyNavmeshCoordinator(this.m_obstacles); this.m_gridPathfinding = new MyGridPathfinding(this.m_navmeshCoordinator); this.m_voxelPathfinding = new MyVoxelPathfinding(this.m_navmeshCoordinator); MyEntities.OnEntityAdd += new Action <MyEntity>(this.MyEntities_OnEntityAdd); }
public void UnloadData() { MyEntities.OnEntityAdd -= new Action <MyEntity>(this.MyEntities_OnEntityAdd); this.m_voxelPathfinding.UnloadData(); this.m_gridPathfinding = null; this.m_voxelPathfinding = null; this.m_navmeshCoordinator = null; this.m_obstacles.Clear(); this.m_obstacles = null; }
public MyPathfinding() { NextTimestampFunction = GenerateNextTimestamp; m_obstacles = new MyDynamicObstacles(); m_navmeshCoordinator = new MyNavmeshCoordinator(m_obstacles); m_gridPathfinding = new MyGridPathfinding(m_navmeshCoordinator); m_voxelPathfinding = new MyVoxelPathfinding(m_navmeshCoordinator); MyEntities.OnEntityAdd += MyEntities_OnEntityAdd; }
public void UnloadData() { MyEntities.OnEntityAdd -= MyEntities_OnEntityAdd; m_voxelPathfinding.UnloadData(); m_gridPathfinding = null; m_voxelPathfinding = null; m_navmeshCoordinator = null; m_obstacles.Clear(); m_obstacles = null; }
public MyNavmeshCoordinator(MyDynamicObstacles obstacles) { m_links = new MyNavgroupLinks(); m_highLevelLinks = new MyNavgroupLinks(); m_obstacles = obstacles; }
public MyNavmeshCoordinator(MyDynamicObstacles obstacles) { this.m_obstacles = obstacles; }