NodeAttribute.cs 416 B

1234567891011121314151617
  1. using System;
  2. namespace BehaviorTree
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. public class NodeAttribute : Attribute
  6. {
  7. public NodeType NodeType { get; set; }
  8. public Type ClassType { get; set; }
  9. public NodeAttribute(NodeType nodeType, Type classType)
  10. {
  11. this.NodeType = nodeType;
  12. this.ClassType = classType;
  13. }
  14. }
  15. }