HTNCompoundPrototype.cs 617 B

123456789101112131415161718192021
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Server.NPC.HTN;
  3. /// <summary>
  4. /// Represents a network of multiple tasks. This gets expanded out to its relevant nodes.
  5. /// </summary>
  6. [Prototype("htnCompound")]
  7. public sealed partial class HTNCompoundPrototype : IPrototype
  8. {
  9. [IdDataField] public string ID { get; private set; } = string.Empty;
  10. [DataField("branches", required: true)]
  11. public List<HTNBranch> Branches = new();
  12. /// <summary>
  13. /// Exclude this compound task from the CompoundRecursion integration test.
  14. /// </summary>
  15. [DataField]
  16. public bool AllowRecursion = false;
  17. }