示例#1
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(EB.Sparx.SparxAPIWithoutEndpoint);

            args   = new Type[] { typeof(EB.Sparx.Response) };
            method = type.GetMethod("ProcessResponse", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ProcessResponse_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("CheckError", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CheckError_1);
            args   = new Type[] { typeof(EB.Sparx.Response), typeof(EB.Sparx.eResponseCode) };
            method = type.GetMethod("ProcessError", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ProcessError_2);

            field = type.GetField("ErrorHandler", flag);
            app.RegisterCLRFieldGetter(field, get_ErrorHandler_0);
            app.RegisterCLRFieldSetter(field, set_ErrorHandler_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_ErrorHandler_0, AssignFromStack_ErrorHandler_0);
            field = type.GetField("GlobalErrorHandler", flag);
            app.RegisterCLRFieldGetter(field, get_GlobalErrorHandler_1);
            app.RegisterCLRFieldSetter(field, set_GlobalErrorHandler_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_GlobalErrorHandler_1, AssignFromStack_GlobalErrorHandler_1);
            field = type.GetField("GlobalResultHandler", flag);
            app.RegisterCLRFieldGetter(field, get_GlobalResultHandler_2);
            app.RegisterCLRFieldSetter(field, set_GlobalResultHandler_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_GlobalResultHandler_2, AssignFromStack_GlobalResultHandler_2);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(JEngine.Core.ClassData);

            field = type.GetField("classNamespace", flag);
            app.RegisterCLRFieldGetter(field, get_classNamespace_0);
            app.RegisterCLRFieldSetter(field, set_classNamespace_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_classNamespace_0, AssignFromStack_classNamespace_0);
            field = type.GetField("className", flag);
            app.RegisterCLRFieldGetter(field, get_className_1);
            app.RegisterCLRFieldSetter(field, set_className_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_className_1, AssignFromStack_className_1);
            field = type.GetField("activeAfter", flag);
            app.RegisterCLRFieldGetter(field, get_activeAfter_2);
            app.RegisterCLRFieldSetter(field, set_activeAfter_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_activeAfter_2, AssignFromStack_activeAfter_2);
            field = type.GetField("useConstructor", flag);
            app.RegisterCLRFieldGetter(field, get_useConstructor_3);
            app.RegisterCLRFieldSetter(field, set_useConstructor_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_useConstructor_3, AssignFromStack_useConstructor_3);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
示例#3
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::JSONTest);

            field = type.GetField("a", flag);
            app.RegisterCLRFieldGetter(field, get_a_0);
            app.RegisterCLRFieldSetter(field, set_a_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_a_0, AssignFromStack_a_0);
            field = type.GetField("b", flag);
            app.RegisterCLRFieldGetter(field, get_b_1);
            app.RegisterCLRFieldSetter(field, set_b_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_b_1, AssignFromStack_b_1);
            field = type.GetField("c", flag);
            app.RegisterCLRFieldGetter(field, get_c_2);
            app.RegisterCLRFieldSetter(field, set_c_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_c_2, AssignFromStack_c_2);
            field = type.GetField("d", flag);
            app.RegisterCLRFieldGetter(field, get_d_3);
            app.RegisterCLRFieldSetter(field, set_d_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_d_3, AssignFromStack_d_3);
            field = type.GetField("e", flag);
            app.RegisterCLRFieldGetter(field, get_e_4);
            app.RegisterCLRFieldSetter(field, set_e_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_e_4, AssignFromStack_e_4);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
