少年修仙传客户端代码仓库
client_linchunjie
2019-03-11 232ee44c919c27f2c28808a839a840186ae9de20
3335 富文本添加支持竞价
3个文件已修改
17 ■■■■■ 已修改文件
System/Message/HrefAnalysis.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/RichEvent.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/RichNormalEvent.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/HrefAnalysis.cs
@@ -247,6 +247,12 @@
                        presentHrefInfo.Add(split_value, array[1]);
                    }
                    break;
                case "auctionbidding":
                    {
                        presentHrefInfo.mEvents.Add(RichTextEventEnum.AuctionBidding);
                        presentHrefInfo.Add(split_value, array[1]);
                    }
                    break;
                default:
                    {
                        presentHrefInfo.Add(split_value, array[1]);
System/Message/RichEvent.cs
@@ -23,4 +23,5 @@
    GetWay,//获取途径
    JOINTEAM,//加入队伍
    AncientRobotName,//上古战场随机名字
    AuctionBidding,//集市竞价
}
System/Message/RichNormalEvent.cs
@@ -16,6 +16,7 @@
        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.GetWay, this);
        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JOINTEAM, this);
        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.AncientRobotName, this);
        RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.AuctionBidding, this);
    }
    public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
@@ -107,6 +108,15 @@
                    }
                }
                break;
            case RichTextEventEnum.AuctionBidding:
                {
                    if (href.mSplits.ContainsKey("auctionbidding"))
                    {
                        var guid = href.mSplits["auctionbidding"];
                        //--竞价
                    }
                }
                break;
        }
        return false;
    }