Add new API_TYPEDEF metadata for Scriptign API types instantiation (with Alias option)

This commit is contained in:
Wojtek Figat
2022-05-23 19:50:37 +02:00
parent b70bce1746
commit 85fd540b97
6 changed files with 230 additions and 10 deletions

View File

@@ -296,6 +296,11 @@ namespace Flax.Build.Bindings
else
throw new Exception($"Not supported location for event {eventInfo.Name} at line {tokenizer.CurrentLine}. Place it in the class to use API bindings for it.");
}
else if (string.Equals(token.Value, ApiTokens.Typedef, StringComparison.Ordinal))
{
var typeInfo = ParseTypedef(ref context);
fileInfo.AddChild(typeInfo);
}
else if (string.Equals(token.Value, ApiTokens.InjectCppCode, StringComparison.Ordinal))
{
var injectCppCodeInfo = ParseInjectCppCode(ref context);