示例#4
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ET.CodeLoader);

            args   = new Type[] {};
            method = type.GetMethod("LoadHotfix", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadHotfix_0);
            args   = new Type[] {};
            method = type.GetMethod("GetTypes", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetTypes_1);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Instance_0, AssignFromStack_Instance_0);
            field = type.GetField("Update", flag);
            app.RegisterCLRFieldGetter(field, get_Update_1);
            app.RegisterCLRFieldSetter(field, set_Update_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Update_1, AssignFromStack_Update_1);
            field = type.GetField("LateUpdate", flag);
            app.RegisterCLRFieldGetter(field, get_LateUpdate_2);
            app.RegisterCLRFieldSetter(field, set_LateUpdate_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_LateUpdate_2, AssignFromStack_LateUpdate_2);
            field = type.GetField("OnApplicationQuit", flag);
            app.RegisterCLRFieldGetter(field, get_OnApplicationQuit_3);
            app.RegisterCLRFieldSetter(field, set_OnApplicationQuit_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnApplicationQuit_3, AssignFromStack_OnApplicationQuit_3);
        }
示例#5
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ET.SoundManager);

            args   = new Type[] {};
            method = type.GetMethod("CreateClipSource", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreateClipSource_0);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Instance_0, AssignFromStack_Instance_0);
            field = type.GetField("Sound", flag);
            app.RegisterCLRFieldGetter(field, get_Sound_1);
            app.RegisterCLRFieldSetter(field, set_Sound_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Sound_1, AssignFromStack_Sound_1);
            field = type.GetField("BGM", flag);
            app.RegisterCLRFieldGetter(field, get_BGM_2);
            app.RegisterCLRFieldSetter(field, set_BGM_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_BGM_2, AssignFromStack_BGM_2);
            field = type.GetField("m_bgm", flag);
            app.RegisterCLRFieldGetter(field, get_m_bgm_3);
            app.RegisterCLRFieldSetter(field, set_m_bgm_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_bgm_3, AssignFromStack_m_bgm_3);
        }
示例#6
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ILRuntimeTest.TestFramework.TestVectorStruct);

            field = type.GetField("C", flag);
            app.RegisterCLRFieldGetter(field, get_C_0);
            app.RegisterCLRFieldSetter(field, set_C_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_C_0, AssignFromStack_C_0);
            field = type.GetField("B", flag);
            app.RegisterCLRFieldGetter(field, get_B_1);
            app.RegisterCLRFieldSetter(field, set_B_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_B_1, AssignFromStack_B_1);
            field = type.GetField("A", flag);
            app.RegisterCLRFieldGetter(field, get_A_2);
            app.RegisterCLRFieldSetter(field, set_A_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_A_2, AssignFromStack_A_2);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVectorStruct());
        }
示例#7
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::UIToggle);

            args   = new Type[] {};
            method = type.GetMethod("get_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_value_0);
            args   = new Type[] { typeof(System.Boolean), typeof(System.Boolean) };
            method = type.GetMethod("Set", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Set_1);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_value_2);
            args   = new Type[] {};
            method = type.GetMethod("Start", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Start_3);

            field = type.GetField("startsActive", flag);
            app.RegisterCLRFieldGetter(field, get_startsActive_0);
            app.RegisterCLRFieldSetter(field, set_startsActive_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_startsActive_0, AssignFromStack_startsActive_0);
            field = type.GetField("onChange", flag);
            app.RegisterCLRFieldGetter(field, get_onChange_1);
            app.RegisterCLRFieldSetter(field, set_onChange_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_onChange_1, AssignFromStack_onChange_1);

            app.RegisterCLRCreateArrayInstance(type, s => new global::UIToggle[s]);
        }
示例#8
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(Hotfix_LT.Combat.CombatSyncActionData.CombatTeamInfo);

            field = type.GetField("teamWin", flag);
            app.RegisterCLRFieldGetter(field, get_teamWin_0);
            app.RegisterCLRFieldSetter(field, set_teamWin_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_teamWin_0, AssignFromStack_teamWin_0);
            field = type.GetField("teamIndex", flag);
            app.RegisterCLRFieldGetter(field, get_teamIndex_1);
            app.RegisterCLRFieldSetter(field, set_teamIndex_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_teamIndex_1, AssignFromStack_teamIndex_1);
            field = type.GetField("worldId", flag);
            app.RegisterCLRFieldGetter(field, get_worldId_2);
            app.RegisterCLRFieldSetter(field, set_worldId_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_worldId_2, AssignFromStack_worldId_2);
            field = type.GetField("teamName", flag);
            app.RegisterCLRFieldGetter(field, get_teamName_3);
            app.RegisterCLRFieldSetter(field, set_teamName_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_teamName_3, AssignFromStack_teamName_3);
        }
