mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 15:39:26 +08:00
181 lines
5.6 KiB
C++
181 lines
5.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 {
|
|
void* m_CancellationTokenSource; // struct System_Threading_CancellationTokenSource_o* m_CancellationTokenSource;
|
|
};
|
|
|
|
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;
|
|
bool UseLua32;
|
|
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*(*)();
|
|
|
|
using Il2CppDomain = void;
|
|
using Il2CppAssembly = void;
|
|
using Il2CppImage = void;
|
|
using Il2CppClass = void;
|
|
|
|
struct MethodInfo {
|
|
void* methodPointer; // Il2CppMethodPointer
|
|
void* invoker_method; // InvokerMethod
|
|
const char* name;
|
|
void* klass; // Il2CppClass*
|
|
void* return_type; // const Il2CppType*
|
|
void* parameters; // const ParameterInfo*
|
|
union {
|
|
void* rgctx_data; // const Il2CppRGCTXData*
|
|
void* methodDefinition; // const Il2CppMethodDefinition*
|
|
};
|
|
union {
|
|
void* genericMethod; // const Il2CppGenericMethod*
|
|
void* genericContainer; // const Il2CppGenericContainer*
|
|
};
|
|
uint32_t token;
|
|
uint16_t flags;
|
|
uint16_t iflags;
|
|
uint16_t slot;
|
|
uint8_t parameters_count;
|
|
uint8_t is_generic : 1;
|
|
uint8_t is_inflated : 1;
|
|
uint8_t wrapper_type : 1;
|
|
uint8_t is_marshaled_from_native : 1;
|
|
};
|
|
|
|
struct Il2CppObject
|
|
{
|
|
Il2CppClass *klass;
|
|
void *monitor;
|
|
};
|
|
|
|
typedef uintptr_t il2cpp_array_size_t;
|
|
|
|
struct UnityEngine_Vector2_Fields {
|
|
float x;
|
|
float y;
|
|
};
|
|
|
|
struct UnityEngine_Vector2_o {
|
|
UnityEngine_Vector2_Fields fields;
|
|
};
|
|
|
|
struct UnityEngine_Touch_Fields {
|
|
int32_t m_FingerId;
|
|
struct UnityEngine_Vector2_o m_Position;
|
|
struct UnityEngine_Vector2_o m_RawPosition;
|
|
struct UnityEngine_Vector2_o m_PositionDelta;
|
|
float m_TimeDelta;
|
|
int32_t m_TapCount;
|
|
int32_t m_Phase;
|
|
int32_t m_Type;
|
|
float m_Pressure;
|
|
float m_maximumPossiblePressure;
|
|
float m_Radius;
|
|
float m_RadiusVariance;
|
|
float m_AltitudeAngle;
|
|
float m_AzimuthAngle;
|
|
};
|
|
|
|
struct UnityEngine_Touch_o {
|
|
UnityEngine_Touch_Fields fields;
|
|
};
|
|
|
|
struct UnityEngine_Touch_array {
|
|
Il2CppObject obj;
|
|
void* bounds;
|
|
il2cpp_array_size_t max_length;
|
|
UnityEngine_Touch_o m_Items[65535];
|
|
};
|
|
|
|
extern "C" {
|
|
Il2CppDomain* il2cpp_domain_get();
|
|
Il2CppAssembly** il2cpp_domain_get_assemblies(Il2CppDomain* domain, size_t* size);
|
|
Il2CppImage* il2cpp_assembly_get_image(Il2CppAssembly *assembly);
|
|
Il2CppClass* il2cpp_class_from_name(Il2CppImage* image, const char* namespaze, const char *name);
|
|
MethodInfo* il2cpp_class_get_method_from_name(Il2CppClass *klass, const char* name, int argsCount);
|
|
void* il2cpp_resolve_icall(const char* name);
|
|
}
|
|
|
|
#endif //IL2CPPSTRUCT_HPP
|