Пример #1
0
 public PathFindingSystem.PFNode AddNode(Vector2 v2Pos, PathFindingSystem.PFNode xConnectTo, ushort iID)
 {
     PathFindingSystem.PFNode add = new PathFindingSystem.PFNode(v2Pos, iID);
     if (xConnectTo != null)
     {
         this.ConnectNodes(add, xConnectTo);
     }
     this.lxNodes.Add(add);
     this.dixNodeDictionary[add.iID] = add;
     return add;
 }
Пример #2
0
 public WorkNode(PathFindingSystem.PFNode xNode)
 {
     this.xOwnedNode = xNode;
 }
Пример #3
0
 public Connection(PathFindingSystem.PFNode xFrom, PathFindingSystem.PFNode xTo)
 {
     this.xTo = xTo;
     this.fDistance = Vector2.Distance(xFrom.v2Position, xTo.v2Position);
 }