示例#9
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::NetManager);

            args   = new Type[] {};
            method = type.GetMethod("get_App", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_App_0);
            args   = new Type[] {};
            method = type.GetMethod("get_IsExitAccount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsExitAccount_1);

            field = type.GetField("SubProtocolKey", flag);
            app.RegisterCLRFieldGetter(field, get_SubProtocolKey_0);
            app.RegisterCLRFieldSetter(field, set_SubProtocolKey_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_SubProtocolKey_0, AssignFromStack_SubProtocolKey_0);
            field = type.GetField("PackageStyle", flag);
            app.RegisterCLRFieldGetter(field, get_PackageStyle_1);
            app.RegisterCLRFieldSetter(field, set_PackageStyle_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_PackageStyle_1, AssignFromStack_PackageStyle_1);
            field = type.GetField("PackageNum", flag);
            app.RegisterCLRFieldGetter(field, get_PackageNum_2);
            app.RegisterCLRFieldSetter(field, set_PackageNum_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_PackageNum_2, AssignFromStack_PackageNum_2);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(UnityEngine.EventSystems.PointerInputModule);

            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("IsPointerOverGameObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsPointerOverGameObject_0);
            args   = new Type[] {};
            method = type.GetMethod("ToString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ToString_1);

            field = type.GetField("kMouseLeftId", flag);
            app.RegisterCLRFieldGetter(field, get_kMouseLeftId_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_kMouseLeftId_0, null);
            field = type.GetField("kMouseRightId", flag);
            app.RegisterCLRFieldGetter(field, get_kMouseRightId_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_kMouseRightId_1, null);
            field = type.GetField("kMouseMiddleId", flag);
            app.RegisterCLRFieldGetter(field, get_kMouseMiddleId_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_kMouseMiddleId_2, null);
            field = type.GetField("kFakeTouchesId", flag);
            app.RegisterCLRFieldGetter(field, get_kFakeTouchesId_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_kFakeTouchesId_3, null);


            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.EventSystems.PointerInputModule[s]);
        }
示例#11
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(FairyGUI.TextFormat);

            field = type.GetField("letterSpacing", flag);
            app.RegisterCLRFieldGetter(field, get_letterSpacing_0);
            app.RegisterCLRFieldSetter(field, set_letterSpacing_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_letterSpacing_0, AssignFromStack_letterSpacing_0);
            field = type.GetField("lineSpacing", flag);
            app.RegisterCLRFieldGetter(field, get_lineSpacing_1);
            app.RegisterCLRFieldSetter(field, set_lineSpacing_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_lineSpacing_1, AssignFromStack_lineSpacing_1);
            field = type.GetField("outline", flag);
            app.RegisterCLRFieldGetter(field, get_outline_2);
            app.RegisterCLRFieldSetter(field, set_outline_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_outline_2, AssignFromStack_outline_2);
            field = type.GetField("outlineColor", flag);
            app.RegisterCLRFieldGetter(field, get_outlineColor_3);
            app.RegisterCLRFieldSetter(field, set_outlineColor_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_outlineColor_3, AssignFromStack_outlineColor_3);
        }
示例#12
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(MoveEditor.FXHelper);

            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("StopAll", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, StopAll_0);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_DisableFX", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_DisableFX_1);
            args   = new Type[] {};
            method = type.GetMethod("get_HeadNubTransform", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_HeadNubTransform_2);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_CanPlayParticle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_CanPlayParticle_3);
            args   = new Type[] { typeof(MoveEditor.ParticleEventProperties), typeof(System.Boolean) };
            method = type.GetMethod("PlayParticle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, PlayParticle_4);

            field = type.GetField("PlayParticleAction", flag);
            app.RegisterCLRFieldGetter(field, get_PlayParticleAction_0);
            app.RegisterCLRFieldSetter(field, set_PlayParticleAction_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_PlayParticleAction_0, AssignFromStack_PlayParticleAction_0);
            field = type.GetField("m_HealthBarFXAttachment", flag);
            app.RegisterCLRFieldGetter(field, get_m_HealthBarFXAttachment_1);
            app.RegisterCLRFieldSetter(field, set_m_HealthBarFXAttachment_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_HealthBarFXAttachment_1, AssignFromStack_m_HealthBarFXAttachment_1);
        }
