NodeConfig.cs 475 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using Common.Config;
  3. using MongoDB.Bson.Serialization.Attributes;
  4. namespace BehaviorTree
  5. {
  6. public class NodeConfig: IConfig
  7. {
  8. public int Id { get; set; }
  9. [BsonIgnoreIfNull]
  10. public List<string> Args { get; set; }
  11. [BsonIgnoreIfNull]
  12. public List<NodeConfig> SubConfigs { get; set; }
  13. }
  14. [Config]
  15. public class NodeCategory: ACategory<NodeConfig>
  16. {
  17. }
  18. }