Show / Hide Table of Contents

Class MeleeOperator

Attacks the specified key in melee combat.

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

Fields

| 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

When to shut the task down.

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

PlanShutdown(NPCBlackboard)

Declaration
public override void PlanShutdown(NPCBlackboard blackboard)
Parameters
Type Name Description
NPCBlackboard blackboard
Overrides
HTNOperator.PlanShutdown(NPCBlackboard)
| 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

TaskShutdown(NPCBlackboard, HTNOperatorStatus)

Declaration
public override void TaskShutdown(NPCBlackboard blackboard, HTNOperatorStatus status)
Parameters
Type Name Description
NPCBlackboard blackboard
HTNOperatorStatus status
Overrides
HTNOperator.TaskShutdown(NPCBlackboard, HTNOperatorStatus)
| 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
☀
☾