Beispiel #1
0
        private static HookList AddHook <F>(Expression <Func <ModPlayer, F> > func)
        {
            var hook = new HookList(ModLoader.Method(func));

            hooks.Add(hook);
            return(hook);
        }
Beispiel #2
0
        private static HookList AddHook <F>(Expression <Func <GlobalProjectile, F> > func)
        {
            var hook = new HookList(ModLoader.Method(func));

            hooks.Add(hook);
            return(hook);
        }