Contents
Interface IPrefabPathWaypoint
- All Superinterfaces:
IPathWaypoint
- All Known Implementing Classes:
PatrolPathMarkerEntity
Represents a waypoint that is part of a prefab path.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialise(UUID id, String path, int index, double pauseTime, float observationAngle, int worldGenId, ComponentAccessor<EntityStore> componentAccessor) Initialise a newly created waypoint and add it to its target pathvoidCalled if this waypoint is replaced by another with the same order indexMethods inherited from interface IPathWaypoint
getObservationAngle, getOrder, getPauseTime, getWaypointPosition, getWaypointRotation
-
Method Details
-
onReplaced
void onReplaced()Called if this waypoint is replaced by another with the same order index -
initialise
void initialise(@Nonnull UUID id, @Nonnull String path, int index, double pauseTime, float observationAngle, int worldGenId, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Initialise a newly created waypoint and add it to its target path- Parameters:
id- the id of the target pathpath- the friendly name of the target pathindex- the index at which to insert. -1 indicates appendingpauseTime- the length of time the NPC should pause at this waypointobservationAngle- the sector within which an NPC should turn at the waypointcomponentAccessor- TheComponentAccessor<EntityStore>for component access.
-
getParentPath
IPath<IPrefabPathWaypoint> getParentPath()- Returns:
- the parent path of this waypoint.
-