示例#13
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::UITabController.TabLibEntry);

            field = type.GetField("TabObj", flag);
            app.RegisterCLRFieldGetter(field, get_TabObj_0);
            app.RegisterCLRFieldSetter(field, set_TabObj_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_TabObj_0, AssignFromStack_TabObj_0);
            field = type.GetField("PressedTabObj", flag);
            app.RegisterCLRFieldGetter(field, get_PressedTabObj_1);
            app.RegisterCLRFieldSetter(field, set_PressedTabObj_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_PressedTabObj_1, AssignFromStack_PressedTabObj_1);
            field = type.GetField("TabTitle", flag);
            app.RegisterCLRFieldGetter(field, get_TabTitle_2);
            app.RegisterCLRFieldSetter(field, set_TabTitle_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_TabTitle_2, AssignFromStack_TabTitle_2);
            field = type.GetField("GameViewObj", flag);
            app.RegisterCLRFieldGetter(field, get_GameViewObj_3);
            app.RegisterCLRFieldSetter(field, set_GameViewObj_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_GameViewObj_3, AssignFromStack_GameViewObj_3);

            app.RegisterCLRCreateDefaultInstance(type, () => new global::UITabController.TabLibEntry());
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::DownLoadCombin);

            args   = new Type[] {};
            method = type.GetMethod("get_IsLoading", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsLoading_0);
            args   = new Type[] {};
            method = type.GetMethod("get_IsDone", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsDone_1);
            args   = new Type[] {};
            method = type.GetMethod("get_IsError", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsError_2);
            args   = new Type[] {};
            method = type.GetMethod("get_Progress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Progress_3);
            args   = new Type[] {};
            method = type.GetMethod("get_TotalBytesKB", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_TotalBytesKB_4);
            args   = new Type[] { typeof(global::GameResFileInfo), typeof(global::DownLoadCompletedHandler) };
            method = type.GetMethod("CreatToStartDownLoad", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CreatToStartDownLoad_5);
            args   = new Type[] {};
            method = type.GetMethod("Destroy", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Destroy_6);

            field = type.GetField("gameResInfo", flag);
            app.RegisterCLRFieldGetter(field, get_gameResInfo_0);
            app.RegisterCLRFieldSetter(field, set_gameResInfo_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_gameResInfo_0, AssignFromStack_gameResInfo_0);
            field = type.GetField("progressHandler", flag);
            app.RegisterCLRFieldGetter(field, get_progressHandler_1);
            app.RegisterCLRFieldSetter(field, set_progressHandler_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_progressHandler_1, AssignFromStack_progressHandler_1);
            field = type.GetField("completedHandler", flag);
            app.RegisterCLRFieldGetter(field, get_completedHandler_2);
            app.RegisterCLRFieldSetter(field, set_completedHandler_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_completedHandler_2, AssignFromStack_completedHandler_2);
            field = type.GetField("downLoadThread", flag);
            app.RegisterCLRFieldGetter(field, get_downLoadThread_3);
            app.RegisterCLRFieldSetter(field, set_downLoadThread_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_downLoadThread_3, AssignFromStack_downLoadThread_3);
            field = type.GetField("downLoadThreadList", flag);
            app.RegisterCLRFieldGetter(field, get_downLoadThreadList_4);
            app.RegisterCLRFieldSetter(field, set_downLoadThreadList_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_downLoadThreadList_4, AssignFromStack_downLoadThreadList_4);


            app.RegisterCLRCreateDefaultInstance(type, () => new global::DownLoadCombin());
            app.RegisterCLRCreateArrayInstance(type, s => new global::DownLoadCombin[s]);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
示例#15
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::MyFollowCamera);

            args   = new Type[] {};
            method = type.GetMethod("ResetCameraView", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ResetCameraView_0);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Instance_0, AssignFromStack_Instance_0);
            field = type.GetField("isActive", flag);
            app.RegisterCLRFieldGetter(field, get_isActive_1);
            app.RegisterCLRFieldSetter(field, set_isActive_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_isActive_1, AssignFromStack_isActive_1);
            field = type.GetField("delTouchDownInView", flag);
            app.RegisterCLRFieldGetter(field, get_delTouchDownInView_2);
            app.RegisterCLRFieldSetter(field, set_delTouchDownInView_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_delTouchDownInView_2, AssignFromStack_delTouchDownInView_2);
            field = type.GetField("delTouchCharacter", flag);
            app.RegisterCLRFieldGetter(field, get_delTouchCharacter_3);
            app.RegisterCLRFieldSetter(field, set_delTouchCharacter_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_delTouchCharacter_3, AssignFromStack_delTouchCharacter_3);
            field = type.GetField("CAMERA_ROTATIONAL_SPEED", flag);
            app.RegisterCLRFieldGetter(field, get_CAMERA_ROTATIONAL_SPEED_4);
            app.RegisterCLRFieldSetter(field, set_CAMERA_ROTATIONAL_SPEED_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_CAMERA_ROTATIONAL_SPEED_4, AssignFromStack_CAMERA_ROTATIONAL_SPEED_4);
        }
