PropertyInfo.cs 1019 B

1234567891011121314151617181920212223242526272829
  1. namespace Godot.SourceGenerators
  2. {
  3. internal readonly struct PropertyInfo
  4. {
  5. public PropertyInfo(VariantType type, string name, PropertyHint hint,
  6. string? hintString, PropertyUsageFlags usage, bool exported)
  7. : this(type, name, hint, hintString, usage, className: null, exported) { }
  8. public PropertyInfo(VariantType type, string name, PropertyHint hint,
  9. string? hintString, PropertyUsageFlags usage, string? className, bool exported)
  10. {
  11. Type = type;
  12. Name = name;
  13. Hint = hint;
  14. HintString = hintString;
  15. Usage = usage;
  16. ClassName = className;
  17. Exported = exported;
  18. }
  19. public VariantType Type { get; }
  20. public string Name { get; }
  21. public PropertyHint Hint { get; }
  22. public string? HintString { get; }
  23. public PropertyUsageFlags Usage { get; }
  24. public string? ClassName { get; }
  25. public bool Exported { get; }
  26. }
  27. }