2022-07-28 17:41:47 +02:00
|
|
|
namespace Godot.SourceGenerators
|
|
|
|
{
|
2022-07-07 17:58:13 +02:00
|
|
|
internal readonly struct PropertyInfo
|
2022-07-28 17:41:47 +02:00
|
|
|
{
|
|
|
|
public PropertyInfo(VariantType type, string name, PropertyHint hint,
|
|
|
|
string? hintString, PropertyUsageFlags usage, bool exported)
|
2023-06-16 23:05:11 +02:00
|
|
|
: this(type, name, hint, hintString, usage, className: null, exported) { }
|
|
|
|
|
|
|
|
public PropertyInfo(VariantType type, string name, PropertyHint hint,
|
|
|
|
string? hintString, PropertyUsageFlags usage, string? className, bool exported)
|
2022-07-28 17:41:47 +02:00
|
|
|
{
|
|
|
|
Type = type;
|
|
|
|
Name = name;
|
|
|
|
Hint = hint;
|
|
|
|
HintString = hintString;
|
|
|
|
Usage = usage;
|
2023-06-16 23:05:11 +02:00
|
|
|
ClassName = className;
|
2022-07-28 17:41:47 +02:00
|
|
|
Exported = exported;
|
|
|
|
}
|
|
|
|
|
|
|
|
public VariantType Type { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public PropertyHint Hint { get; }
|
|
|
|
public string? HintString { get; }
|
|
|
|
public PropertyUsageFlags Usage { get; }
|
2023-06-16 23:05:11 +02:00
|
|
|
public string? ClassName { get; }
|
2022-07-28 17:41:47 +02:00
|
|
|
public bool Exported { get; }
|
|
|
|
}
|
|
|
|
}
|