示例#16
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::GameFlowControlManager);

            args   = new Type[] {};
            method = type.GetMethod("get_Instance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Instance_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("SendEvent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SendEvent_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("IsInView", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, IsInView_2);

            field = type.GetField("m_PrevStateName", flag);
            app.RegisterCLRFieldGetter(field, get_m_PrevStateName_0);
            app.RegisterCLRFieldSetter(field, set_m_PrevStateName_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_PrevStateName_0, AssignFromStack_m_PrevStateName_0);
            field = type.GetField("m_StateMachine", flag);
            app.RegisterCLRFieldGetter(field, get_m_StateMachine_1);
            app.RegisterCLRFieldSetter(field, set_m_StateMachine_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_StateMachine_1, AssignFromStack_m_StateMachine_1);
        }
示例#17
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(Hotfix_LT.Combat.CombatCharacterSyncData.BuffData);

            args   = new Type[] {};
            method = type.GetMethod("GetMaxTurnStr", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetMaxTurnStr_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("GetOverlying", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetOverlying_1);

            field = type.GetField("Id", flag);
            app.RegisterCLRFieldGetter(field, get_Id_0);
            app.RegisterCLRFieldSetter(field, set_Id_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Id_0, AssignFromStack_Id_0);
            field = type.GetField("LeftTurnArray", flag);
            app.RegisterCLRFieldGetter(field, get_LeftTurnArray_1);
            app.RegisterCLRFieldSetter(field, set_LeftTurnArray_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_LeftTurnArray_1, AssignFromStack_LeftTurnArray_1);
        }
示例#18
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ET.TimeInfo);

            args   = new Type[] { typeof(System.Int64) };
            method = type.GetMethod("set_ServerMinusClientTime", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_ServerMinusClientTime_0);
            args   = new Type[] {};
            method = type.GetMethod("Update", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Update_1);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Instance_0, AssignFromStack_Instance_0);
            field = type.GetField("FrameTime", flag);
            app.RegisterCLRFieldGetter(field, get_FrameTime_1);
            app.RegisterCLRFieldSetter(field, set_FrameTime_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_FrameTime_1, AssignFromStack_FrameTime_1);
        }
