2022-09-06 00:28:23 +10:00
|
|
|
using Content.Server.NPC.HTN.Preconditions;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.NPC.HTN;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// AKA Method. This is a branch available for a compound task.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataDefinition]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class HTNBranch
|
2022-09-06 00:28:23 +10:00
|
|
|
{
|
|
|
|
|
// Made this its own class if we ever need to change it.
|
2022-11-16 20:22:11 +01:00
|
|
|
[DataField("preconditions")]
|
2022-09-06 00:28:23 +10:00
|
|
|
public List<HTNPrecondition> Preconditions = new();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Due to how serv3 works we need to defer getting the actual tasks until after they have all been serialized.
|
|
|
|
|
/// </summary>
|
2023-08-02 10:48:56 +10:00
|
|
|
[DataField("tasks", required: true)]
|
|
|
|
|
public List<HTNTask> Tasks = new();
|
2022-09-06 00:28:23 +10:00
|
|
|
}
|