Rebornbuddy
|
Static Public Member Functions | |
static MoveResult | MoveTo (Vector3 location, string destination=null) |
static MoveResult | MoveTo (MoveToParameters moveToParameters) |
static MoveResult | MoveToPointWithin (Vector3 location, float radius, string destination=null) |
static PathInformation | LookupPathInfo (GameObject obj, float distanceTolerance=MoveToParameters.DefaultDistanceTolerance) |
Looks up the information of a path going to an object. | |
static Task< List< Vector3 > > | SamplePointsAsync (SamplePointsParameters parameters) |
Samples the navigator for points. | |
static void | Stop () |
static void | Clear () |
static bool | InPosition (Vector3 location1, Vector3 location2, float range) |
Checks to see if location1 is within range of location2 Does XZ plane check separately from Y plane to better handle 3D locations. | |
static bool | AtLocation (Vector3 point1, Vector3 point2) |
Checks if one point is considered to be at another point. This should be used to check if the player is near a point. | |
static bool | AtLocation (Vector3 point) |
Checks if the local player is considered to be on top of a point. |
Properties | |
static NavigationProvider | NavigationProvider [get, set] |
Gets or sets the navigation provider. | |
static IPlayerMover | PlayerMover [get, set] |
Events | |
static EventHandler< NavigationProviderChangedEventArgs< NavigationProvider > > | OnNavigationProviderChanged |
Event queue for all listeners interested in OnNavigationProviderChanged events. | |
static EventHandler< NavigationProviderChangedEventArgs< IPlayerMover > > | OnPlayerMoverChanged |
Event queue for all listeners interested in OnPlayerMoverChanged events. |
|
static |
Checks if the local player is considered to be on top of a point.
point | . |
|
static |
Checks if one point is considered to be at another point. This should be used to check if the player is near a point.
InvalidOperationException | Thrown when the requested operation is invalid. |
point1 | . |
point2 | . |
|
static |
|
static |
Checks to see if location1 is within range of location2 Does XZ plane check separately from Y plane to better handle 3D locations.
location1 | |
location2 | |
range |
|
static |
Looks up the information of a path going to an object.
obj | The object. |
distanceTolerance | The distance to get within obj . |
ArgumentNullException | obj is null . |
null
.Path information lookups are in general extremely fast to perform. They require minimal CPU computation.
|
static |
|
static |
|
static |
|
static |
Samples the navigator for points.
parameters | The parameters. |
ArgumentNullException | parameters is null . |
ArgumentException | parameters is in an invalid state. |
This is an external asynchronous task, and should not be awaited directly from coroutines. See Coroutine.ExternalTask(Func<Task>).
|
static |
|
staticgetset |
Gets or sets the navigation provider.
The navigation provider.
ArgumentNullException | value is null . |
When setting this property, Pathing.NavigationProvider.OnSetAsCurrent will be called on the new navigation provider, if applicable.
Similarly, Pathing.NavigationProvider.OnRemoveAsCurrent will be called on the old navigation provider, if applicable.
If an exception is thrown in any of these two functions, the state remains unchanged.
|
staticgetset |
|
static |
Event queue for all listeners interested in OnNavigationProviderChanged events.
|
static |
Event queue for all listeners interested in OnPlayerMoverChanged events.