示例#19
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::UIRoot);

            field = type.GetField("list", flag);
            app.RegisterCLRFieldGetter(field, get_list_0);
            app.RegisterCLRFieldSetter(field, set_list_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_list_0, AssignFromStack_list_0);
            field = type.GetField("manualWidth", flag);
            app.RegisterCLRFieldGetter(field, get_manualWidth_1);
            app.RegisterCLRFieldSetter(field, set_manualWidth_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_manualWidth_1, AssignFromStack_manualWidth_1);
            field = type.GetField("manualHeight", flag);
            app.RegisterCLRFieldGetter(field, get_manualHeight_2);
            app.RegisterCLRFieldSetter(field, set_manualHeight_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_manualHeight_2, AssignFromStack_manualHeight_2);
            field = type.GetField("fitHeight", flag);
            app.RegisterCLRFieldGetter(field, get_fitHeight_3);
            app.RegisterCLRFieldSetter(field, set_fitHeight_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_fitHeight_3, AssignFromStack_fitHeight_3);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ILRuntimeTest.TestFramework.ClassInheritanceTest);

            args   = new Type[] {};
            method = type.GetMethod("TestAbstract", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TestAbstract_0);
            args   = new Type[] {};
            method = type.GetMethod("TestVirtual", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TestVirtual_1);
            args   = new Type[] {};
            method = type.GetMethod("TestField", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TestField_2);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.InterfaceTest) };
            method = type.GetMethod("Test3", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Test3_3);
            args   = new Type[] { typeof(System.Int64).MakeByRefType() };
            method = type.GetMethod("TestLongRef", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, TestLongRef_4);

            field = type.GetField("TestVal2", flag);
            app.RegisterCLRFieldGetter(field, get_TestVal2_0);
            app.RegisterCLRFieldSetter(field, set_TestVal2_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_TestVal2_0, AssignFromStack_TestVal2_0);
            field = type.GetField("staticField", flag);
            app.RegisterCLRFieldGetter(field, get_staticField_1);
            app.RegisterCLRFieldSetter(field, set_staticField_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_staticField_1, AssignFromStack_staticField_1);
        }
示例#21
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::UISymbolInput);

            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_value_0);
            args   = new Type[] {};
            method = type.GetMethod("get_value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_value_1);

            field = type.GetField("characterLimit", flag);
            app.RegisterCLRFieldGetter(field, get_characterLimit_0);
            app.RegisterCLRFieldSetter(field, set_characterLimit_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_characterLimit_0, AssignFromStack_characterLimit_0);
            field = type.GetField("label", flag);
            app.RegisterCLRFieldGetter(field, get_label_1);
            app.RegisterCLRFieldSetter(field, set_label_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_label_1, AssignFromStack_label_1);
        }
