コード例 #1
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(ETModel.SessionCallbackComponent);

            field = type.GetField("MessageCallback", flag);
            app.RegisterCLRFieldGetter(field, get_MessageCallback_0);
            app.RegisterCLRFieldSetter(field, set_MessageCallback_0);
            field = type.GetField("DisposeCallback", flag);
            app.RegisterCLRFieldGetter(field, get_DisposeCallback_1);
            app.RegisterCLRFieldSetter(field, set_DisposeCallback_1);
        }
コード例 #2
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(UnityEngine.UI.ViewModelDataSource);

            field = type.GetField("ViewModelPath", flag);
            app.RegisterCLRFieldGetter(field, get_ViewModelPath_0);
            app.RegisterCLRFieldSetter(field, set_ViewModelPath_0);
            field = type.GetField("Key", flag);
            app.RegisterCLRFieldGetter(field, get_Key_1);
            app.RegisterCLRFieldSetter(field, set_Key_1);
        }
コード例 #3
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(ETModel.GlobalConfigComponent);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            field = type.GetField("GlobalProto", flag);
            app.RegisterCLRFieldGetter(field, get_GlobalProto_1);
            app.RegisterCLRFieldSetter(field, set_GlobalProto_1);
        }
コード例 #4
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(ZJY.Framework.EventComponent);

            field = type.GetField("CommonEvent", flag);
            app.RegisterCLRFieldGetter(field, get_CommonEvent_0);
            app.RegisterCLRFieldSetter(field, set_CommonEvent_0);
            field = type.GetField("SocketEvent", flag);
            app.RegisterCLRFieldGetter(field, get_SocketEvent_1);
            app.RegisterCLRFieldSetter(field, set_SocketEvent_1);
        }
コード例 #5
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(QFramework.ILComponentBehaviour);

            field = type.GetField("Script", flag);
            app.RegisterCLRFieldGetter(field, get_Script_0);
            app.RegisterCLRFieldSetter(field, set_Script_0);
            field = type.GetField("OnDestroyAction", flag);
            app.RegisterCLRFieldGetter(field, get_OnDestroyAction_1);
            app.RegisterCLRFieldSetter(field, set_OnDestroyAction_1);
        }
