/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { UnityEngine_Debug_Binding.Register(app); System_String_Binding.Register(app); HFFramework_HFLog_Binding.Register(app); HFFramework_IDGenerator_Binding.Register(app); UnityEngine_Object_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); Cysharp_Threading_Tasks_CompilerServices_AsyncUniTaskMethodBuilder_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); UnityEngine_Component_Binding.Register(app); HFFramework_NotificationCenter_Binding.Register(app); System_Collections_Generic_HashSet_1_UInt64_Binding.Register(app); System_Int64_Binding.Register(app); System_Collections_Generic_HashSet_1_UInt64_Binding_Enumerator_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Object_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); HFFramework_AssetManager_Binding.Register(app); Cysharp_Threading_Tasks_UniTask_1_GameObject_Binding.Register(app); Cysharp_Threading_Tasks_UniTask_1_GameObject_Binding_Awaiter_Binding.Register(app); System_Type_Binding.Register(app); System_Activator_Binding.Register(app); HFFramework_GameFactory_Binding.Register(app); UnityEngine_Time_Binding.Register(app); HFFramework_GameLooper_Binding.Register(app); UnityEngine_MonoBehaviour_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector3)); s_UnityEngine_Vector3_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector3>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Quaternion)); s_UnityEngine_Quaternion_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Quaternion>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector2)); s_UnityEngine_Vector2_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector2>; }
IEnumerator LoadILRuntime() { appdomain = new ILRuntime.Runtime.Enviorment.AppDomain(); #if UNITY_ANDROID WWW www = new WWW(Application.streamingAssetsPath + "/HotfixProject.dll"); #else WWW www = new WWW("file:///" + Application.streamingAssetsPath + "/HotfixProject.dll"); #endif while (!www.isDone) { yield return(null); } if (!string.IsNullOrEmpty(www.error)) { Debug.LogError(www.error); } byte[] dll = www.bytes; www.Dispose(); #if UNITY_ANDROID www = new WWW(Application.streamingAssetsPath + "/HotfixProject.pdb"); #else www = new WWW("file:///" + Application.streamingAssetsPath + "/HotfixProject.pdb"); #endif while (!www.isDone) { yield return(null); } if (!string.IsNullOrEmpty(www.error)) { Debug.LogError(www.error); } byte[] pdb = www.bytes; fs = new MemoryStream(dll); p = new MemoryStream(pdb); appdomain.LoadAssembly(fs, p, new ILRuntime.Mono.Cecil.Pdb.PdbReaderProvider()); }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { UnityEngine_Debug_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt64_Object_Binding.Register(app); UnityEngine_Object_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); UnityEngine_Component_Binding.Register(app); HFFramework_GameLooper_Binding.Register(app); UnityEngine_MonoBehaviour_Binding.Register(app); HFFramework_NotificationMessage_Binding.Register(app); HFFramework_NotificationCenter_Binding.Register(app); HFFramework_AudioManager_Binding.Register(app); HFFramework_AudioPlayer_Binding.Register(app); System_Collections_Generic_List_1_Coroutine_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Int64_ILTypeInstance_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt64_Object_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_UInt64_Object_Binding.Register(app); UnityEngine_Time_Binding.Register(app); System_String_Binding.Register(app); System_Type_Binding.Register(app); System_Activator_Binding.Register(app); System_Collections_Generic_Queue_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Queue_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Action_1_Int32_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); UnityEngine_CanvasGroup_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }
public void LoadHotfixAssembly() { //加载AB包 Game.Scene.GetComponent <ResourcesComponent>().LoadBundle($"code.unity3d"); //加载AB包中的资源 GameObject code = (GameObject)Game.Scene.GetComponent <ResourcesComponent>(). GetAsset("code.unity3d", "Code"); byte[] assBytes = code.Get <TextAsset>("Hotfix.dll").bytes; byte[] pdbBytes = code.Get <TextAsset>("Hotfix.pdb").bytes; #if ILRuntime Log.Debug($"当前使用的是ILRuntime模式"); this.appDomain = new ILRuntime.Runtime.Enviorment.AppDomain(); this.dllStream = new MemoryStream(assBytes); this.pdbStream = new MemoryStream(pdbBytes); //加载热更新的dll this.appDomain.LoadAssembly(this.dllStream, this.pdbStream, new Mono.Cecil.Pdb.PdbReaderProvider()); //获取静态方法 start ETHotfix.Init->Start this.start = new ILStaticMethod(this.appDomain, "ETHotfix.Init", "Start", 0); this.hotfixTypes = this.appDomain.LoadedTypes.Values.Select(x => x.ReflectionType).ToList(); #else Log.Debug($"当前使用的是Mono模式"); this.assembly = Assembly.Load(assBytes, pdbBytes); Type hotfixInit = this.assembly.GetType("ETHotfix.Init"); this.start = new MonoStaticMethod(hotfixInit, "Start"); this.hotfixTypes = this.assembly.GetTypes().ToList(); #endif //卸载AB包 Game.Scene.GetComponent <ResourcesComponent>().UnloadBundle($"code.unity3d"); }
/// <summary> /// 初始化ilruntime /// </summary> private void HotFixInit(byte[] bytes) { if (GameEnvironment.Instance.Platform == GamePlatform.iOS) { if (appdomain == null) { appdomain = new ILRuntime.Runtime.Enviorment.AppDomain(); codeStream = new MemoryStream(bytes); appdomain.LoadAssembly(codeStream); InitializeILRuntime(); } } else { if (assembly == null) { assembly = Assembly.Load(bytes); } } CacheMethod(); HotFixAwake(); IsActiveMonoMethod = true; }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { LoadingPanel_Binding.Register(app); ProcedureLoadingScene_Binding.Register(app); UnityEngine_UI_Slider_Binding.Register(app); System_String_Binding.Register(app); UnityEngine_UI_Text_Binding.Register(app); EdgeFramework_UI_BaseUI_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); UnityEngine_Debug_Binding.Register(app); CRLBindingTestClass_Binding.Register(app); EdgeFramework_MonoSingleton_1_GameRoot_Binding.Register(app); UnityEngine_MonoBehaviour_Binding.Register(app); UnityEngine_Time_Binding.Register(app); UnityEngine_WaitForSeconds_Binding.Register(app); System_NotSupportedException_Binding.Register(app); TestDelegatMeth_Binding.Register(app); TestDelegatFunction_Binding.Register(app); System_Action_1_String_Binding.Register(app); System_Int32_Binding.Register(app); EdgeFramework_Singleton_1_ILRuntimeManager_Binding.Register(app); ILRuntimeManager_Binding.Register(app); TestClassBase_Binding.Register(app); }
public void Register(AppDomain appdomain) { appdomain.DelegateManager.RegisterFunctionDelegate <System.String, System.Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Object, System.String>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Reflection.ParameterInfo, System.String>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Threading.Tasks.Task <ILRuntime.Runtime.Intepreter.ILTypeInstance> >(); appdomain.DelegateManager.RegisterFunctionDelegate <Object, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Reflection.ParameterInfo, System.Type>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Type, System.String>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Object, System.Type>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Object>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.List <ILRuntime.Runtime.Intepreter.ILTypeInstance>, System.Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.List <ILRuntime.Runtime.Intepreter.ILTypeInstance>, System.Collections.Generic.IEnumerable <ILRuntime.Runtime.Intepreter.ILTypeInstance> >(); appdomain.DelegateManager.RegisterFunctionDelegate <float>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Threading.Tasks.Task>(); appdomain.DelegateManager.RegisterFunctionDelegate <global::CoroutineAdapter.Adaptor, System.Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <global::CoroutineAdapter.Adaptor, System.String>(); appdomain.DelegateManager.RegisterFunctionDelegate <global::MonoBehaviourAdapter.Adaptor, System.Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <ILRuntime.Runtime.Intepreter.ILTypeInstance, System.String>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.KeyValuePair <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>, ILRuntime.Runtime.Intepreter.ILTypeInstance>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.KeyValuePair <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>, System.Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.KeyValuePair <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>, System.String>(); }
public void DestroyManager() { IsActiveMonoMethod = false; if (codeStream != null) { codeStream.Close(); codeStream = null; } if (appdomain != null) { appdomain.Invoke(MainClassName, "Destroy", null, null); appdomain = null; } if (assembly != null) { m_DestroyMethod.Invoke(null, null); assembly = null; } p0 = null; i_updateMethod = null; i_fixedUpdateMethod = null; i_lateUpdateMethod = null; m_mainMethod = null; m_updateMethod = null; m_fixedUpdateMethod = null; m_lateUpdateMethod = null; m_DestroyMethod = null; Instance = null; }
public void Register(AppDomain appdomain) { appdomain.DelegateManager.RegisterFunctionDelegate <String, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <Object, String>(); appdomain.DelegateManager.RegisterFunctionDelegate <ParameterInfo, String>(); appdomain.DelegateManager.RegisterFunctionDelegate <Task <ILTypeInstance> >(); appdomain.DelegateManager.RegisterFunctionDelegate <UnityEngine.Object, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <ParameterInfo, Type>(); appdomain.DelegateManager.RegisterFunctionDelegate <Type, String>(); appdomain.DelegateManager.RegisterFunctionDelegate <Object, Type>(); appdomain.DelegateManager.RegisterFunctionDelegate <Object>(); appdomain.DelegateManager.RegisterFunctionDelegate <List <ILTypeInstance>, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <List <ILTypeInstance>, IEnumerable <ILTypeInstance> >(); appdomain.DelegateManager.RegisterFunctionDelegate <float>(); appdomain.DelegateManager.RegisterFunctionDelegate <Task>(); appdomain.DelegateManager.RegisterFunctionDelegate <CoroutineAdapter.Adaptor, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <CoroutineAdapter.Adaptor, String>(); appdomain.DelegateManager.RegisterFunctionDelegate <MonoBehaviourAdapter.Adaptor, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <ILTypeInstance, String>(); appdomain.DelegateManager.RegisterFunctionDelegate <KeyValuePair <String, ILTypeInstance>, ILTypeInstance>(); appdomain.DelegateManager.RegisterFunctionDelegate <KeyValuePair <String, ILTypeInstance>, Boolean>(); appdomain.DelegateManager.RegisterFunctionDelegate <KeyValuePair <String, ILTypeInstance>, String>(); }
static StackObject *GetData_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); //这里劫持enum进行修改 var enumObj = StackObject.ToObject(ptr_of_this_method, __domain, __mStack); string @name = enumObj.ToString(); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); BDFramework.DataListener.AStatusListener @dl = (BDFramework.DataListener.AStatusListener) typeof(BDFramework.DataListener.AStatusListener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); var result_of_this_method = BDFramework.DataListener.ValueListenerEx.GetData <System.Int32>(@dl, @name); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return(__ret + 1); }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_Object_Binding.Register(app); System_String_Binding.Register(app); System_Activator_Binding.Register(app); System_Console_Binding.Register(app); System_Type_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Binding.Register(app); System_Threading_Tasks_Task_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_Binding.Register(app); System_Threading_Tasks_Task_1_Int32_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_Int32_Binding.Register(app); System_Collections_Generic_List_1_Int32_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Collections_Generic_List_1_Dictionary_2_String_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Object_Binding.Register(app); ILRuntimeTest_TestFramework_ClassInheritanceTest_Binding.Register(app); System_Int32_Binding.Register(app); System_Object_Array_Binding.Register(app); System_Action_1_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Int32_Binding.Register(app); System_Collections_Generic_List_1_ILRuntimeTest_TestFramework_TestClass3Adaptor_Binding_Adaptor_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Reflection_FieldInfo_Binding.Register(app); System_Exception_Binding.Register(app); System_Reflection_PropertyInfo_Binding.Register(app); System_Collections_Generic_List_1_ILRuntimeTest_TestFramework_ClassInheritanceTestAdaptor_Binding_Adaptor_Binding.Register(app); ILRuntimeTest_TestFramework_ClassInheritanceTest2_1_ILRuntimeTest_TestFramework_ClassInheritanceTest2Adaptor_Binding_Adaptor_Binding.Register(app); ILRuntimeTest_TestFramework_TestClass2_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILRuntimeTest_TestFramework_ClassInheritanceTestAdaptor_Binding_Adaptor_Binding.Register(app); ILRuntimeTest_TestFramework_DelegateTest_Binding.Register(app); ILRuntimeTest_TestFramework_IntDelegate_Binding.Register(app); ILRuntimeTest_TestFramework_IntDelegate2_Binding.Register(app); System_Func_2_Int32_Int32_Binding.Register(app); System_Action_3_Int32_String_String_Binding.Register(app); ILRuntimeTest_TestFramework_BaseClassTest_Binding.Register(app); System_Action_1_String_Binding.Register(app); System_Boolean_Binding.Register(app); System_Action_Binding.Register(app); System_Math_Binding.Register(app); ILRuntimeTest_TestFramework_TestStruct_Binding.Register(app); ILRuntimeTest_TestFramework_TestClass3_Binding.Register(app); System_Byte_Binding.Register(app); System_IO_File_Binding.Register(app); System_IO_FileStream_Binding.Register(app); System_IO_Stream_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_Int32_Binding.Register(app); System_Enum_Binding.Register(app); System_Array_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_Int32_Array_Binding.Register(app); System_Int32_Array_Binding_Array_Binding.Register(app); System_Double_Binding.Register(app); ILRuntimeTest_TestFramework_TestVector3_Binding.Register(app); System_Int32_Array3_Binding.Register(app); System_Int32_Array2_Binding.Register(app); System_Single_Binding.Register(app); System_Nullable_1_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Int32_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_Int32_Binding.Register(app); System_Diagnostics_Stopwatch_Binding.Register(app); System_Func_4_Int32_Single_Int16_Double_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_Int64_Array_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Array_Binding.Register(app); System_Collections_Generic_IEnumerator_1_KeyValuePair_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_List_1_List_1_Int32_Binding.Register(app); System_Collections_Generic_List_1_List_1_List_1_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_ILTypeInstance_Int32_Binding.Register(app); System_Collections_Generic_List_1_Int32_Array_Binding.Register(app); System_Collections_Generic_List_1_Object_Binding.Register(app); System_Convert_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); System_Collections_Generic_List_1_String_Binding_Enumerator_Binding.Register(app); System_NotSupportedException_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_Int32_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); System_NotImplementedException_Binding.Register(app); ILRuntimeTest_TestFramework_TestVectorStruct_Binding.Register(app); ILRuntimeTest_TestFramework_TestVectorStruct2_Binding.Register(app); System_DateTime_Binding.Register(app); ILRuntimeTest_TestFramework_TestVectorClass_Binding.Register(app); System_Collections_Generic_Dictionary_2_Object_Object_Binding.Register(app); System_IComparable_1_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Int32_Binding_Enumerator_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(ILRuntimeTest.TestFramework.TestVector3)); s_ILRuntimeTest_TestFramework_TestVector3_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <ILRuntimeTest.TestFramework.TestVector3>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(ILRuntimeTest.TestFramework.TestVectorStruct)); s_ILRuntimeTest_TestFramework_TestVectorStruct_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <ILRuntimeTest.TestFramework.TestVectorStruct>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(ILRuntimeTest.TestFramework.TestVectorStruct2)); s_ILRuntimeTest_TestFramework_TestVectorStruct2_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <ILRuntimeTest.TestFramework.TestVectorStruct2>; }
/// <summary> /// Release the CLR binding, please invoke this BEFORE ILRuntime Appdomain destroy /// </summary> public static void Shutdown(ILRuntime.Runtime.Enviorment.AppDomain app) { s_ILRuntimeTest_TestFramework_TestVector3_Binding_Binder = null; s_ILRuntimeTest_TestFramework_TestVectorStruct_Binding_Binder = null; s_ILRuntimeTest_TestFramework_TestVectorStruct2_Binding_Binder = null; }
/// <summary> /// Release the CLR binding, please invoke this BEFORE ILRuntime Appdomain destroy /// </summary> public static void Shutdown(ILRuntime.Runtime.Enviorment.AppDomain app) { s_UnityEngine_Vector3_Binding_Binder = null; s_UnityEngine_Quaternion_Binding_Binder = null; s_UnityEngine_Vector2_Binding_Binder = null; }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { JEngine_Net_SocketIOComponent_Binding.Register(app); JEngine_Net_JSocketConfig_Binding.Register(app); WebSocketSharp_WebSocket_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_Boolean_Binding.Register(app); UnityEngine_Object_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); System_Action_1_SocketIOEvent_Binding.Register(app); System_Action_Binding.Register(app); System_Threading_Tasks_Task_1_Boolean_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_Boolean_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_String_Binding.Register(app); JEngine_Core_Log_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_List_1_ILTypeInstance_Binding.Register(app); JEngine_Core_Loom_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Type_Binding.Register(app); System_Activator_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Object_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); System_Action_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_UIBehaviour_Binding.Register(app); System_Collections_Generic_Dictionary_2_SByte_GameObject_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); UnityEngine_Component_Binding.Register(app); UnityEngine_RectTransform_Binding.Register(app); UnityEngine_Vector2_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_Convert_Binding.Register(app); System_Action_1_GameObject_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Dictionary_2_String_AssetRequest_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_AssetRequest_Binding.Register(app); libx_AssetRequest_Binding.Register(app); libx_Assets_Binding.Register(app); System_Action_1_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Action_1_Object_Binding.Register(app); System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_AssetRequest_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_AssetRequest_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); System_Enum_Binding.Register(app); System_Array_Binding.Register(app); System_Threading_Tasks_Task_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_Binding.Register(app); UnityEngine_Application_Binding.Register(app); System_Collections_Generic_Dictionary_2_RectTransform_Dictionary_2_String_Component_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Component_Binding.Register(app); UnityEngine_UI_Image_Binding.Register(app); UnityEngine_UI_Text_Binding.Register(app); UnityEngine_UI_RawImage_Binding.Register(app); UnityEngine_Texture_Binding.Register(app); JEngine_UI_EventTriggerListener_Binding.Register(app); JEngine_UI_EventTriggerListener_Binding_EventHandle_1_PointerEventData_Binding.Register(app); System_Collections_Generic_List_1_UnityEngine_EventSystems_EventTrigger_Binding_Entry_Binding.Register(app); UnityEngine_EventSystems_EventTrigger_Binding.Register(app); UnityEngine_UI_Selectable_Binding.Register(app); UnityEngine_EventSystems_EventTrigger_Binding_Entry_Binding.Register(app); UnityEngine_Events_UnityEvent_1_BaseEventData_Binding.Register(app); UnityEngine_UI_Toggle_Binding.Register(app); UnityEngine_Events_UnityEvent_1_Boolean_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); UnityEngine_Quaternion_Binding.Register(app); UnityEngine_EventSystems_PointerEventData_Binding.Register(app); UnityEngine_RectTransformUtility_Binding.Register(app); System_ValueTuple_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Boolean_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); UnityEngine_Mathf_Binding.Register(app); JEngine_UI_LoopListItem_Binding.Register(app); UnityEngine_EventSystems_BaseEventData_Binding.Register(app); UnityEngine_UI_ScrollRect_Binding.Register(app); JEngine_UI_LoopListView_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); ProtoBuf_PType_Binding.Register(app); UnityEngine_PlayerPrefs_Binding.Register(app); System_Char_Binding.Register(app); System_Text_StringBuilder_Binding.Register(app); Init_Binding.Register(app); System_Exception_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); JEngine_Core_CryptoHelper_Binding.Register(app); System_Int32_Binding.Register(app); System_Int16_Binding.Register(app); System_Int64_Binding.Register(app); System_Decimal_Binding.Register(app); System_Double_Binding.Register(app); System_Single_Binding.Register(app); System_Collections_Generic_List_1_GameObject_Binding.Register(app); JEngine_Core__ClassBind_Binding.Register(app); JEngine_Core_ClassBind_Binding.Register(app); System_Collections_Generic_List_1_MonoBehaviourAdapter_Binding_Adaptor_Binding.Register(app); System_Threading_CancellationTokenSource_Binding.Register(app); System_Guid_Binding.Register(app); UnityEngine_MonoBehaviour_Binding.Register(app); System_NotSupportedException_Binding.Register(app); MonoBehaviourAdapter_Binding_Adaptor_Binding.Register(app); System_Reflection_FieldInfo_Binding.Register(app); System_Diagnostics_Stopwatch_Binding.Register(app); JEngine_Core_GameStats_Binding.Register(app); System_Collections_Generic_List_1_Action_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Single_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Func_1_Boolean_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_CoroutineAdapter_Binding_Adaptor_Binding.Register(app); System_GC_Binding.Register(app); System_Func_1_Boolean_Binding.Register(app); System_Threading_Tasks_Task_1_CoroutineAdapter_Binding_Adaptor_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_CoroutineAdapter_Binding_Adaptor_Binding.Register(app); System_TimeoutException_Binding.Register(app); System_IO_MemoryStream_Binding.Register(app); ProtoBuf_Serializer_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); libx_Reference_Binding.Register(app); System_Action_2_Boolean_CoroutineAdapter_Binding_Adaptor_Binding.Register(app); UnityEngine_UI_InputField_Binding.Register(app); UnityEngine_Events_UnityEvent_1_String_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); UnityEngine_Events_UnityEvent_Binding.Register(app); UnityEngine_TextAsset_Binding.Register(app); JEngine_AntiCheat_JFloat_Binding.Register(app); JEngine_AntiCheat_JLong_Binding.Register(app); UnityEngine_Random_Binding.Register(app); System_Threading_Thread_Binding.Register(app); WebSocketSharp_MessageEventArgs_Binding.Register(app); JEngine_Net_SocketIOEvent_Binding.Register(app); JSONObject_Binding.Register(app); ExampleAPI_Binding.Register(app); }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_NotImplementedException_Binding.Register(app); System_String_Binding.Register(app); System_Text_StringBuilder_Binding.Register(app); System_Object_Binding.Register(app); System_Collections_IEnumerable_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Type_Binding.Register(app); Google_Protobuf_ByteString_Binding.Register(app); ETModel_ByteHelper_Binding.Register(app); System_Array_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Reflection_PropertyInfo_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); UnityEngine_Debug_Binding.Register(app); System_Exception_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); ETModel_Log_Binding.Register(app); ETModel_IdGenerater_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); UnityEngine_Object_Binding.Register(app); ETModel_MongoHelper_Binding.Register(app); //ETModel_LayerNames_Binding.Register(app); ETModel_ComponentView_Binding.Register(app); System_Activator_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_HashSet_1_ILTypeInstance_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Collections_Generic_HashSet_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_ILTypeInstance_Binding.Register(app); ETModel_UnOrderMultiMap_2_Type_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Queue_1_Int64_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); ETModel_Game_Binding.Register(app); ETModel_Hotfix_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding_Enumerator_Binding.Register(app); ETModel_EventAttribute_Binding.Register(app); ETModel_EventProxy_Binding.Register(app); ETModel_EventSystem_Binding.Register(app); System_Collections_Generic_Queue_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Type_ILTypeInstance_Binding.Register(app); ETModel_Define_Binding.Register(app); ETModel_Entity_Binding.Register(app); ETModel_ResourcesComponent_Binding.Register(app); ETModel_ConfigAttribute_Binding.Register(app); ETModel_AppTypeHelper_Binding.Register(app); ETModel_GameObjectHelper_Binding.Register(app); UnityEngine_TextAsset_Binding.Register(app); ETModel_Actor_Test_Binding.Register(app); ETModel_AsyncETVoidMethodBuilder_Binding.Register(app); ETModel_GlobalConfigComponent_Binding.Register(app); ETModel_GlobalProto_Binding.Register(app); ETModel_NetworkComponent_Binding.Register(app); ETModel_ETTask_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); ETModel_ETTask_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding_Awaiter_Binding.Register(app); ETModel_SessionComponent_Binding.Register(app); ETModel_ComponentFactory_Binding.Register(app); ETModel_PlayerComponent_Binding.Register(app); ETModel_ETTask_Binding.Register(app); ETModel_ETTask_Binding_Awaiter_Binding.Register(app); ETModel_SceneChangeComponent_Binding.Register(app); ETModel_C2G_EnterMap_Binding.Register(app); ETModel_Session_Binding.Register(app); ETModel_ETTask_1_IResponse_Binding.Register(app); ETModel_ETTask_1_IResponse_Binding_Awaiter_Binding.Register(app); ETModel_G2C_EnterMap_Binding.Register(app); ETModel_Player_Binding.Register(app); ETModel_M2C_CreateUnits_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_UnitInfo_Binding.Register(app); System_Collections_Generic_IEnumerator_1_UnitInfo_Binding.Register(app); ETModel_UnitInfo_Binding.Register(app); ETModel_UnitComponent_Binding.Register(app); ETModel_UnitFactory_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); ETModel_Unit_Binding.Register(app); ETModel_M2C_PathfindingResult_Binding.Register(app); ETModel_AnimatorComponent_Binding.Register(app); ETModel_UnitPathComponent_Binding.Register(app); ETModel_ETVoid_Binding.Register(app); ETModel_GizmosDebug_Binding.Register(app); System_Collections_Generic_List_1_Vector3_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Single_Binding.Register(app); UnityEngine_LayerMask_Binding.Register(app); UnityEngine_Input_Binding.Register(app); UnityEngine_Camera_Binding.Register(app); UnityEngine_Physics_Binding.Register(app); UnityEngine_RaycastHit_Binding.Register(app); ETModel_Frame_ClickMap_Binding.Register(app); ReferenceCollector_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); ETModel_ActionHelper_Binding.Register(app); ETModel_AssetBundleHelper_Binding.Register(app); UnityEngine_UI_InputField_Binding.Register(app); Google_Protobuf_ProtoPreconditions_Binding.Register(app); Google_Protobuf_CodedOutputStream_Binding.Register(app); Google_Protobuf_CodedInputStream_Binding.Register(app); Google_Protobuf_MessageParser_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_String_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Int32_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Int64_Binding.Register(app); Google_Protobuf_FieldCodec_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt16_List_1_ILTypeInstance_Binding.Register(app); ETModel_OpcodeTypeComponent_Binding.Register(app); ETModel_MessageProxy_Binding.Register(app); ETModel_MessageDispatcherComponent_Binding.Register(app); ETModel_MessageInfo_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_Queue_1_Object_Binding.Register(app); System_Collections_Generic_Queue_1_Object_Binding.Register(app); ETModel_DoubleMap_2_UInt16_Type_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt16_Object_Binding.Register(app); ETModel_MessageAttribute_Binding.Register(app); ETModel_SessionCallbackComponent_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); System_Action_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); ETModel_Component_Binding.Register(app); ETModel_IMessagePacker_Binding.Register(app); ETModel_OpcodeHelper_Binding.Register(app); ETModel_StringHelper_Binding.Register(app); ETModel_ETTaskCompletionSource_1_Google_Protobuf_Adapt_IMessage_Binding_Adaptor_Binding.Register(app); System_Threading_CancellationToken_Binding.Register(app); ETModel_ErrorCode_Binding.Register(app); ETModel_RpcException_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); UnityEngine_Component_Binding.Register(app); UnityEngine_Canvas_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_Collections_Generic_List_1_Int32_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Console_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Int32_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); System_Collections_Generic_List_1_Adaptor_Binding.Register(app); System_String_Binding.Register(app); System_Type_Binding.Register(app); System_Object_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); System_Activator_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Reflection_FieldInfo_Binding.Register(app); ILRuntimeTest_TestFramework_ClassInheritanceTest_Binding.Register(app); System_Collections_Generic_List_1_Adaptor_Binding.Register(app); System_Int32_Binding.Register(app); ILRuntimeTest_TestFramework_ClassInheritanceTest2_1_Adaptor_Binding.Register(app); System_Exception_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Adaptor_Binding.Register(app); ILRuntimeTest_TestFramework_DelegateTest_Binding.Register(app); ILRuntimeTest_TestFramework_IntDelegate_Binding.Register(app); System_Action_1_Int32_Binding.Register(app); ILRuntimeTest_TestFramework_IntDelegate2_Binding.Register(app); System_Func_2_Int32_Int32_Binding.Register(app); System_Action_3_Int32_String_String_Binding.Register(app); ILRuntimeTest_TestFramework_BaseClassTest_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app); System_Action_1_String_Binding.Register(app); System_Boolean_Binding.Register(app); System_Math_Binding.Register(app); ILRuntimeTest_TestFramework_TestStruct_Binding.Register(app); ILRuntimeTest_TestFramework_TestClass3_Binding.Register(app); System_Byte_Binding.Register(app); System_IO_FileStream_Binding.Register(app); System_IO_Stream_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_Int32_Binding.Register(app); System_Diagnostics_Stopwatch_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Array_Binding.Register(app); System_Collections_Generic_IEnumerator_1_KeyValuePair_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Int32_Int32_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_Collections_Generic_List_1_List_1_Int32_Binding.Register(app); System_Collections_Generic_List_1_List_1_List_1_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_ILTypeInstance_Int32_Binding.Register(app); System_Array_Binding.Register(app); System_Collections_Generic_List_1_Int32_Array_Binding.Register(app); System_Convert_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); System_Collections_Generic_List_1_String_Binding_Enumerator_Binding.Register(app); System_NotSupportedException_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_Int32_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); System_NotImplementedException_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Int32_Binding_Enumerator_Binding.Register(app); }
{ /// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { UnityEngine_EventSystems_EventSystem_Binding.Register(app); UnityEngine_EventSystems_EventTrigger_Binding.Register(app); UnityEngine_EventSystems_ExecuteEvents_Binding.Register(app); UnityEngine_EventSystems_UIBehaviour_Binding.Register(app); UnityEngine_EventSystems_AxisEventData_Binding.Register(app); UnityEngine_EventSystems_AbstractEventData_Binding.Register(app); UnityEngine_EventSystems_BaseEventData_Binding.Register(app); UnityEngine_EventSystems_PointerEventData_Binding.Register(app); UnityEngine_EventSystems_BaseInput_Binding.Register(app); UnityEngine_EventSystems_BaseInputModule_Binding.Register(app); UnityEngine_EventSystems_PointerInputModule_Binding.Register(app); UnityEngine_EventSystems_StandaloneInputModule_Binding.Register(app); UnityEngine_EventSystems_BaseRaycaster_Binding.Register(app); UnityEngine_EventSystems_Physics2DRaycaster_Binding.Register(app); UnityEngine_EventSystems_PhysicsRaycaster_Binding.Register(app); UnityEngine_UI_AnimationTriggers_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); UnityEngine_UI_CanvasUpdateRegistry_Binding.Register(app); UnityEngine_UI_DefaultControls_Binding.Register(app); UnityEngine_UI_Dropdown_Binding.Register(app); UnityEngine_UI_FontData_Binding.Register(app); UnityEngine_UI_FontUpdateTracker_Binding.Register(app); UnityEngine_UI_Graphic_Binding.Register(app); UnityEngine_UI_GraphicRaycaster_Binding.Register(app); UnityEngine_UI_GraphicRebuildTracker_Binding.Register(app); UnityEngine_UI_GraphicRegistry_Binding.Register(app); UnityEngine_UI_Image_Binding.Register(app); UnityEngine_UI_InputField_Binding.Register(app); UnityEngine_UI_Mask_Binding.Register(app); UnityEngine_UI_MaskableGraphic_Binding.Register(app); UnityEngine_UI_MaskUtilities_Binding.Register(app); UnityEngine_UI_RawImage_Binding.Register(app); UnityEngine_UI_RectMask2D_Binding.Register(app); UnityEngine_UI_Scrollbar_Binding.Register(app); UnityEngine_UI_ScrollRect_Binding.Register(app); UnityEngine_UI_Selectable_Binding.Register(app); UnityEngine_UI_Slider_Binding.Register(app); UnityEngine_UI_StencilMaterial_Binding.Register(app); UnityEngine_UI_Text_Binding.Register(app); UnityEngine_UI_Toggle_Binding.Register(app); UnityEngine_UI_ToggleGroup_Binding.Register(app); UnityEngine_UI_ClipperRegistry_Binding.Register(app); UnityEngine_UI_Clipping_Binding.Register(app); UnityEngine_UI_AspectRatioFitter_Binding.Register(app); UnityEngine_UI_CanvasScaler_Binding.Register(app); UnityEngine_UI_ContentSizeFitter_Binding.Register(app); UnityEngine_UI_GridLayoutGroup_Binding.Register(app); UnityEngine_UI_HorizontalLayoutGroup_Binding.Register(app); UnityEngine_UI_HorizontalOrVerticalLayoutGroup_Binding.Register(app); UnityEngine_UI_LayoutElement_Binding.Register(app); UnityEngine_UI_LayoutGroup_Binding.Register(app); UnityEngine_UI_LayoutRebuilder_Binding.Register(app); UnityEngine_UI_LayoutUtility_Binding.Register(app); UnityEngine_UI_VerticalLayoutGroup_Binding.Register(app); UnityEngine_UI_VertexHelper_Binding.Register(app); UnityEngine_Experimental_UI_VertexHelperExtension_Binding.Register(app); UnityEngine_UI_BaseMeshEffect_Binding.Register(app); UnityEngine_UI_Outline_Binding.Register(app); UnityEngine_UI_PositionAsUV1_Binding.Register(app); UnityEngine_UI_Shadow_Binding.Register(app); }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_String_Binding.Register(app); BDebug_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); System_Reflection_Assembly_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Reflection_AssemblyName_Binding.Register(app); System_AppDomain_Binding.Register(app); System_Collections_Generic_List_1_Assembly_Binding.Register(app); BDFramework_ILRuntimeHelper_Binding.Register(app); ILRuntime_Runtime_Enviorment_AppDomain_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_IType_Binding.Register(app); System_Collections_Generic_List_1_IType_Binding.Register(app); System_Collections_Generic_List_1_IType_Binding_Enumerator_Binding.Register(app); ILRuntime_CLR_TypeSystem_IType_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Type_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding_Enumerator_Binding.Register(app); System_Reflection_PropertyInfo_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Activator_Binding.Register(app); System_Exception_Binding.Register(app); UnityEngine_Debug_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); BDFramework_BDLauncher_Binding.Register(app); SQLite4Unity3d_SqliteLoder_Binding.Register(app); SQLite4Unity3d_SQLiteConnection_Binding.Register(app); System_Array_Binding.Register(app); System_Collections_Generic_List_1_Object_Binding.Register(app); System_Object_Binding.Register(app); System_Collections_IList_Binding.Register(app); System_Collections_ICollection_Binding.Register(app); SQLite4Unity3d_SQLiteCommand_Binding.Register(app); System_Collections_Generic_List_1_Object_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); IEnumeratorTool_Binding.Register(app); System_Collections_Generic_List_1_Int32_Binding.Register(app); System_Collections_Generic_List_1_Int32_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Action_1_Object_Binding.Register(app); BDFramework_ResourceMgr_BResources_Binding.Register(app); UnityEngine_Object_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); UnityEngine_Component_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Object_Binding_KeyCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Object_Binding_KeyCollection_Binding_Enumerator_Binding.Register(app); System_Action_1_Object_Binding.Register(app); System_Action_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app); System_Diagnostics_Stopwatch_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); System_Action_2_Int32_Int32_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Reflection_FieldInfo_Binding.Register(app); System_Collections_Generic_Dictionary_2_Transform_Dictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_UITool_Attribute_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Object_Binding.Register(app); UITool_Attribute_Binding.Register(app); UnityEngine_WaitForSecondsRealtime_Binding.Register(app); System_Collections_Generic_List_1_Transform_Binding.Register(app); System_Collections_Generic_List_1_Transform_Binding_Enumerator_Binding.Register(app); System_NotSupportedException_Binding.Register(app); UnityEngine_UI_Image_Binding.Register(app); UnityEngine_Behaviour_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Type_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Object_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_Object_Binding.Register(app); ADataListener_Binding.Register(app); System_Reflection_MethodInfo_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); UnityEngine_Events_UnityEvent_Binding.Register(app); UnityEngine_UI_Scrollbar_Binding.Register(app); UnityEngine_Events_UnityEvent_1_Single_Binding.Register(app); UnityEngine_UI_Slider_Binding.Register(app); UnityEngine_UI_Text_Binding.Register(app); UnityEngine_UI_Toggle_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Binding.Register(app); UnityEngine_Application_Binding.Register(app); BDFramework_Helper_Utils_Binding.Register(app); System_IO_Directory_Binding.Register(app); System_Collections_Generic_HashSet_1_String_Binding.Register(app); BDFramework_Http_HttpMgr_Binding.Register(app); System_Net_WebClient_Binding.Register(app); System_Threading_Tasks_Task_1_String_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_String_Binding.Register(app); System_Action_1_String_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); System_IO_File_Binding.Register(app); System_IO_Path_Binding.Register(app); System_Threading_Tasks_Task_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_String_Binding.Register(app); System_Int32_Binding.Register(app); UnityEngine_Random_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); System_Collections_Generic_IEnumerable_1_KeyValuePair_2_String_Object_Binding.Register(app); System_Collections_Generic_IEnumerator_1_KeyValuePair_2_String_Object_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_Object_Binding_t.Register(app); System_Collections_IEnumerator_Binding.Register(app); DG_Tweening_ShortcutExtensions_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); DG_Tweening_TweenSettingsExtensions_Binding.Register(app); DataListenerServer_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }
public static List <IType> GetParamList(this MethodReference def, ILRuntime.Runtime.Enviorment.AppDomain appdomain, IType contextType, IMethod contextMethod, IType[] genericArguments) { if (def.HasParameters) { List <IType> param = new List <IType>(); var dt = appdomain.GetType(def.DeclaringType, contextType, contextMethod); foreach (var i in def.Parameters) { IType t = null; t = appdomain.GetType(i.ParameterType, dt, null); if ((t == null && def.IsGenericInstance) || (t != null && t.HasGenericParameter)) { GenericInstanceMethod gim = (GenericInstanceMethod)def; string name = i.ParameterType.IsByReference ? ((ByReferenceType)i.ParameterType).ElementType.FullName : i.ParameterType.FullName; for (int j = 0; j < gim.GenericArguments.Count; j++) { var gp = gim.ElementMethod.GenericParameters[j]; var ga = gim.GenericArguments[j]; if (name == gp.Name) { t = appdomain.GetType(ga, contextType, contextMethod); if (t == null && genericArguments != null) { t = genericArguments[j]; } break; } else if (name.Contains(gp.Name)) { t = appdomain.GetType(ga, contextType, contextMethod); if (t == null && genericArguments != null) { t = genericArguments[j]; } if (name == gp.Name + "[]") { name = t.FullName + "[]"; } else { /*name = name.Replace("<" + gp.Name + ">", "<" + ga.FullName + ">"); * name = name.Replace("<" + gp.Name + "[", "<" + ga.FullName + "["); * name = name.Replace("<" + gp.Name + ",", "<" + ga.FullName + ","); * name = name.Replace("," + gp.Name + ">", "," + ga.FullName + ">"); * name = name.Replace("," + gp.Name + "[", "," + ga.FullName + "["); * name = name.Replace("," + gp.Name + ",", "," + ga.FullName + ","); * name = name.Replace("," + gp.Name + "[", "," + ga.FullName + "[");*/ name = ReplaceGenericArgument(name, gp.Name, t.FullName); } t = null; } } if (dt.GenericArguments != null) { foreach (var gp in dt.GenericArguments) { if (name.Contains(gp.Key)) { name = ReplaceGenericArgument(name, gp.Key, gp.Value.FullName); } } } if (t == null) { t = appdomain.GetType(name); } if (t != null && i.ParameterType.IsByReference) { t = t.MakeByRefType(); } } param.Add(t); } return(param); } else { return(EmptyParamList); } }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_Object_Binding.Register(app); System_Type_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); Knight_Core_ICustomAttributeProviderExpand_Binding.Register(app); System_Reflection_CustomAttributeExtensions_Binding.Register(app); System_String_Binding.Register(app); Knight_Core_UtilTool_Binding.Register(app); System_IO_File_Binding.Register(app); Knight_Core_WindJson_JsonParser_Binding.Register(app); System_Reflection_FieldInfo_Binding.Register(app); Knight_Core_WindJson_JsonNode_Binding.Register(app); System_Reflection_PropertyInfo_Binding.Register(app); System_IO_FileStream_Binding.Register(app); System_IO_BinaryWriter_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Binding.Register(app); Knight_Core_AssetLoader_Binding.Register(app); Knight_Core_IAssetLoader_Binding.Register(app); Knight_Core_DictExpand_Binding.Register(app); Knight_Core_TSingleton_1_ABPlatform_Binding.Register(app); Knight_Framework_AssetBundles_ABPlatform_Binding.Register(app); UnityFx_Async_AsyncExtensions_Binding.Register(app); UnityFx_Async_CompilerServices_AsyncAwaiter_1_AssetLoaderRequest_Binding.Register(app); Knight_Core_AssetLoaderRequest_Binding.Register(app); UnityEngine_Object_Binding.Register(app); UnityEngine_TextAsset_Binding.Register(app); System_IO_MemoryStream_Binding.Register(app); System_IO_BinaryReader_Binding.Register(app); Knight_Core_TSingleton_1_HotfixEventManager_Binding.Register(app); Knight_Framework_Hotfix_HotfixEventManager_Binding.Register(app); System_Threading_Tasks_Task_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_Binding.Register(app); UnityEngine_Debug_Binding.Register(app); System_Int32_Binding.Register(app); Knight_Core_TSingleton_1_UIAtlasManager_Binding.Register(app); UnityEngine_UI_UIAtlasManager_Binding.Register(app); System_Threading_Tasks_Task_1_ILTypeInstance_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_ILTypeInstance_Binding.Register(app); Knight_Core_GameLoading_Binding.Register(app); Knight_Core_WaitAsync_Binding.Register(app); UnityFx_Async_CompilerServices_AsyncAwaiter_1_Knight_Core_WaitAsync_Binding_WaitForSecondsRequest_Binding.Register(app); Knight_Core_Dict_2_Int32_ILTypeInstance_Binding.Register(app); System_Collections_Generic_IEnumerator_1_CKeyValuePair_2_Int32_ILTypeInstance_Binding.Register(app); Knight_Core_CKeyValuePair_2_Int32_ILTypeInstance_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_Single_Binding.Register(app); UnityEngine_Component_Binding.Register(app); System_Collections_Generic_Stack_1_ILTypeInstance_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_ILTypeInstance_Binding.Register(app); Knight_Core_EventArg_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); Knight_Core_ObservableList_1_ILTypeInstance_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_String_Binding.Register(app); Knight_Core_TSingleton_1_EventManager_Binding.Register(app); Knight_Core_EventManager_Binding.Register(app); Knight_Core_WindJson_JsonArray_Binding.Register(app); System_Collections_IEnumerable_Binding.Register(app); System_Array_Binding.Register(app); Knight_Core_WindJson_JsonClass_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); Knight_Core_IDict_Binding.Register(app); System_Collections_Generic_Dictionary_2_Object_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_Object_Object_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Object_Object_Binding.Register(app); Knight_Core_WindJson_JsonData_Binding.Register(app); Knight_Core_ReflectionAssist_Binding.Register(app); System_Reflection_ConstructorInfo_Binding.Register(app); System_Convert_Binding.Register(app); System_Reflection_ICustomAttributeProvider_Binding.Register(app); System_Collections_Hashtable_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); System_Collections_Generic_List_1_KeyValuePair_2_Type_Type_Binding.Register(app); Knight_Core_TSingleton_1_TypeResolveManager_Binding.Register(app); Knight_Core_TypeResolveManager_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Type_Type_Binding.Register(app); System_Collections_Generic_List_1_KeyValuePair_2_Type_Type_Binding_Enumerator_Binding.Register(app); UnityFx_Async_CompilerServices_AsyncAwaiter_1_Knight_Core_WaitAsync_Binding_WaitForEndOfFrameRequest_Binding.Register(app); System_Func_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_CKeyValuePair_2_Int32_ILTypeInstance_Binding.Register(app); System_Char_Binding.Register(app); UnityEngine_UI_DataBindingProperty_Binding.Register(app); UnityEngine_UI_EventBinding_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Reflection_MethodInfo_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); UnityEngine_UI_ViewControllerContainer_Binding.Register(app); UnityEngine_UI_MemberBindingAbstract_Binding.Register(app); System_Collections_Generic_List_1_ViewModelDataSource_Binding.Register(app); UnityEngine_UI_ViewModelDataSource_Binding.Register(app); System_Collections_Generic_List_1_EventBinding_Binding.Register(app); System_Collections_Generic_List_1_MemberBindingAbstract_Binding.Register(app); UnityEngine_UI_DataBindingTypeResolve_Binding.Register(app); UnityEngine_UI_DataBindingPropertyWatcher_Binding.Register(app); UnityEngine_UI_MemberBindingTwoWay_Binding.Register(app); System_Collections_Generic_List_1_ViewModelDataSourceList_Binding.Register(app); UnityEngine_UI_ViewModelDataSourceTemplate_Binding.Register(app); Knight_Core_IObservableEvent_Binding.Register(app); System_Collections_ICollection_Binding.Register(app); UnityEngine_UI_ViewModelDataSourceList_Binding.Register(app); UnityEngine_UI_LoopScrollRect_Binding.Register(app); System_Collections_IList_Binding.Register(app); UnityEngine_UI_ViewModelDataSourceArray_Binding.Register(app); UnityEngine_UI_UITool_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); UnityEngine_UI_ViewModelDataSourceTab_Binding.Register(app); System_Collections_Generic_List_1_TabButton_Binding.Register(app); UnityEngine_UI_TabView_Binding.Register(app); Knight_Core_ObjectExpand_Binding.Register(app); UnityEngine_UI_Toggle_Binding.Register(app); UnityEngine_UI_TabButton_Binding.Register(app); Knight_Core_Dict_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_IEnumerator_1_CKeyValuePair_2_String_ILTypeInstance_Binding.Register(app); Knight_Core_CKeyValuePair_2_String_ILTypeInstance_Binding.Register(app); UnityEngine_UI_UIRoot_Binding.Register(app); Knight_Core_IndexedDict_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); Knight_Core_IndexedDictExpand_Binding.Register(app); Knight_Core_TSingleton_1_UIAssetLoader_Binding.Register(app); UnityEngine_UI_UIAssetLoader_Binding.Register(app); UnityEngine_UI_UIAssetLoader_Binding_LoaderRequest_Binding.Register(app); System_Guid_Binding.Register(app); UnityEngine_UI_DataBindingRelatedAttribute_Binding.Register(app); Knight_Core_Dict_2_String_List_1_String_Binding.Register(app); System_Action_1_String_Binding.Register(app); Knight_Framework_Net_Packet_Binding.Register(app); Knight_Framework_Net_NetworkSession_Binding.Register(app); Knight_Framework_Net_NetworkClient_Binding.Register(app); Knight_Framework_Net_NetworkOpcodeTypes_Binding.Register(app); System_Exception_Binding.Register(app); System_Action_1_ILTypeInstance_Binding.Register(app); System_Threading_Tasks_TaskCompletionSource_1_ILTypeInstance_Binding.Register(app); Knight_Core_Dict_2_Int32_Action_1_ILTypeInstance_Binding.Register(app); System_Threading_CancellationToken_Binding.Register(app); System_Collections_Generic_List_1_Byte_Array_Binding.Register(app); System_Byte_Binding.Register(app); Knight_Framework_Net_RpcException_Binding.Register(app); Microsoft_IO_RecyclableMemoryStreamManager_Binding.Register(app); System_ComponentModel_ISupportInitialize_Binding.Register(app); System_Collections_Generic_List_1_MemberInfo_Binding.Register(app); System_Threading_Monitor_Binding.Register(app); System_InvalidOperationException_Binding.Register(app); System_Activator_Binding.Register(app); System_Collections_Generic_List_1_UnityObject_Binding.Register(app); Knight_Framework_Hotfix_UnityObject_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding_Enumerator_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }
public override void Register(ILRuntime.Runtime.Enviorment.AppDomain appdomain) { //因为Demo没有特别的需求,所以这里为空。 }
public ILStaticMethod(ILRuntime.Runtime.Enviorment.AppDomain appDomain, IType type, string methodName, int paramsCount) { this.appDomain = appDomain; this.method = type.GetMethod(methodName, paramsCount); this.param = new object[paramsCount]; }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_NotImplementedException_Binding.Register(app); System_String_Binding.Register(app); System_Exception_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); ETModel_Log_Binding.Register(app); UnityEngine_LayerMask_Binding.Register(app); UnityEngine_Input_Binding.Register(app); UnityEngine_Camera_Binding.Register(app); UnityEngine_Physics_Binding.Register(app); UnityEngine_RaycastHit_Binding.Register(app); ETModel_SessionComponent_Binding.Register(app); ETModel_Frame_ClickMap_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); ETModel_Session_Binding.Register(app); System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Binding.Register(app); System_Threading_Tasks_Task_1_ILTypeInstance_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_ILTypeInstance_Binding.Register(app); ETModel_Game_Binding.Register(app); ETModel_Entity_Binding.Register(app); ETModel_ResourcesComponent_Binding.Register(app); ETModel_Actor_CreateUnits_Binding.Register(app); System_Collections_Generic_List_1_UnitInfo_Binding.Register(app); System_Collections_Generic_List_1_UnitInfo_Binding_Enumerator_Binding.Register(app); ETModel_UnitInfo_Binding.Register(app); ETModel_UnitComponent_Binding.Register(app); ETModel_UnitFactory_Binding.Register(app); ETModel_Unit_Binding.Register(app); VInt3_Binding.Register(app); ETModel_PlayerComponent_Binding.Register(app); ETModel_Player_Binding.Register(app); ETModel_ComponentWithId_Binding.Register(app); ETModel_CameraComponent_Binding.Register(app); System_IDisposable_Binding.Register(app); ETModel_Actor_Test_Binding.Register(app); ETModel_MoveComponent_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding.Register(app); ETModel_Hotfix_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding_Enumerator_Binding.Register(app); System_Type_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_Activator_Binding.Register(app); ETModel_GameObjectHelper_Binding.Register(app); UnityEngine_TextAsset_Binding.Register(app); ETModel_IdGenerater_Binding.Register(app); System_Collections_Generic_HashSet_1_ILTypeInstance_Binding.Register(app); System_Object_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Collections_Generic_HashSet_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_ILTypeInstance_Binding.Register(app); ETModel_UnOrderMultiMap_2_Type_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Queue_1_Int64_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); ETModel_EventAttribute_Binding.Register(app); ETModel_EventProxy_Binding.Register(app); ETModel_EventSystem_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_Queue_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Queue_1_ILTypeInstance_Binding.Register(app); ETModel_SessionCallbackComponent_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_1_ILTypeInstance_Binding.Register(app); ETModel_Component_Binding.Register(app); ETModel_ProtobufHelper_Binding.Register(app); ETModel_MessageInfo_Binding.Register(app); System_Threading_Tasks_TaskCompletionSource_1_ILTypeInstance_Binding.Register(app); System_Threading_CancellationToken_Binding.Register(app); ETModel_RpcException_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt16_List_1_ILTypeInstance_Binding.Register(app); ETModel_OpcodeTypeComponent_Binding.Register(app); ETModel_MessageProxy_Binding.Register(app); ETModel_MessageDispatherComponent_Binding.Register(app); ETModel_MessageAttribute_Binding.Register(app); ETModel_DoubleMap_2_UInt16_Type_Binding.Register(app); ProtoBuf_PType_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); ETModel_UIFactoryAttribute_Binding.Register(app); ETModel_CanvasConfig_Binding.Register(app); UnityEngine_Transform_Binding.Register(app); System_Collections_Generic_List_1_String_Binding.Register(app); ETModel_Scene_Binding.Register(app); UnityEngine_Object_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); UnityEngine_Component_Binding.Register(app); ReferenceCollector_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); ETModel_ActionHelper_Binding.Register(app); ETModel_Actor_TestRequest_Binding.Register(app); System_Threading_Tasks_Task_1_IResponse_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_IResponse_Binding.Register(app); ETModel_Actor_TransferRequest_Binding.Register(app); ETModel_C2G_EnterMap_Binding.Register(app); ETModel_GlobalConfigComponent_Binding.Register(app); ETModel_GlobalProto_Binding.Register(app); ETModel_NetworkHelper_Binding.Register(app); UnityEngine_UI_InputField_Binding.Register(app); ETModel_NetworkComponent_Binding.Register(app); ETModel_ComponentFactory_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }
public void GenerateByAssemblies_InitILRuntime(ILRuntime.Runtime.Enviorment.AppDomain appdomain) { //注册跨域 appdomain.RegisterCrossBindingAdaptor(new XUIBehaviourAdaptors()); }
public void Start() { switch (this.CodeMode) { case CodeMode.Mono: { #if !UNITY_EDITOR var ab = AddressablesManager.Instance.SyncLoadAssetBundle("code_assets_all.bundle"); byte[] assBytes = ((TextAsset)ab.LoadAsset($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.dll.bytes", typeof(TextAsset))).bytes; byte[] pdbBytes = ((TextAsset)ab.LoadAsset($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.pdb.bytes", typeof(TextAsset))).bytes; #else byte[] assBytes = (AssetDatabase.LoadAssetAtPath($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.dll.bytes", typeof(TextAsset)) as TextAsset).bytes; byte[] pdbBytes = (AssetDatabase.LoadAssetAtPath($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.pdb.bytes", typeof(TextAsset)) as TextAsset).bytes; #endif assembly = Assembly.Load(assBytes, pdbBytes); foreach (Type type in this.assembly.GetTypes()) { this.monoTypes[type.FullName] = type; this.hotfixTypes[type.FullName] = type; } IStaticMethod start = new MonoStaticMethod(assembly, "ET.Entry", "Start"); start.Run(); #if !UNITY_EDITOR ab.Unload(true); #endif break; } case CodeMode.ILRuntimeJIT: case CodeMode.ILRuntime: { #if !UNITY_EDITOR var ab = AddressablesManager.Instance.SyncLoadAssetBundle("code_assets_all.bundle"); byte[] assBytes = ((TextAsset)ab.LoadAsset($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.dll.bytes", typeof(TextAsset))).bytes; byte[] pdbBytes = ((TextAsset)ab.LoadAsset($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.pdb.bytes", typeof(TextAsset))).bytes; #else byte[] assBytes = (AssetDatabase.LoadAssetAtPath($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.dll.bytes", typeof(TextAsset)) as TextAsset).bytes; byte[] pdbBytes = (AssetDatabase.LoadAssetAtPath($"Assets/AssetsPackage/Code/Code{AssetBundleConfig.Instance.ResVer}.pdb.bytes", typeof(TextAsset)) as TextAsset).bytes; #endif if (this.CodeMode == CodeMode.ILRuntimeJIT) { appDomain = new ILRuntime.Runtime.Enviorment.AppDomain(ILRuntime.Runtime.ILRuntimeJITFlags.JITOnDemand); } else { appDomain = new ILRuntime.Runtime.Enviorment.AppDomain(); } #if DEBUG && (UNITY_EDITOR || UNITY_ANDROID || UNITY_IPHONE) this.appDomain.UnityMainThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId; #endif if (assStream != null) { assStream.Dispose(); } if (pdbStream != null) { pdbStream.Dispose(); } assStream = new MemoryStream(assBytes); pdbStream = new MemoryStream(pdbBytes); appDomain.LoadAssembly(assStream, pdbStream, new ILRuntime.Mono.Cecil.Pdb.PdbReaderProvider()); Type[] types = appDomain.LoadedTypes.Values.Select(x => x.ReflectionType).ToArray(); foreach (Type type in types) { this.hotfixTypes[type.FullName] = type; } ILHelper.InitILRuntime(appDomain); IStaticMethod start = new ILStaticMethod(appDomain, "ET.Entry", "Start", 0); #if !UNITY_EDITOR ab.Unload(true); #endif start.Run(); break; } case CodeMode.Reload: { byte[] assBytes = File.ReadAllBytes(Path.Combine(Define.BuildOutputDir, "Data.dll")); byte[] pdbBytes = File.ReadAllBytes(Path.Combine(Define.BuildOutputDir, "Data.pdb")); assembly = Assembly.Load(assBytes, pdbBytes); this.LoadLogic(); IStaticMethod start = new MonoStaticMethod(assembly, "ET.Entry", "Start"); start.Run(); break; } } }
// manual register public static void Init(ILRuntime.Runtime.Enviorment.AppDomain app) { if (app == null) { // should log error return; } ILRuntime.Runtime.Enviorment.PrimitiveConverter <ILRuntimeTest.TestFramework.TestCLREnum> .ToInteger = (a) => (int)a; ILRuntime.Runtime.Enviorment.PrimitiveConverter <ILRuntimeTest.TestFramework.TestCLREnum> .FromInteger = (a) => (ILRuntimeTest.TestFramework.TestCLREnum)a; // adaptor register app.RegisterCrossBindingAdaptor(new ClassInheritanceTestAdaptor()); app.RegisterCrossBindingAdaptor(new InterfaceTestAdaptor()); app.RegisterCrossBindingAdaptor(new TestClass2Adapter()); app.RegisterCrossBindingAdaptor(new TestClass3Adaptor()); app.RegisterCrossBindingAdaptor(new TestClass4Adaptor()); app.RegisterCrossBindingAdaptor(new IDisposableAdapter()); app.RegisterCrossBindingAdaptor(new ClassInheritanceTest2Adaptor()); app.RegisterCrossBindingAdaptor(new IAsyncStateMachineClassInheritanceAdaptor()); // value type register app.RegisterValueTypeBinder(typeof(TestVector3), new TestVector3Binder()); app.RegisterValueTypeBinder(typeof(TestVectorStruct), new TestVectorStructBinder()); app.RegisterValueTypeBinder(typeof(TestVectorStruct2), new TestVectorStruct2Binder()); app.RegisterValueTypeBinder(typeof(System.Collections.Generic.KeyValuePair <uint, ILRuntime.Runtime.Intepreter.ILTypeInstance>), new KeyValuePairUInt32ILTypeInstanceBinder()); // delegate register app.DelegateManager.RegisterFunctionDelegate <System.Int32, System.Boolean>(); app.DelegateManager.RegisterMethodDelegate <System.Int32>(); app.DelegateManager.RegisterFunctionDelegate <System.Int32, System.Int32>(); app.DelegateManager.RegisterMethodDelegate <System.Int32, System.String, System.String>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestFramework.BaseClassTest>(); app.DelegateManager.RegisterFunctionDelegate <System.Int32>(); app.DelegateManager.RegisterFunctionDelegate <System.Collections.Generic.KeyValuePair <System.Int32, System.Collections.Generic.List <System.Int32> >, System.Collections.Generic.IEnumerable <System.Int32> >(); app.DelegateManager.RegisterFunctionDelegate <System.Int32, System.Single, System.Int16, System.Double>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Boolean>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestFramework.TestCLREnum>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntimeTest.TestFramework.TestCLREnum>(); app.DelegateManager.RegisterFunctionDelegate <System.Threading.Tasks.Task <System.Collections.Generic.List <System.String> > >(); app.DelegateManager.RegisterFunctionDelegate <System.Byte, System.Boolean>(); app.DelegateManager.RegisterFunctionDelegate <System.Byte, System.Byte>(); app.DelegateManager.RegisterFunctionDelegate <System.Linq.IGrouping <System.Byte, System.Byte>, ILRuntime.Runtime.Intepreter.ILTypeInstance>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Int32>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntimeTest.TestFramework.TestVector3, System.Single>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestFramework.TestVector3>(); // delegate convertor app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.TestValueTypeDelegate>((act) => { return(new ILRuntimeTest.TestFramework.TestValueTypeDelegate((vec) => { ((Action <ILRuntimeTest.TestFramework.TestVector3>)act)(vec); })); }); app.DelegateManager.RegisterDelegateConvertor <System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance> >((act) => { return(new System.Predicate <ILRuntime.Runtime.Intepreter.ILTypeInstance>((obj) => { return ((Func <ILRuntime.Runtime.Intepreter.ILTypeInstance, System.Boolean>)act)(obj); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.IntDelegate>((action) => { return(new ILRuntimeTest.TestFramework.IntDelegate((a) => { ((Action <Int32>)action)(a); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.Int2Delegate>((action) => { return(new ILRuntimeTest.TestFramework.Int2Delegate((a, b) => { ((Action <Int32, Int32>)action)(a, b); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.InitFloat>((action) => { return(new ILRuntimeTest.TestFramework.InitFloat((a, b) => { ((Action <Int32, Single>)action)(a, b); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.IntDelegate2>((action) => { return(new ILRuntimeTest.TestFramework.IntDelegate2((a) => { return ((Func <Int32, Int32>)action)(a); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.Int2Delegate2>((action) => { return(new ILRuntimeTest.TestFramework.Int2Delegate2((a, b) => { return ((Func <Int32, Int32, Boolean>)action)(a, b); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.IntFloatDelegate2>((action) => { return(new ILRuntimeTest.TestFramework.IntFloatDelegate2((a, b) => { return ((Func <Int32, Single, String>)action)(a, b); })); }); app.DelegateManager.RegisterDelegateConvertor <ILRuntimeTest.TestFramework.BindableProperty <System.Int64> .onChangeWithOldVal>((act) => { return(new ILRuntimeTest.TestFramework.BindableProperty <System.Int64> .onChangeWithOldVal((oldVal, newVal) => { ((Action <System.Int64, System.Int64>)act)(oldVal, newVal); })); }); // LitJson register LitJson.JsonMapper.RegisterILRuntimeCLRRedirection(app); app.DelegateManager.RegisterMethodDelegate <System.Object>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.Object>(); app.DelegateManager.RegisterMethodDelegate <System.Exception>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.Exception>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.ArgumentException>(); app.DelegateManager.RegisterMethodDelegate <System.Exception>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass <System.Int32>, System.Exception>(); app.DelegateManager.RegisterMethodDelegate <System.ArgumentException>(); app.DelegateManager.RegisterMethodDelegate <ILRuntime.Runtime.Intepreter.ILTypeInstance>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass <System.Int32>, System.ArgumentException>(); app.DelegateManager.RegisterMethodDelegate <ILRuntimeTest.TestBase.ExtensionClass>(); app.DelegateManager.RegisterMethodDelegate <System.Int64, System.Int64>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.Int32>(); app.DelegateManager.RegisterFunctionDelegate <System.Threading.Tasks.Task>(); app.DelegateManager.RegisterFunctionDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.Threading.Tasks.Task>(); app.DelegateManager.RegisterFunctionDelegate <System.Threading.Tasks.Task <System.Int32> >(); app.DelegateManager.RegisterFunctionDelegate <ILRuntimeTest.TestBase.ExtensionClass, System.Threading.Tasks.Task <System.Int32> >(); app.Prewarm("TestCases.AsyncAwaitTest", false); //app.Prewarm("ILRuntime.Runtime.Enviorment.CrossBindingAdaptorType"); }
/// <summary> /// Release the CLR binding, please invoke this BEFORE ILRuntime Appdomain destroy /// </summary> public static void Shutdown(ILRuntime.Runtime.Enviorment.AppDomain app) { }
public void Register(AppDomain appdomain) { appdomain.DelegateManager.RegisterDelegateConvertor <JEngine.Core.BindableProperty <System.Int64> .onChange>((act) => { return(new JEngine.Core.BindableProperty <System.Int64> .onChange((val) => { ((Action <System.Int64>)act)(val); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <JEngine.Core.BindableProperty <System.Object> .onChange>((act) => { return(new JEngine.Core.BindableProperty <System.Object> .onChange((val) => { ((Action <System.Object>)act)(val); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Predicate <String> >(act => { return(new Predicate <String>(obj => { return ((Func <String, Boolean>)act)(obj); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <ParameterizedThreadStart>(act => { return(new ParameterizedThreadStart(obj => { ((Action <Object>)act)(obj); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <EventHandler <MessageEventArgs> >(act => { return(new EventHandler <MessageEventArgs>((sender, e) => { ((Action <Object, MessageEventArgs>)act)(sender, e); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction <String> >(act => { return(new UnityAction <String>(arg0 => { ((Action <String>)act)(arg0); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction <Boolean> >(act => { return(new UnityAction <Boolean>(arg0 => { ((Action <Boolean>)act)(arg0); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <WaitCallback>(act => { return(new WaitCallback(state => { ((Action <Object>)act)(state); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction>(act => { return(new UnityAction(() => { ((Action)act)(); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction <Single> >(act => { return(new UnityAction <Single>(arg0 => { ((Action <Single>)act)(arg0); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnhandledExceptionEventHandler>(act => { return(new UnhandledExceptionEventHandler((sender, e) => { ((Action <Object, UnhandledExceptionEventArgs>)act)(sender, e); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Predicate <UnityEngine.Object> >(act => { return(new Predicate <UnityEngine.Object>(obj => { return ((Func <UnityEngine.Object, Boolean>)act)(obj); })); }); appdomain.DelegateManager .RegisterDelegateConvertor <Predicate <ILTypeInstance> >(act => { return(new Predicate <ILTypeInstance>(obj => { return ((Func <ILTypeInstance, Boolean>)act)(obj); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction <Int32> >(act => { return(new UnityAction <Int32>(arg0 => { ((Action <Int32>)act)(arg0); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Action <JsonData> >(action => { return(new Action <JsonData>(a => { ((Action <JsonData>)action)(a); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UnityAction>(act => { return(new UnityAction(async() => { ((Action)act)(); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <ThreadStart>(act => { return(new ThreadStart(() => { ((Action)act)(); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Predicate <CoroutineAdapter.Adaptor> >( act => { return(new Predicate <CoroutineAdapter.Adaptor>(obj => { return ((Func <CoroutineAdapter.Adaptor, Boolean>)act)(obj); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Predicate <MonoBehaviourAdapter.Adaptor> >(act => { return(new Predicate <MonoBehaviourAdapter.Adaptor>(obj => { return ((Func <MonoBehaviourAdapter.Adaptor, Boolean>)act)(obj); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <ElapsedEventHandler>(act => { return(new ElapsedEventHandler((sender, e) => { ((Action <Object, ElapsedEventArgs>)act)(sender, e); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <UIEventHandle <PointerEventData> >(act => { return(new UIEventHandle <PointerEventData>((go, eventData) => { ((Action <GameObject, PointerEventData>)act)(go, eventData); })); }); appdomain.DelegateManager.RegisterDelegateConvertor <Predicate <KeyValuePair <String, ILTypeInstance> > >(act => { return(new Predicate <KeyValuePair <String, ILTypeInstance> >(obj => { return ((Func <KeyValuePair <String, ILTypeInstance>, Boolean>)act)(obj); })); }); }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { System_Text_StringBuilder_Binding.Register(app); System_Object_Binding.Register(app); System_Collections_IEnumerable_Binding.Register(app); System_Collections_IEnumerator_Binding.Register(app); System_IDisposable_Binding.Register(app); System_Type_Binding.Register(app); Google_Protobuf_ByteString_Binding.Register(app); ETModel_ByteHelper_Binding.Register(app); System_Array_Binding.Register(app); System_Reflection_MemberInfo_Binding.Register(app); System_String_Binding.Register(app); System_Reflection_PropertyInfo_Binding.Register(app); System_Reflection_MethodBase_Binding.Register(app); UnityEngine_Debug_Binding.Register(app); System_Exception_Binding.Register(app); System_Collections_IDictionary_Binding.Register(app); ETModel_Log_Binding.Register(app); ETModel_IdGenerater_Binding.Register(app); UnityEngine_Object_Binding.Register(app); ETModel_MongoHelper_Binding.Register(app); System_Activator_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_ValueCollection_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_ValueCollection_Binding_Enumerator_Binding.Register(app); System_Linq_Enumerable_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int64_ILTypeInstance_Binding.Register(app); ETModel_UnOrderMultiMap_2_Type_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Queue_1_Int64_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_List_1_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); Trinity_GameEntry_Binding.Register(app); Trinity_ILRuntimeComponent_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding_Enumerator_Binding.Register(app); GameFramework_Utility_Binding_Json_Binding.Register(app); System_Collections_Generic_Queue_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_Type_ILTypeInstance_Binding.Register(app); Google_Protobuf_ProtoPreconditions_Binding.Register(app); Google_Protobuf_CodedOutputStream_Binding.Register(app); Google_Protobuf_CodedInputStream_Binding.Register(app); Google_Protobuf_MessageParser_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_String_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Int32_Binding.Register(app); Google_Protobuf_Collections_RepeatedField_1_Int64_Binding.Register(app); Google_Protobuf_FieldCodec_Binding.Register(app); System_NotImplementedException_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt16_List_1_ILTypeInstance_Binding.Register(app); ETModel_Game_Binding.Register(app); ETModel_Entity_Binding.Register(app); ETModel_OpcodeTypeComponent_Binding.Register(app); ETModel_MessageProxy_Binding.Register(app); ETModel_MessageDispatcherComponent_Binding.Register(app); ETModel_MessageInfo_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_Queue_1_Object_Binding.Register(app); System_Collections_Generic_Queue_1_Object_Binding.Register(app); ETModel_DoubleMap_2_UInt16_Type_Binding.Register(app); System_Collections_Generic_Dictionary_2_UInt16_Object_Binding.Register(app); ETModel_MessageAttribute_Binding.Register(app); ETModel_SessionCallbackComponent_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); ETModel_Session_Binding.Register(app); System_Action_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); ETModel_Component_Binding.Register(app); ETModel_NetworkComponent_Binding.Register(app); ETModel_IMessagePacker_Binding.Register(app); ETModel_OpcodeHelper_Binding.Register(app); ETModel_StringHelper_Binding.Register(app); ETModel_ETTaskCompletionSource_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); System_Threading_CancellationToken_Binding.Register(app); ETModel_ErrorCode_Binding.Register(app); ETModel_RpcException_Binding.Register(app); UnityEngine_Vector3_Binding.Register(app); UnityEngine_Quaternion_Binding.Register(app); GameFramework_GameFrameworkException_Binding.Register(app); Trinity_ETNetworkComponent_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app); GameFramework_Utility_Binding_Text_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_Enumerator_Binding.Register(app); System_Collections_Generic_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_String_Variable_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app); UnityGameFramework_Runtime_Log_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_Binding.Register(app); UnityGameFramework_Runtime_LoadSceneSuccessEventArgs_Binding.Register(app); UnityGameFramework_Runtime_EventComponent_Binding.Register(app); UnityGameFramework_Runtime_LoadSceneFailureEventArgs_Binding.Register(app); UnityGameFramework_Runtime_LoadSceneUpdateEventArgs_Binding.Register(app); UnityGameFramework_Runtime_LoadSceneDependencyAssetEventArgs_Binding.Register(app); UnityGameFramework_Runtime_SceneComponent_Binding.Register(app); UnityGameFramework_Runtime_BaseComponent_Binding.Register(app); GameFramework_Variable_1_Int32_Binding.Register(app); UnityGameFramework_Runtime_DataTableComponent_Binding.Register(app); GameFramework_DataTable_IDataTable_1_DRScene_Binding.Register(app); System_Int32_Binding.Register(app); Trinity_DRScene_Binding.Register(app); Trinity_AssetUtility_Binding.Register(app); System_Action_Binding.Register(app); Trinity_SoundExtension_Binding.Register(app); System_Single_Binding.Register(app); UnityGameFramework_Runtime_VarInt_Binding.Register(app); System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Binding.Register(app); UnityEngine_Input_Binding.Register(app); ETModel_ETTask_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding.Register(app); ETModel_ETTask_1_Google_Protobuf_IMessageAdaptor_Binding_Adaptor_Binding_Awaiter_Binding.Register(app); Trinity_UIExtension_Binding.Register(app); System_Collections_Generic_ICollection_1_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_IEnumerable_1_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_IEnumerator_1_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_IDictionary_2_String_ILTypeInstance_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_LinkedList_1_EventHandler_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_LinkedList_1_EventHandler_1_ILTypeInstance_Binding.Register(app); System_Collections_Generic_LinkedListNode_1_EventHandler_1_ILTypeInstance_Binding.Register(app); System_EventHandler_1_ILTypeInstance_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector3)); s_UnityEngine_Vector3_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector3>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Quaternion)); s_UnityEngine_Quaternion_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Quaternion>; __clrType = (ILRuntime.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector2)); s_UnityEngine_Vector2_Binding_Binder = __clrType.ValueTypeBinder as ILRuntime.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector2>; }
/// <summary> /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration /// </summary> public static void Initialize(ILRuntime.Runtime.Enviorment.AppDomain app) { UnityEngine_Object_Binding.Register(app); UnityEngine_Component_Binding.Register(app); UnityEngine_GameObject_Binding.Register(app); System_Collections_Generic_List_1_GameObject_Binding.Register(app); System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Binding.Register(app); System_String_Binding.Register(app); System_Action_Binding.Register(app); libx_Assets_Binding.Register(app); libx_AssetRequest_Binding.Register(app); System_Threading_Tasks_Task_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_Binding.Register(app); System_Collections_Generic_List_1_Action_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Single_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Func_1_Boolean_Binding.Register(app); System_Collections_Generic_Dictionary_2_Int32_Action_Binding.Register(app); System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_ILTypeInstance_Binding.Register(app); JEngine_Core_Log_Binding.Register(app); System_Threading_CancellationTokenSource_Binding.Register(app); System_Func_1_Boolean_Binding.Register(app); System_Threading_Tasks_Task_1_ILTypeInstance_Binding.Register(app); System_Runtime_CompilerServices_TaskAwaiter_1_ILTypeInstance_Binding.Register(app); JEngine_Core_Loom_Binding.Register(app); UnityEngine_Application_Binding.Register(app); System_TimeoutException_Binding.Register(app); Init_Binding.Register(app); System_Exception_Binding.Register(app); System_Object_Binding.Register(app); JEngine_Core_CryptoHelper_Binding.Register(app); UnityEngine_PlayerPrefs_Binding.Register(app); System_Convert_Binding.Register(app); System_Int32_Binding.Register(app); System_Int16_Binding.Register(app); System_Int64_Binding.Register(app); System_Decimal_Binding.Register(app); System_Double_Binding.Register(app); System_Single_Binding.Register(app); System_Boolean_Binding.Register(app); System_Type_Binding.Register(app); System_Collections_Generic_List_1_Type_Binding.Register(app); ProtoBuf_PType_Binding.Register(app); System_IO_MemoryStream_Binding.Register(app); ProtoBuf_Serializer_Binding.Register(app); LitJson_JsonMapper_Binding.Register(app); UnityEngine_Behaviour_Binding.Register(app); System_AppDomain_Binding.Register(app); GameStats_Binding.Register(app); System_UnhandledExceptionEventArgs_Binding.Register(app); System_Action_1_MonoBehaviourAdapter_Binding_Adaptor_Binding.Register(app); System_Collections_Generic_Dictionary_2_Type_UIBehaviour_Binding.Register(app); UnityEngine_UI_Text_Binding.Register(app); UnityEngine_Random_Binding.Register(app); UnityEngine_UI_InputField_Binding.Register(app); UnityEngine_Events_UnityEvent_1_String_Binding.Register(app); UnityEngine_UI_Toggle_Binding.Register(app); UnityEngine_Events_UnityEvent_1_Boolean_Binding.Register(app); UnityEngine_TextAsset_Binding.Register(app); UnityEngine_UI_Button_Binding.Register(app); UnityEngine_Events_UnityEvent_Binding.Register(app); ILRuntime.CLR.TypeSystem.CLRType __clrType = null; }