示例#22
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::EventHandler);

            field = type.GetField("OnDragAction", flag);
            app.RegisterCLRFieldGetter(field, get_OnDragAction_0);
            app.RegisterCLRFieldSetter(field, set_OnDragAction_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnDragAction_0, AssignFromStack_OnDragAction_0);
            field = type.GetField("OnBeginDragAction", flag);
            app.RegisterCLRFieldGetter(field, get_OnBeginDragAction_1);
            app.RegisterCLRFieldSetter(field, set_OnBeginDragAction_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnBeginDragAction_1, AssignFromStack_OnBeginDragAction_1);
            field = type.GetField("OnPointerUpAction", flag);
            app.RegisterCLRFieldGetter(field, get_OnPointerUpAction_2);
            app.RegisterCLRFieldSetter(field, set_OnPointerUpAction_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnPointerUpAction_2, AssignFromStack_OnPointerUpAction_2);
            field = type.GetField("OnPointerDownAction", flag);
            app.RegisterCLRFieldGetter(field, get_OnPointerDownAction_3);
            app.RegisterCLRFieldSetter(field, set_OnPointerDownAction_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnPointerDownAction_3, AssignFromStack_OnPointerDownAction_3);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ILRuntimeTest.TestFramework.TestVector3NoBinding);

            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_0);
            args   = new Type[] {};
            method = type.GetMethod("get_one", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_one_1);

            field = type.GetField("y", flag);
            app.RegisterCLRFieldGetter(field, get_y_0);
            app.RegisterCLRFieldSetter(field, set_y_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_y_0, AssignFromStack_y_0);
            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_1);
            app.RegisterCLRFieldSetter(field, set_x_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_x_1, AssignFromStack_x_1);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestVector3NoBinding());

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
示例#24
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(EB.Sparx.PushManager);

            args   = new Type[] { typeof(System.String), typeof(System.String), typeof(System.DateTime) };
            method = type.GetMethod("ScheduleOnceLocalNotification", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ScheduleOnceLocalNotification_0);

            field = type.GetField("OnScheduleLocalNotification", flag);
            app.RegisterCLRFieldGetter(field, get_OnScheduleLocalNotification_0);
            app.RegisterCLRFieldSetter(field, set_OnScheduleLocalNotification_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnScheduleLocalNotification_0, AssignFromStack_OnScheduleLocalNotification_0);
            field = type.GetField("OnHandleMessage", flag);
            app.RegisterCLRFieldGetter(field, get_OnHandleMessage_1);
            app.RegisterCLRFieldSetter(field, set_OnHandleMessage_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnHandleMessage_1, AssignFromStack_OnHandleMessage_1);
            field = type.GetField("OnDisconnected", flag);
            app.RegisterCLRFieldGetter(field, get_OnDisconnected_2);
            app.RegisterCLRFieldSetter(field, set_OnDisconnected_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnDisconnected_2, AssignFromStack_OnDisconnected_2);
            field = type.GetField("OnConnected", flag);
            app.RegisterCLRFieldGetter(field, get_OnConnected_3);
            app.RegisterCLRFieldSetter(field, set_OnConnected_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnConnected_3, AssignFromStack_OnConnected_3);
        }
