Add attributes support for dotnet interop for methods, fields and properties

This commit is contained in:
Wojtek Figat
2024-10-04 15:57:41 +02:00
parent 85915d787a
commit adbe578aa1
4 changed files with 107 additions and 57 deletions

View File

@@ -16,6 +16,8 @@ class FLAXENGINE_API MProperty
protected:
#if USE_MONO
MonoProperty* _monoProperty;
#elif USE_NETCORE
void* _handle;
#endif
mutable MMethod* _getMethod;
@@ -34,7 +36,7 @@ public:
#if USE_MONO
explicit MProperty(MonoProperty* monoProperty, const char* name, MClass* parentClass);
#elif USE_NETCORE
MProperty(MClass* parentClass, const char* name, void* getterHandle, void* setterHandle, MMethodAttributes getterAttributes, MMethodAttributes setterAttributes);
MProperty(MClass* parentClass, const char* name, void* handle, void* getterHandle, void* setterHandle, MMethodAttributes getterAttributes, MMethodAttributes setterAttributes);
#endif
/// <summary>