/// <summary> /// 终结助手 /// </summary> public void OnTermination() { HotfixDll = null; HotfixAssembly = null; HotfixEnvironment = null; FixedMethods.Clear(); FixedDelegates.Clear(); }
/// <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>()); } } }