2022-09-06 00:28:23 +10:00
|
|
|
namespace Content.Server.NPC.HTN.Preconditions;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Condition that needs to be true for a particular primitive task or compound task branch.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ImplicitDataDefinitionForInheritors]
|
2023-08-22 18:14:33 -07:00
|
|
|
public abstract partial class HTNPrecondition
|
2022-09-06 00:28:23 +10:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Handles one-time initialization of this precondition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sysManager"></param>
|
|
|
|
|
public virtual void Initialize(IEntitySystemManager sysManager)
|
|
|
|
|
{
|
|
|
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Has this precondition been met for planning purposes?
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract bool IsMet(NPCBlackboard blackboard);
|
|
|
|
|
}
|