Exemple #1
0
        public void RunFreeGameRule()
        {
            _rule.Update(_contexts, _interval);
            if (_rule.GameOver)
            {
                _logger.InfoFormat("Rule Game Over!");
                GameOver(false);
                _rule.GameOver = false;
            }

            if (_rule.GameExit)
            {
                _logger.InfoFormat("Rule Game Exit!");
                GameExit();
            }
        }
Exemple #2
0
        public void RunFreeGameRule()
        {
            rule.Update(ContextsWrapper.contexts, interval);
            if (rule.GameOver)
            {
                logger.InfoFormat("Rule Game Over!");
                GameOver(false, RoomState.RRuleOver);
                rule.GameEnd(ContextsWrapper.contexts);
                rule.GameOver = false;
            }

            if (rule.GameExit)
            {
                logger.InfoFormat("Rule Game Exit!");
                GameExit(RoomState.RRuleOver);
            }
        }