Exemplo n.º 1
0
        private void Log(IEventArgs args)
        {
            string s         = string.Empty;
            int    realScope = FreeUtil.ReplaceInt(scope, args);

            switch (realScope)
            {
            case SCOPE_ALL:
            {
                s = "全部玩家";
                break;
            }

            case SCOPE_OBSERVER:
            {
                s = "观察者";
                break;
            }

            case SCOPE_PLYAER:
            {
                s = "玩家" + player;
                break;
            }

            case SCOPE_TEAMATE:
            {
                s = "玩家" + player + "的队友";
                break;
            }
            }
            FreeLog.Message(string.Format("{0} \n{1}\n范围:{2}", FreeMessageConstant.GetMessageDesc(builder.Key), builder, s), args);
        }