1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 20:29:26 +08:00
Files
Alas/blcrack/cracker/il2cpp.hpp
2025-03-18 19:27:30 +08:00

104 lines
3.6 KiB
C++

#ifndef IL2CPPSTRUCT_HPP
#define IL2CPPSTRUCT_HPP
struct UnityEngine_Object_Fields {
intptr_t m_CachedPtr;
};
struct UnityEngine_Component_Fields : UnityEngine_Object_Fields {};
struct UnityEngine_Behaviour_Fields : UnityEngine_Component_Fields {};
struct UnityEngine_MonoBehaviour_Fields : UnityEngine_Behaviour_Fields {};
struct LuaInterface_LuaStatePtr_Fields {
intptr_t L;
void* jit; // System_String_o*
void* jit32; // System_Byte_array*
void* jit64; // System_Byte_array*
};
struct LuaInterface_LuaState_Fields : LuaInterface_LuaStatePtr_Fields {
void* translator; // LuaInterface_ObjectTranslator_o*
void* reflection; // LuaInterface_LuaReflection_o*
int32_t _ArrayMetatable_k__BackingField;
int32_t _DelegateMetatable_k__BackingField;
int32_t _TypeMetatable_k__BackingField;
int32_t _EnumMetatable_k__BackingField;
int32_t _IterMetatable_k__BackingField;
int32_t _EventMetatable_k__BackingField;
int32_t _PackBounds_k__BackingField;
int32_t _UnpackBounds_k__BackingField;
int32_t _PackRay_k__BackingField;
int32_t _UnpackRay_k__BackingField;
int32_t _PackRaycastHit_k__BackingField;
int32_t _PackTouch_k__BackingField;
struct System_Action_o* OnDestroy; // System_Action_o*
void* funcMap; // System_Collections_Generic_Dictionary_string__WeakReference__o*
void* funcRefMap; // System_Collections_Generic_Dictionary_int__WeakReference__o*
void* delegateMap; // System_Collections_Generic_Dictionary_long__WeakReference__o*
void* gcList; // System_Collections_Generic_List_GCRef__o*
void* subList; // System_Collections_Generic_List_LuaBaseRef__o*
void* metaMap; // System_Collections_Generic_Dictionary_Type__int__o*
void* enumMap; // System_Collections_Generic_Dictionary_Enum__object__o*
void* preLoadMap; // System_Collections_Generic_Dictionary_Type__LuaCSFunction__o*
void* typeMap; // System_Collections_Generic_Dictionary_int__Type__o*
void* genericSet; // System_Collections_Generic_HashSet_Type__o*
void* moduleSet; // System_Collections_Generic_HashSet_string__o*
int32_t beginCount;
bool beLogGC;
bool bInjectionInited;
void* missSet; // System_Collections_Generic_HashSet_Type__o*
};
struct LuaInterface_LuaState_o {
void* klass; //LuaInterface_LuaState_c*
void* monitor;
LuaInterface_LuaState_Fields fields;
};
struct LuaLooper_Fields : UnityEngine_MonoBehaviour_Fields {
void* _UpdateEvent_k__BackingField;
void* _LateUpdateEvent_k__BackingField;
void* _FixedUpdateEvent_k__BackingField;
struct LuaInterface_LuaState_o* luaState;
};
struct LuaLooper_o {
void* klass; // LuaLooper_c*
void* monitor;
LuaLooper_Fields fields;
};
struct LuaScriptMgr_Fields : UnityEngine_MonoBehaviour_Fields {
void* luaBundle; // UnityEngine_AssetBundle_o*
void* luaHash; // System_String_o*
void* luaHash64; // System_String_o*
bool gameLoaded;
bool statePrepared;
struct LuaInterface_LuaState_o* luaState;
struct LuaLooper_o* luaLooper;
void* profiler; // LuaInterface_LuaTable_o*
};
struct LuaScriptMgr_o {
void* klass; //LuaScriptMgr_c *
void* monitor;
LuaScriptMgr_Fields fields;
};
using LuaScriptMgr_get_Inst = struct LuaScriptMgr_o*(*)();
#if defined(ARCH_X86)
#define LuaScriptMgr_get_Inst_OFFSET 0x1076B15
#elif defined(ARCH_ARM64_V8A)
#define LuaScriptMgr_get_Inst_OFFSET 0x14BF998
#elif defined(ARCH_ARMEABI_V7A)
#define LuaScriptMgr_get_Inst_OFFSET 0xFE8894
#else
#warning "No architecture defined for il2cpp.hpp, assuming x86"
#define LuaScriptMgr_get_Inst_OFFSET 0x1076B15
#endif
#endif //IL2CPPSTRUCT_HPP