Show / Hide Table of Contents

Class HTNComponent

Inheritance
System.Object
SharedNPCComponent
NPCComponent
HTNComponent
Namespace: Content.Server.NPC.HTN
Assembly: Content.Server.dll
Syntax
public sealed class HTNComponent : NPCComponent

Fields

| Improve this Doc View Source

CheckServices

Check any active services for our current plan. This is used to find new targets for example without changing our plan.

Declaration
public bool CheckServices
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Plan

The NPC's current plan.

Declaration
public HTNPlan Plan
Field Value
Type Description
HTNPlan
| Improve this Doc View Source

PlanAccumulator

How much longer until we can try re-planning. This will happen even during update in case something changed.

Declaration
public float PlanAccumulator
Field Value
Type Description
System.Single
| Improve this Doc View Source

PlanCooldown

How long to wait after having planned to try planning again.

Declaration
public float PlanCooldown
Field Value
Type Description
System.Single
| Improve this Doc View Source

PlanningJob

Declaration
public HTNPlanJob PlanningJob
Field Value
Type Description
HTNPlanJob
| Improve this Doc View Source

PlanningToken

Declaration
public CancellationTokenSource? PlanningToken
Field Value
Type Description
System.Nullable<CancellationTokenSource>
| Improve this Doc View Source

RootTask

The base task to use for planning

Declaration
public HTNCompoundTask RootTask
Field Value
Type Description
HTNCompoundTask

Properties

| Improve this Doc View Source

Planning

Is this NPC currently planning?

Declaration
public bool Planning { get; }
Property Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