il2cpp-codegen.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. struct String_t;
  3. struct Type_t;
  4. struct Exception_t;
  5. struct StringBuilder_t;
  6. struct MulticastDelegate_t;
  7. struct MethodBase_t;
  8. struct Assembly_t;
  9. #if RUNTIME_MONO
  10. extern "C"
  11. {
  12. #include <mono/metadata/class.h>
  13. #include <mono/metadata/image.h>
  14. #include <mono/metadata/metadata.h>
  15. #include <mono/metadata/object.h>
  16. #include <mono/metadata/object-internals.h>
  17. }
  18. typedef MonoClass RuntimeClass;
  19. typedef MonoMethod RuntimeMethod;
  20. typedef MonoClassField RuntimeField;
  21. typedef MonoType RuntimeType;
  22. typedef MonoObject RuntimeObject;
  23. typedef MonoImage RuntimeImage;
  24. typedef MonoException RuntimeException;
  25. typedef MonoArray RuntimeArray;
  26. typedef MonoAssembly RuntimeAssembly;
  27. typedef MonoString RuntimeString;
  28. typedef MonoStringBuilder RuntimeStringBuilder;
  29. typedef MonoDelegate RuntimeDelegate;
  30. #include "il2cpp-codegen-mono.h"
  31. #else
  32. struct TypeInfo;
  33. struct MethodInfo;
  34. struct FieldInfo;
  35. struct Il2CppType;
  36. typedef Il2CppClass RuntimeClass;
  37. typedef MethodInfo RuntimeMethod;
  38. typedef FieldInfo RuntimeField;
  39. typedef Il2CppType RuntimeType;
  40. typedef Il2CppObject RuntimeObject;
  41. typedef Il2CppImage RuntimeImage;
  42. typedef Il2CppException RuntimeException;
  43. typedef Il2CppArray RuntimeArray;
  44. typedef Il2CppAssembly RuntimeAssembly;
  45. typedef Il2CppString RuntimeString;
  46. struct Il2CppStringBuilder;
  47. typedef Il2CppStringBuilder RuntimeStringBuilder;
  48. typedef Il2CppDelegate RuntimeDelegate;
  49. #include "il2cpp-codegen-il2cpp.h"
  50. #endif