Class MeleeOperator
Attacks the specified key in melee combat.
Inheritance
System.Object
MeleeOperator
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
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
Properties
|
Improve this Doc
View Source
ShutdownState
When to shut the task down.
Declaration
public HTNPlanState ShutdownState { get; }
Property Value
Methods
|
Improve this Doc
View Source
ConditionalShutdown(NPCBlackboard)
Declaration
public void ConditionalShutdown(NPCBlackboard blackboard)
Parameters
|
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
|
Improve this Doc
View Source
PlanShutdown(NPCBlackboard)
Declaration
public override void PlanShutdown(NPCBlackboard blackboard)
Parameters
Overrides
|
Improve this Doc
View Source
Startup(NPCBlackboard)
Declaration
public override void Startup(NPCBlackboard blackboard)
Parameters
Overrides
|
Improve this Doc
View Source
TaskShutdown(NPCBlackboard, HTNOperatorStatus)
Declaration
public override void TaskShutdown(NPCBlackboard blackboard, HTNOperatorStatus status)
Parameters
Overrides
|
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
Overrides
Implements