Пример #1
0
    [Execute]//喇叭默认走马灯
    public void Excute(GameCmd.stSpeakerChatUserCmd_CS cmd)
    {
        if (!ChatDataManager.CanRecieveChatMsgWithBlack(cmd.dwOPDes))
        {
            return;
        }
        ShowRunlight(cmd.szInfo, RunLightInfo.Pos.Top, cmd.username);

        ChatChannel channel = DataManager.Manager <ChatDataManager>().GetChannelByType(CHATTYPE.CHAT_WORLD);

        if (channel != null)
        {
            channel.Add(channel.ToChatInfo(cmd));
        }
    }
Пример #2
0
    //     public ChatInfo ToChatInfo(Pmd.stCommonChatUserPmd_CS cmd)
    //  {
    //         return ToChatInfo(cmd.dwOPDes, cmd.szInfo, cmd.name,cmd.profession);
    //  }


    public ChatInfo ToChatInfo(GameCmd.stSpeakerChatUserCmd_CS cmd)
    {
        return(ToChatInfo(cmd.dwOPDes, cmd.szInfo, cmd.username, (uint)cmd.profession));
    }