Ejemplo n.º 1
0
 public MyNavigationMesh(MyNavgroupLinks externalLinks, int trianglePrealloc = 16, Func <long> timestampFunction = null)
     : base(128, timestampFunction)
 {
     m_triPool       = new MyDynamicObjectPool <MyNavigationTriangle>(trianglePrealloc);
     m_mesh          = new MyWingedEdgeMesh();
     m_externalLinks = externalLinks;
 }
Ejemplo n.º 2
0
 public MyNavigationMesh(MyNavgroupLinks externalLinks, int trianglePrealloc = 0x10, Func <long> timestampFunction = null) : base(0x80, timestampFunction)
 {
     this.m_vertexList    = new List <Vector3>();
     this.m_triPool       = new MyDynamicObjectPool <MyNavigationTriangle>(trianglePrealloc);
     this.m_mesh          = new MyWingedEdgeMesh();
     this.m_externalLinks = externalLinks;
 }
Ejemplo n.º 3
0
 public MyHighLevelGroup(IMyNavigationGroup lowLevelPathfinding, MyNavgroupLinks links, Func <long> timestampFunction)
     : base(128, timestampFunction)
 {
     m_lowLevel           = lowLevelPathfinding;
     m_primitives         = new Dictionary <int, MyHighLevelPrimitive>();
     m_primitiveObservers = new Dictionary <int, List <IMyHighLevelPrimitiveObserver> >();
     m_links = links;
 }
Ejemplo n.º 4
0
 public MyNavmeshCoordinator(MyDynamicObstacles obstacles)
 {
     m_links          = new MyNavgroupLinks();
     m_highLevelLinks = new MyNavgroupLinks();
     m_obstacles      = obstacles;
 }
Ejemplo n.º 5
0
 public MyNavmeshCoordinator()
 {
     m_links          = new MyNavgroupLinks();
     m_highLevelLinks = new MyNavgroupLinks();
 }