Fix bindings generation for in-built Char type used in Array
This commit is contained in:
@@ -91,15 +91,15 @@ namespace Flax.Build.Bindings
|
||||
},
|
||||
{
|
||||
new TypeInfo("Char"),
|
||||
new LangType("char")
|
||||
new LangType("char", "Char")
|
||||
},
|
||||
{
|
||||
new TypeInfo("char"),
|
||||
new LangType("sbyte")
|
||||
new LangType("sbyte", "char")
|
||||
},
|
||||
{
|
||||
new TypeInfo("void*"),
|
||||
new LangType("IntPtr")
|
||||
new LangType("IntPtr", "void*")
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -12,9 +12,10 @@ namespace Flax.Build.Bindings
|
||||
public override bool IsValueType => true;
|
||||
public override bool IsPod => true;
|
||||
|
||||
public LangType(string name)
|
||||
public LangType(string name, string nativeName = null)
|
||||
{
|
||||
Name = name;
|
||||
NativeName = nativeName;
|
||||
IsInBuild = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user