You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
C#: Preserve order of exported fields/categories
This commit is contained in:
@@ -59,4 +59,26 @@ namespace Godot.SourceGenerators
|
||||
public IFieldSymbol FieldSymbol { get; }
|
||||
public MarshalType Type { get; }
|
||||
}
|
||||
|
||||
public struct GodotPropertyOrFieldData
|
||||
{
|
||||
public GodotPropertyOrFieldData(ISymbol symbol, MarshalType type)
|
||||
{
|
||||
Symbol = symbol;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
public GodotPropertyOrFieldData(GodotPropertyData propertyData)
|
||||
: this(propertyData.PropertySymbol, propertyData.Type)
|
||||
{
|
||||
}
|
||||
|
||||
public GodotPropertyOrFieldData(GodotFieldData fieldData)
|
||||
: this(fieldData.FieldSymbol, fieldData.Type)
|
||||
{
|
||||
}
|
||||
|
||||
public ISymbol Symbol { get; }
|
||||
public MarshalType Type { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user