示例#25
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ET.Define);

            args   = new Type[] { typeof(System.String), typeof(System.Boolean) };
            method = type.GetMethod("GetAssetBundleDependencies", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAssetBundleDependencies_0);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetAssetPathsFromAssetBundle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAssetPathsFromAssetBundle_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("LoadAssetAtPath", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadAssetAtPath_2);

            field = type.GetField("IsAsync", flag);
            app.RegisterCLRFieldGetter(field, get_IsAsync_0);
            app.RegisterCLRFieldSetter(field, set_IsAsync_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_IsAsync_0, AssignFromStack_IsAsync_0);
            field = type.GetField("IsEditor", flag);
            app.RegisterCLRFieldGetter(field, get_IsEditor_1);
            app.RegisterCLRFieldSetter(field, set_IsEditor_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_IsEditor_1, AssignFromStack_IsEditor_1);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(UnityEngine.LogType);

            field = type.GetField("Error", flag);
            app.RegisterCLRFieldGetter(field, get_Error_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Error_0, null);
            field = type.GetField("Assert", flag);
            app.RegisterCLRFieldGetter(field, get_Assert_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Assert_1, null);
            field = type.GetField("Warning", flag);
            app.RegisterCLRFieldGetter(field, get_Warning_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Warning_2, null);
            field = type.GetField("Log", flag);
            app.RegisterCLRFieldGetter(field, get_Log_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Log_3, null);
            field = type.GetField("Exception", flag);
            app.RegisterCLRFieldGetter(field, get_Exception_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_Exception_4, null);


            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.LogType());
            app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.LogType[s]);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(System.ValueTuple <System.Int32, System.String, System.Boolean>);

            field = type.GetField("Item1", flag);
            app.RegisterCLRFieldGetter(field, get_Item1_0);
            app.RegisterCLRFieldSetter(field, set_Item1_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item1_0, AssignFromStack_Item1_0);
            field = type.GetField("Item2", flag);
            app.RegisterCLRFieldGetter(field, get_Item2_1);
            app.RegisterCLRFieldSetter(field, set_Item2_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item2_1, AssignFromStack_Item2_1);
            field = type.GetField("Item3", flag);
            app.RegisterCLRFieldGetter(field, get_Item3_2);
            app.RegisterCLRFieldSetter(field, set_Item3_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item3_2, AssignFromStack_Item3_2);

            app.RegisterCLRCreateDefaultInstance(type, () => new System.ValueTuple <System.Int32, System.String, System.Boolean>());

            args   = new Type[] { typeof(System.Int32), typeof(System.String), typeof(System.Boolean) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
示例#28
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(JEngine.Net.JSocketConfig);

            field = type.GetField("eventOpenName", flag);
            app.RegisterCLRFieldGetter(field, get_eventOpenName_0);
            app.RegisterCLRFieldSetter(field, set_eventOpenName_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventOpenName_0, AssignFromStack_eventOpenName_0);
            field = type.GetField("eventConnectName", flag);
            app.RegisterCLRFieldGetter(field, get_eventConnectName_1);
            app.RegisterCLRFieldSetter(field, set_eventConnectName_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventConnectName_1, AssignFromStack_eventConnectName_1);
            field = type.GetField("eventDisconnectName", flag);
            app.RegisterCLRFieldGetter(field, get_eventDisconnectName_2);
            app.RegisterCLRFieldSetter(field, set_eventDisconnectName_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventDisconnectName_2, AssignFromStack_eventDisconnectName_2);
            field = type.GetField("eventCloseName", flag);
            app.RegisterCLRFieldGetter(field, get_eventCloseName_3);
            app.RegisterCLRFieldSetter(field, set_eventCloseName_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventCloseName_3, AssignFromStack_eventCloseName_3);
            field = type.GetField("eventErrorName", flag);
            app.RegisterCLRFieldGetter(field, get_eventErrorName_4);
            app.RegisterCLRFieldSetter(field, set_eventErrorName_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_eventErrorName_4, AssignFromStack_eventErrorName_4);
        }
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase   method;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(ILRuntimeTest.TestFramework.TestStruct);

            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestStruct).MakeByRefType() };
            method = type.GetMethod("DoTest", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest_0);
            args   = new Type[] { typeof(System.Int32).MakeByRefType() };
            method = type.GetMethod("DoTest", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest_1);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestStruct) };
            method = type.GetMethod("DoTest2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoTest2_2);

            field = type.GetField("value", flag);
            app.RegisterCLRFieldGetter(field, get_value_0);
            app.RegisterCLRFieldSetter(field, set_value_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_value_0, AssignFromStack_value_0);
            field = type.GetField("instance", flag);
            app.RegisterCLRFieldGetter(field, get_instance_1);
            app.RegisterCLRFieldSetter(field, set_instance_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_instance_1, AssignFromStack_instance_1);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new ILRuntimeTest.TestFramework.TestStruct());
        }
示例#30
0
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo    field;

            Type[] args;
            Type   type = typeof(global::DataLookupILR);

            field = type.GetField("ObjectParamList", flag);
            app.RegisterCLRFieldGetter(field, get_ObjectParamList_0);
            app.RegisterCLRFieldSetter(field, set_ObjectParamList_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_ObjectParamList_0, AssignFromStack_ObjectParamList_0);
            field = type.GetField("BoolParamList", flag);
            app.RegisterCLRFieldGetter(field, get_BoolParamList_1);
            app.RegisterCLRFieldSetter(field, set_BoolParamList_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_BoolParamList_1, AssignFromStack_BoolParamList_1);
            field = type.GetField("StringParamList", flag);
            app.RegisterCLRFieldGetter(field, get_StringParamList_2);
            app.RegisterCLRFieldSetter(field, set_StringParamList_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_StringParamList_2, AssignFromStack_StringParamList_2);
            field = type.GetField("hotfixClassPath", flag);
            app.RegisterCLRFieldGetter(field, get_hotfixClassPath_3);
            app.RegisterCLRFieldSetter(field, set_hotfixClassPath_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_hotfixClassPath_3, AssignFromStack_hotfixClassPath_3);
        }