コード例 #1
0
        public static bool OnStartHardMode()
        {
            if (StartHardMode == null)
            {
                return(false);
            }
            HandledEventArgs handledEventArgs = new HandledEventArgs();

            WorldHooks.StartHardMode(handledEventArgs);
            return(handledEventArgs.Handled);
        }
コード例 #2
0
        public static bool OnSmashAltar()
        {
            if (SmashAltar == null)
            {
                return(false);
            }
            HandledEventArgs handledEventArgs = new HandledEventArgs();

            WorldHooks.SmashAltar(handledEventArgs);
            return(handledEventArgs.Handled);
        }
コード例 #3
0
        public static bool OnSaveWorld(bool resettime)
        {
            if (WorldHooks.SaveWorld == null)
            {
                return(false);
            }
            HandledEventArgs handledEventArgs = new HandledEventArgs();

            WorldHooks.SaveWorld(resettime, handledEventArgs);
            return(handledEventArgs.Handled);
        }