Show / Hide Table of Contents

Class GunOperator

Inheritance
System.Object
HTNOperator
GunOperator
Implements
IHtnConditionalShutdown
Namespace: Content.Server.NPC.HTN.PrimitiveTasks.Operators.Combat.Ranged
Assembly: Content.Server.dll
Syntax
public sealed class GunOperator : HTNOperator, IHtnConditionalShutdown

Fields

| Improve this Doc View Source

RequireLOS

Do we require line of sight of the target before failing.

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

TargetKey

Key that contains the target entity.

Declaration
public string TargetKey
Field Value
Type Description
System.String
| Improve this Doc View Source

TargetState

Minimum damage state that the target has to be in for us to consider attacking.

Declaration
public MobState TargetState
Field Value
Type Description
MobState

Properties

| Improve this Doc View Source

ShutdownState

Declaration
public HTNPlanState ShutdownState { get; }
Property Value
Type Description
HTNPlanState

Methods

| Improve this Doc View Source

ConditionalShutdown(NPCBlackboard)

Declaration
public void ConditionalShutdown(NPCBlackboard blackboard)
Parameters
Type Name Description
NPCBlackboard blackboard
| 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
CancellationToken cancelToken
Returns
Type Description
Task<System.ValueTuple<System.Boolean, System.Nullable<Dictionary<System.String, System.Object>>>>
Overrides
HTNOperator.Plan(NPCBlackboard, CancellationToken)
| Improve this Doc View Source

Startup(NPCBlackboard)

Declaration
public override void Startup(NPCBlackboard blackboard)
Parameters
Type Name Description
NPCBlackboard blackboard
Overrides
HTNOperator.Startup(NPCBlackboard)
| Improve this Doc View Source

Update(NPCBlackboard, Single)

Declaration
public override HTNOperatorStatus Update(NPCBlackboard blackboard, float frameTime)
Parameters
Type Name Description
NPCBlackboard blackboard
System.Single frameTime
Returns
Type Description
HTNOperatorStatus
Overrides
HTNOperator.Update(NPCBlackboard, Single)

Implements

IHtnConditionalShutdown
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