コード例 #1
0
 /// <summary>
 /// 终结助手
 /// </summary>
 public void OnTermination()
 {
     HotfixDll         = null;
     HotfixAssembly    = null;
     HotfixEnvironment = null;
     FixedMethods.Clear();
     FixedDelegates.Clear();
 }
コード例 #2
0
        /// <summary>
        /// 初始化助手
        /// </summary>
        public void OnInitialization()
        {
            _module = Module as HotfixManager;

            if (_module.IsEnableHotfix)
            {
                foreach (Enum e in Enum.GetValues(typeof(HotfixMethodType)))
                {
                    FixedMethods.Add((HotfixMethodType)e, new Dictionary <string, MethodInfo>());
                    FixedDelegates.Add((HotfixMethodType)e, new Dictionary <string, Delegate>());
                }
            }
        }