コード例 #6
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(SuperScrollView.LoopListView2);

            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("NewListViewItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, NewListViewItem_0);
            args   = new Type[] {};
            method = type.GetMethod("ClearListView", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ClearListView_1);
            args   = new Type[] { typeof(System.Int32), typeof(System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2>), typeof(SuperScrollView.LoopListViewInitParam) };
            method = type.GetMethod("InitListView", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, InitListView_2);
            args   = new Type[] { typeof(System.Int32), typeof(System.Boolean) };
            method = type.GetMethod("SetListItemCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetListItemCount_3);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("GetShownItemByItemIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetShownItemByItemIndex_4);
            args   = new Type[] { typeof(System.Int32), typeof(System.Single) };
            method = type.GetMethod("MovePanelToItemIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, MovePanelToItemIndex_5);
            args   = new Type[] {};
            method = type.GetMethod("RefreshAllShownItem", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RefreshAllShownItem_6);

            field = type.GetField("mOnBeginDragAction", flag);
            app.RegisterCLRFieldGetter(field, get_mOnBeginDragAction_0);
            app.RegisterCLRFieldSetter(field, set_mOnBeginDragAction_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_mOnBeginDragAction_0, AssignFromStack_mOnBeginDragAction_0);
            field = type.GetField("mOnDragingAction", flag);
            app.RegisterCLRFieldGetter(field, get_mOnDragingAction_1);
            app.RegisterCLRFieldSetter(field, set_mOnDragingAction_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_mOnDragingAction_1, AssignFromStack_mOnDragingAction_1);
            field = type.GetField("mOnEndDragAction", flag);
            app.RegisterCLRFieldGetter(field, get_mOnEndDragAction_2);
            app.RegisterCLRFieldSetter(field, set_mOnEndDragAction_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_mOnEndDragAction_2, AssignFromStack_mOnEndDragAction_2);
            field = type.GetField("mOnSnapNearestChanged", flag);
            app.RegisterCLRFieldGetter(field, get_mOnSnapNearestChanged_3);
            app.RegisterCLRFieldSetter(field, set_mOnSnapNearestChanged_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_mOnSnapNearestChanged_3, AssignFromStack_mOnSnapNearestChanged_3);
        }
コード例 #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(HTTP.Request);

            args   = new Type[] {};
            method = type.GetMethod("Send", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Send_0);
            args   = new Type[] {};
            method = type.GetMethod("get_response", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_response_1);

            field = type.GetField("exception", flag);
            app.RegisterCLRFieldGetter(field, get_exception_0);
            app.RegisterCLRFieldSetter(field, set_exception_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_exception_0, AssignFromStack_exception_0);

            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #8
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(wxb.Array <System.Int32>);

            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_0);
            args   = new Type[] { typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("set_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Item_1);

            field = type.GetField("values", flag);
            app.RegisterCLRFieldGetter(field, get_values_0);
            app.RegisterCLRFieldSetter(field, set_values_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_values_0, AssignFromStack_values_0);


            app.RegisterCLRCreateArrayInstance(type, s => new wxb.Array <System.Int32> [s]);

            args   = new Type[] { typeof(System.Int32[]) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_1);
        }
        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.TestClass3);

            args   = new Type[] { typeof(System.Byte).MakeByRefType(), typeof(System.Int32), typeof(System.Int32) };
            method = type.GetMethod("setBit", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, setBit_0);
            args   = new Type[] { typeof(System.Int32).MakeByRefType(), typeof(System.Int32) };
            method = type.GetMethod("getString", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, getString_1);

            field = type.GetField("Struct", flag);
            app.RegisterCLRFieldGetter(field, get_Struct_0);
            app.RegisterCLRFieldSetter(field, set_Struct_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Struct_0, AssignFromStack_Struct_0);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #10
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(FairyGUI.GObjectPool);

            args   = new Type[] {};
            method = type.GetMethod("Clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clear_0);
            args   = new Type[] {};
            method = type.GetMethod("get_count", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_count_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("GetObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetObject_2);
            args   = new Type[] { typeof(FairyGUI.GObject) };
            method = type.GetMethod("ReturnObject", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReturnObject_3);

            field = type.GetField("initCallback", flag);
            app.RegisterCLRFieldGetter(field, get_initCallback_0);
            app.RegisterCLRFieldSetter(field, set_initCallback_0);


            app.RegisterCLRCreateArrayInstance(type, s => new FairyGUI.GObjectPool[s]);

            args   = new Type[] { typeof(UnityEngine.Transform) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #11
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(ILRuntimeTest.TestFramework.TestVector3NoBinding);

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

            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);

            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);
        }
        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(Google.Protobuf.Collections.RepeatedField <System.Int32>);

            args   = new Type[] { typeof(Google.Protobuf.CodedOutputStream), typeof(Google.Protobuf.FieldCodec <System.Int32>) };
            method = type.GetMethod("WriteTo", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteTo_0);
            args   = new Type[] { typeof(Google.Protobuf.FieldCodec <System.Int32>) };
            method = type.GetMethod("CalculateSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CalculateSize_1);
            args   = new Type[] {};
            method = type.GetMethod("Clear", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Clear_2);
            args   = new Type[] { typeof(Google.Protobuf.CodedInputStream), typeof(Google.Protobuf.FieldCodec <System.Int32>) };
            method = type.GetMethod("AddEntriesFrom", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddEntriesFrom_3);

            field = type.GetField("array", flag);
            app.RegisterCLRFieldGetter(field, get_array_0);
            app.RegisterCLRFieldSetter(field, set_array_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_array_0, AssignFromStack_array_0);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #13
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::UIHierarchyHelper);

            args   = new Type[] {};
            method = type.GetMethod("get_Instance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Instance_0);
            args   = new Type[] { typeof(UnityEngine.GameObject), typeof(global::UIHierarchyHelper.eUIType), typeof(global::UIAnchor.Side) };
            method = type.GetMethod("Place", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Place_1);
            args   = new Type[] { typeof(System.Boolean), typeof(System.Single) };
            method = type.GetMethod("ShowRegularHUD", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ShowRegularHUD_2);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("SetBlockPanel", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SetBlockPanel_3);

            field = type.GetField("MainUICamera", flag);
            app.RegisterCLRFieldGetter(field, get_MainUICamera_0);
            app.RegisterCLRFieldSetter(field, set_MainUICamera_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_MainUICamera_0, AssignFromStack_MainUICamera_0);
        }
コード例 #14
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(UnityEngine.Vector2);

            MethodInfo[] methods = type.GetMethods(flag).Where(t => !t.IsGenericMethod).ToArray();
            args   = new Type[] { typeof(UnityEngine.Vector2) };
            method = methods.Where(t => t.Name.Equals("op_Implicit") && t.ReturnType == typeof(UnityEngine.Vector3) && t.CheckMethodParams(args)).Single();
            app.RegisterCLRMethodRedirection(method, op_Implicit_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.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector2());

            args   = new Type[] { typeof(System.Single), typeof(System.Single) };
            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(ILRuntimeTest.TestFramework.TestVectorClass);

            args   = new Type[] {};
            method = type.GetMethod("get_Vector2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Vector2_0);
            args   = new Type[] { typeof(System.Int32), typeof(System.String), typeof(ILRuntimeTest.TestFramework.TestVector3), typeof(ILRuntimeTest.TestFramework.TestVectorClass) };
            method = type.GetMethod("ValueTypePerfTest", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ValueTypePerfTest_1);
            args   = new Type[] {};
            method = type.GetMethod("get_Obj", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Obj_2);
            args   = new Type[] { typeof(System.Int32), typeof(System.String), typeof(ILRuntimeTest.TestFramework.TestVectorClass), typeof(ILRuntimeTest.TestFramework.TestVectorClass) };
            method = type.GetMethod("ValueTypePerfTest2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ValueTypePerfTest2_3);
            args   = new Type[] { typeof(ILRuntimeTest.TestFramework.TestVector3) };
            method = type.GetMethod("set_Vector2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Vector2_4);

            field = type.GetField("vector", flag);
            app.RegisterCLRFieldGetter(field, get_vector_0);
            app.RegisterCLRFieldSetter(field, set_vector_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_vector_0, AssignFromStack_vector_0);

            args   = new Type[] {};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #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(JEngine.Core.BindableProperty <System.Int64>);

            args   = new Type[] {};
            method = type.GetMethod("get_Value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Value_0);
            args   = new Type[] { typeof(System.Int64) };
            method = type.GetMethod("set_Value", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Value_1);

            field = type.GetField("OnChangeWithOldVal", flag);
            app.RegisterCLRFieldGetter(field, get_OnChangeWithOldVal_0);
            app.RegisterCLRFieldSetter(field, set_OnChangeWithOldVal_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_OnChangeWithOldVal_0, AssignFromStack_OnChangeWithOldVal_0);

            args   = new Type[] { typeof(System.Int64) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #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(ETModel.SoundComponent);

            args   = new Type[] { typeof(System.String), typeof(System.Single), typeof(System.Boolean) };
            method = type.GetMethod("PlayClip", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, PlayClip_0);
            args   = new Type[] {};
            method = type.GetMethod("get_SoundVolume", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_SoundVolume_1);
            args   = new Type[] {};
            method = type.GetMethod("get_SfxVolume", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_SfxVolume_2);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_SfxVolume", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_SfxVolume_3);
            args   = new Type[] { typeof(System.Single) };
            method = type.GetMethod("set_SoundVolume", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_SoundVolume_4);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("Stop", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Stop_5);
            args   = new Type[] { typeof(System.String), typeof(System.UInt64), typeof(System.Single), typeof(System.Boolean), typeof(System.Boolean) };
            method = type.GetMethod("PlayMusic", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, PlayMusic_6);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
        }
コード例 #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(EB.Replication.Manager);
            args = new Type[]{};
            method = type.GetMethod("get_IsLocalGame", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsLocalGame_0);
            args = new Type[]{};
            method = type.GetMethod("get_LocalPlayerIndex", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_LocalPlayerIndex_1);
            args = new Type[]{typeof(System.String), typeof(System.Delegate)};
            method = type.GetMethod("RegisterRPC", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RegisterRPC_2);
            args = new Type[]{typeof(System.String)};
            method = type.GetMethod("RegisterResource", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RegisterResource_3);
            args = new Type[]{typeof(System.Type)};
            method = type.GetMethod("RegisterSerializable", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RegisterSerializable_4);
            args = new Type[]{typeof(UnityEngine.Object), typeof(UnityEngine.Vector3), typeof(UnityEngine.Quaternion), typeof(System.String)};
            method = type.GetMethod("Instantiate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Instantiate_5);

            field = type.GetField("InstantiateMethod", flag);
            app.RegisterCLRFieldGetter(field, get_InstantiateMethod_0);
            app.RegisterCLRFieldSetter(field, set_InstantiateMethod_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_InstantiateMethod_0, AssignFromStack_InstantiateMethod_0);
        }
コード例 #19
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(Model.SessionComponent);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
            field = type.GetField("Session", flag);
            app.RegisterCLRFieldGetter(field, get_Session_1);
            app.RegisterCLRFieldSetter(field, set_Session_1);
        }
コード例 #20
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(BDFramework.BDLauncher);

            args   = new Type[] {};
            method = type.GetMethod("get_OnUpdate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_OnUpdate_0);
            args   = new Type[] { typeof(BDFramework.BDLauncher.OnLife) };
            method = type.GetMethod("set_OnUpdate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_OnUpdate_1);
            args   = new Type[] {};
            method = type.GetMethod("get_OnLateUpdate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_OnLateUpdate_2);
            args   = new Type[] { typeof(BDFramework.BDLauncher.OnLife) };
            method = type.GetMethod("set_OnLateUpdate", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_OnLateUpdate_3);

            field = type.GetField("IsCodeHotfix", flag);
            app.RegisterCLRFieldGetter(field, get_IsCodeHotfix_0);
            app.RegisterCLRFieldSetter(field, set_IsCodeHotfix_0);
        }
コード例 #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(libx.AssetRequest);

            args   = new Type[] {};
            method = type.GetMethod("get_progress", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_progress_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_loadState", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_loadState_2);
            args   = new Type[] {};
            method = type.GetMethod("get_asset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_asset_3);
            args   = new Type[] {};
            method = type.GetMethod("get_error", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_error_4);

            field = type.GetField("completed", flag);
            app.RegisterCLRFieldGetter(field, get_completed_0);
            app.RegisterCLRFieldSetter(field, set_completed_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_completed_0, AssignFromStack_completed_0);
        }
コード例 #22
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::CombatCamera);

            args   = new Type[] {};
            method = type.GetMethod("EnableBlurEffect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, EnableBlurEffect_0);
            args   = new Type[] { typeof(System.Boolean) };
            method = type.GetMethod("set_HoldingCamera", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_HoldingCamera_1);
            args   = new Type[] {};
            method = type.GetMethod("DisableBlurEffect", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DisableBlurEffect_2);
            args   = new Type[] {};
            method = type.GetMethod("get_Instance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Instance_3);
            args   = new Type[] {};
            method = type.GetMethod("OnTeamsVictoryListener", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, OnTeamsVictoryListener_4);

            field = type.GetField("isBoss", flag);
            app.RegisterCLRFieldGetter(field, get_isBoss_0);
            app.RegisterCLRFieldSetter(field, set_isBoss_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_isBoss_0, AssignFromStack_isBoss_0);
        }
コード例 #23
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(TMPro.TMP_Text);

            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("set_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_text_0);
            args   = new Type[] {};
            method = type.GetMethod("get_text", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_text_1);
            args   = new Type[] {};
            method = type.GetMethod("get_CharacterCount", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_CharacterCount_2);
            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("set_maxVisibleCharacters", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_maxVisibleCharacters_3);
            args   = new Type[] {};
            method = type.GetMethod("get_rectTransform", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_rectTransform_4);

            field = type.GetField("m_textInfo", flag);
            app.RegisterCLRFieldGetter(field, get_m_textInfo_0);
            app.RegisterCLRFieldSetter(field, set_m_textInfo_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_m_textInfo_0, AssignFromStack_m_textInfo_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(HFFramework.NotificationCenter);

            args   = new Type[] { typeof(HFFramework.NotificationMessage) };
            method = type.GetMethod("PostNotification", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, PostNotification_0);
            args   = new Type[] { typeof(System.UInt16), typeof(System.Int32) };
            method = type.GetMethod("ConvertToKey", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ConvertToKey_1);
            args   = new Type[] { typeof(System.Object), typeof(System.UInt16), typeof(System.Int32), typeof(System.Action <HFFramework.NotificationMessage>) };
            method = type.GetMethod("AddObserver", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddObserver_2);
            args   = new Type[] { typeof(System.Object), typeof(System.UInt64) };
            method = type.GetMethod("RemoveObserver", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveObserver_3);

            field = type.GetField("Instance", flag);
            app.RegisterCLRFieldGetter(field, get_Instance_0);
            app.RegisterCLRFieldSetter(field, set_Instance_0);
        }
コード例 #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(ETModel.ResourcesComponent);

            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("LoadBundle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadBundle_0);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("BundleNameGetAsset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, BundleNameGetAsset_1);
            args   = new Type[] { typeof(System.String) };
            method = type.GetMethod("UnloadBundle", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, UnloadBundle_2);
            args   = new Type[] { typeof(System.String), typeof(System.String) };
            method = type.GetMethod("GetAsset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAsset_3);

            field = type.GetField("Ins", flag);
            app.RegisterCLRFieldGetter(field, get_Ins_0);
            app.RegisterCLRFieldSetter(field, set_Ins_0);
        }
コード例 #26
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(Google.Protobuf.ByteString);

            args   = new Type[] { typeof(System.Int32) };
            method = type.GetMethod("get_Item", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Item_0);
            args   = new Type[] {};
            method = type.GetMethod("get_Length", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Length_1);
            args   = new Type[] { typeof(Google.Protobuf.ByteString), typeof(Google.Protobuf.ByteString) };
            method = type.GetMethod("op_Equality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Equality_2);
            args   = new Type[] { typeof(Google.Protobuf.ByteString), typeof(Google.Protobuf.ByteString) };
            method = type.GetMethod("op_Inequality", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Inequality_3);
            args   = new Type[] {};
            method = type.GetMethod("get_Empty", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Empty_4);

            field = type.GetField("bytes", flag);
            app.RegisterCLRFieldGetter(field, get_bytes_0);
            app.RegisterCLRFieldSetter(field, set_bytes_0);
        }
コード例 #27
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(UnityEngine.Vector3);

            args   = new Type[] {};
            method = type.GetMethod("get_left", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_left_0);
            args   = new Type[] { typeof(UnityEngine.Vector3), typeof(System.Single) };
            method = type.GetMethod("op_Multiply", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, op_Multiply_1);
            args   = new Type[] {};
            method = type.GetMethod("get_right", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_right_2);
            args   = new Type[] {};
            method = type.GetMethod("get_zero", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_zero_3);

            field = type.GetField("x", flag);
            app.RegisterCLRFieldGetter(field, get_x_0);
            app.RegisterCLRFieldSetter(field, set_x_0);
        }
コード例 #28
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(UnityEngine.Vector3);

            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("z", flag);
            app.RegisterCLRFieldGetter(field, get_z_0);
            app.RegisterCLRFieldSetter(field, set_z_0);

            app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Vector3());

            args   = new Type[] { typeof(System.Single), typeof(System.Single), typeof(System.Single) };
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);
        }
コード例 #29
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(ETModel.Session);

            args   = new Type[] { typeof(ETModel.IMessage) };
            method = type.GetMethod("Send", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Send_0);
            args   = new Type[] {};
            method = type.GetMethod("get_Network", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Network_1);
            args   = new Type[] { typeof(System.Byte), typeof(System.UInt16), typeof(System.Byte[]) };
            method = type.GetMethod("Send", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Send_2);
            args   = new Type[] { typeof(ETModel.IRequest) };
            method = type.GetMethod("Call", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Call_3);

            field = type.GetField("Error", flag);
            app.RegisterCLRFieldGetter(field, get_Error_0);
            app.RegisterCLRFieldSetter(field, set_Error_0);
        }
コード例 #30
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(App);

            args   = new Type[] { };
            method = type.GetMethod("get_Instance", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Instance_0);
            args   = new Type[] { typeof(System.Collections.IEnumerator) };
            method = type.GetMethod("DoCoroutine", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, DoCoroutine_10);
            args   = new Type[] { };
            method = type.GetMethod("StopUnityCoroutines", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, StopUnityCoroutines_11);
            args   = new Type[] { };
            method = type.GetMethod("Over", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Over_12);
            args   = new Type[] { typeof(System.String), typeof(System.Int32), typeof(System.Single), typeof(System.Single), typeof(NetWorkType) };
            method = type.GetMethod("InitNetWork", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, InitNetWork_13);
            args   = new Type[] { };
            method = type.GetMethod("EndNetWork", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, EndNetWork_14);

            field = type.GetField("network", flag);
            app.RegisterCLRFieldGetter(field, get_network_0);
            app.RegisterCLRFieldSetter(field, set_network_0);
        }