You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
517 B

  1. using System;
  2. using UnityEngine;
  3. namespace SUISSEngine
  4. {
  5. public class SelfReference : PropertyAttribute
  6. {
  7. protected SelfReference(bool optional, bool child, bool parent)
  8. {
  9. this.optional = optional;
  10. this.child = child;
  11. this.parent = parent;
  12. }
  13. public SelfReference(bool optional) : this(optional, false, false)
  14. {
  15. }
  16. public SelfReference() : this(false)
  17. {
  18. }
  19. public readonly bool optional;
  20. public readonly bool child;
  21. public readonly bool parent;
  22. }
  23. }