public void Setup(SetupSelfContainedClass setup) { ParentArray = setup.AddObjectVariable(new InternalVar("ParentArray", _supplier.Any())); Pathmap = setup.AddObjectVariable(new InternalVar("OriginMap", _pathfinderTypes.Pathmap.Instance)); Destination = setup.AddObjectVariable(new InternalVar("Destination", _supplier.Vector())); setup.ObjectScope.AddNativeMethod(PathfindFunction); setup.ObjectScope.AddNativeMethod(Next); }
void ISelfContainedClass.Setup(SetupSelfContainedClass setup) { NodeBake = setup.AddObjectVariable(new InternalVar("NodeBake", Types.Any())); Pathmap = setup.AddObjectVariable(new InternalVar("Pathmap", _pathfinderTypes.Pathmap.Instance)); setup.ObjectScope.AddNativeMethod(Pathfind); }