1
0

HTNBranch.cs 617 B

1234567891011121314151617181920
  1. using Content.Server.NPC.HTN.Preconditions;
  2. namespace Content.Server.NPC.HTN;
  3. /// <summary>
  4. /// AKA Method. This is a branch available for a compound task.
  5. /// </summary>
  6. [DataDefinition]
  7. public sealed partial class HTNBranch
  8. {
  9. // Made this its own class if we ever need to change it.
  10. [DataField("preconditions")]
  11. public List<HTNPrecondition> Preconditions = new();
  12. /// <summary>
  13. /// Due to how serv3 works we need to defer getting the actual tasks until after they have all been serialized.
  14. /// </summary>
  15. [DataField("tasks", required: true)]
  16. public List<HTNTask> Tasks = new();
  17. }