Beispiel #1
0
        public IEnumerator ServerGMCommand(Coroutine coroutine, ChatService _this, ServerGMCommandInMessage msg)
        {
            var cmd   = msg.Request.Cmd;
            var param = msg.Request.Param;

            Logger.Info("Chat----------ServerGMCommand----------cmd={0}|param={1}", cmd, param);

            try
            {
                if ("ReloadTable" == cmd)
                {
                    Table.ReloadTable(param);
                }
                else if ("UpdateAnchor" == cmd)
                {
                    AnchorManager.Instance.LoadConfig();
                }
            }
            catch (Exception e)
            {
                Logger.Error("Chat----------ServerGMCommand----------error={0}", e.Message);
            }
            finally
            {
            }
            yield break;
        }
        public IEnumerator ServerGMCommand(Coroutine coroutine, RankService _this, ServerGMCommandInMessage msg)
        {
            var cmd   = msg.Request.Cmd;
            var param = msg.Request.Param;

            Logger.Info("Rank----------ServerGMCommand----------cmd={0}|param={1}", cmd, param);

            try
            {
                if ("ReloadTable" == cmd)
                {
                    Table.ReloadTable(param);
                }
                else if ("BackupRank" == cmd)
                {
                    ServerRankBackupManager.BackupAllRank(null, DateTime.Now);
                }
            }
            catch (Exception e)
            {
                Logger.Error("Rank----------ServerGMCommand----------error={0}", e.Message);
            }
            finally
            {
            }
            yield break;
        }
Beispiel #3
0
        public IEnumerator ServerGMCommand(Coroutine coroutine, ActivityService _this, ServerGMCommandInMessage msg)
        {
            var cmd   = msg.Request.Cmd;
            var param = msg.Request.Param;

            Logger.Info("Activity----------ServerGMCommand----------cmd={0}|param={1}", cmd, param);

            try
            {
                if ("ReloadTable" == cmd)
                {
                    Table.ReloadTable(param);
                }
            }
            catch (Exception e)
            {
                Logger.Error("Activity----------ServerGMCommand----------error={0}", e.Message);
            }
            finally
            {
            }
            yield break;
        }