Class PickAccessibleOperator
Chooses a nearby coordinate and puts it into the resulting key.
Inheritance
System.Object
PickAccessibleOperator
Assembly: Content.Server.dll
Syntax
public sealed class PickAccessibleOperator : HTNOperator
Fields
|
Improve this Doc
View Source
PathfindKey
Where the pathfinding result will be stored (if applicable). This gets removed after execution.
Declaration
public string PathfindKey
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RangeKey
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TargetCoordinates
Declaration
public string TargetCoordinates
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Initialize(IEntitySystemManager)
Declaration
public override void Initialize(IEntitySystemManager sysManager)
Parameters
Type |
Name |
Description |
IEntitySystemManager |
sysManager |
|
Overrides
|
Improve this Doc
View Source
Plan(NPCBlackboard, CancellationToken)
Declaration
public override Task<(bool Valid, Dictionary<string, object>? Effects)> Plan(NPCBlackboard blackboard, CancellationToken cancelToken)
Parameters
Type |
Name |
Description |
NPCBlackboard |
blackboard |
The blackboard for the NPC.
|
CancellationToken |
cancelToken |
|
Returns
Type |
Description |
Task<System.ValueTuple<System.Boolean, System.Nullable<Dictionary<System.String, System.Object>>>> |
Whether the plan is still valid and the effects to apply to the blackboard.
These get re-applied during execution and are up to the operator to use or discard.
|
Overrides