GenericClass.h 949 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. struct Il2CppClass;
  5. struct Il2CppGenericClass;
  6. struct Il2CppGenericContext;
  7. namespace il2cpp
  8. {
  9. namespace vm
  10. {
  11. class LIBIL2CPP_CODEGEN_API GenericClass
  12. {
  13. public:
  14. // exported
  15. public:
  16. //internal
  17. static Il2CppClass* GetClass(Il2CppGenericClass *gclass);
  18. static Il2CppGenericContext* GetContext(Il2CppGenericClass *gclass);
  19. static Il2CppClass* GetTypeDefinition(Il2CppGenericClass *gclass);
  20. static bool IsEnum(Il2CppGenericClass *gclass);
  21. static bool IsValueType(Il2CppGenericClass *gclass);
  22. static void SetupEvents(Il2CppClass* genericInstanceType);
  23. static void SetupFields(Il2CppClass* genericInstanceType);
  24. static void SetupMethods(Il2CppClass* genericInstanceType);
  25. static void SetupProperties(Il2CppClass* genericInstanceType);
  26. };
  27. } /* namespace vm */
  28. } /* namespace il2cpp */