少年修仙传客户端代码仓库
client_linchunjie
2019-01-15 e37f7e2c018abc3ce93dc793d2379befb20bb330
System/Chat/ChatData.cs
@@ -86,6 +86,14 @@
        {
            bubbleId = int.Parse(extra.Substring(4, extraLength > 5 ? 2 : 1));
        }
        if (extraLength > 12)
        {
            serverGroupId = int.Parse(extra.Substring(6, 7));
        }
        if (extraLength > 16)
        {
            level = int.Parse(extra.Substring(13, 4));
        }
        if (ChatCenter.s_VoiceRegex.IsMatch(_content))
        {
            var _match = ChatCenter.s_VoiceRegex.Match(_content);
@@ -104,6 +112,8 @@
    public long soundTick { get; private set; }
    public bool IsSound { get; private set; }
    public float soundLength { get; private set; }
    public int serverGroupId { get; private set; }
    public int level { get; private set; }
}
public class ChatSystemData : ChatData
@@ -144,6 +154,14 @@
    }
}
public class ChatCrossServerData : ChatUeseData
{
    public ChatCrossServerData(string content, int player, string name, string extra) : base(content, player, name, extra)
    {
        type = ChatInfoType.CrossServer;
    }
}
public class ChatTeamData : ChatUeseData
{
    public ChatTeamData(string content, int player, string name, string extra, ChatInfoType detailType = ChatInfoType.Team) : base(content, player, name, extra)