Fix compilation of bindings code with API_EVENT in some cases

#459
This commit is contained in:
Wojtek Figat
2021-04-20 10:35:09 +02:00
parent 20331bc858
commit eabab8301d

View File

@@ -1129,6 +1129,7 @@ namespace Flax.Build.Bindings
var paramsCount = eventInfo.Type.GenericArgs?.Count ?? 0;
// C# event invoking wrapper (calls C# event from C++ delegate)
CppIncludeFiles.Add("Engine/Scripting/ManagedCLR/MClass.h");
CppIncludeFiles.Add("Engine/Scripting/ManagedCLR/MEvent.h");
contents.Append(" ");
if (eventInfo.IsStatic)