コード例 #1
0
ファイル: CLRBindings2.cs プロジェクト: zhenyao2008/cshotfix
        /// <summary>
        /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration
        /// </summary>
        public static void Initialize(CSHotFix.Runtime.Enviorment.AppDomain app)
        {
            System_NotImplementedException_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app);
            System_Collections_Generic_List_1_Object_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_String_Shader_Binding.Register(app);
            UIInterface_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_Int32_Transform_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_Int32_Int32_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_Int32_List_1_ILTypeInstance_Binding.Register(app);
            System_Reflection_MemberInfo_Binding.Register(app);
            System_Collections_Generic_Dictionary_2_Image_Int64_Binding.Register(app);
            Main_Binding.Register(app);

            CSHotFix.CLR.TypeSystem.CLRType __clrType = null;
            __clrType = (CSHotFix.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector3));
            s_UnityEngine_Vector3_Binding_Binder = __clrType.ValueTypeBinder as CSHotFix.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector3>;
            __clrType = (CSHotFix.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Quaternion));
            s_UnityEngine_Quaternion_Binding_Binder = __clrType.ValueTypeBinder as CSHotFix.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Quaternion>;
            __clrType = (CSHotFix.CLR.TypeSystem.CLRType)app.GetType(typeof(UnityEngine.Vector2));
            s_UnityEngine_Vector2_Binding_Binder = __clrType.ValueTypeBinder as CSHotFix.Runtime.Enviorment.ValueTypeBinder <UnityEngine.Vector2>;
        }
コード例 #2
0
 /// <summary>
 /// Initialize the CLR binding, please invoke this AFTER CLR Redirection registration
 /// </summary>
 public static void Initialize(CSHotFix.Runtime.Enviorment.AppDomain app)
 {
     System_NotImplementedException_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_Int32_ILTypeInstance_Binding.Register(app);
     System_Collections_Generic_List_1_Object_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_String_Shader_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding.Register(app);
     System_Char_Binding.Register(app);
     System_Exception_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_String_ILTypeInstance_Binding_Enumerator_String_ILTypeInstance_Binding.Register(app);
     System_Collections_Generic_KeyValuePair_2_String_ILTypeInstance_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_ILTypeInstance_Int32_Binding.Register(app);
     System_GC_Binding.Register(app);
     System_Int64_Binding.Register(app);
     System_Reflection_MemberInfo_Binding.Register(app);
     System_Action_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_Int32_Transform_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_Int32_Int32_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_Int32_List_1_ILTypeInstance_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_String_GameObject_Binding.Register(app);
     System_Collections_Generic_Dictionary_2_Image_Int64_Binding.Register(app);
     Main_Binding.Register(app);
 }