Show / Hide Table of Contents

Class PickAccessibleOperator

Chooses a nearby coordinate and puts it into the resulting key.

Inheritance
System.Object
HTNOperator
PickAccessibleOperator
Namespace: Content.Server.NPC.HTN.PrimitiveTasks.Operators
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
public string RangeKey
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
HTNOperator.Initialize(IEntitySystemManager)
| Improve this Doc View Source

Plan(NPCBlackboard, CancellationToken)

Called during planning.

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
HTNOperator.Plan(NPCBlackboard, CancellationToken)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