using System;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
public class RichShowPlayerEvent : TRichTextEvent
|
{
|
public RichShowPlayerEvent()
|
{
|
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.SHOWPLAYER, this);
|
}
|
public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
|
{
|
// switch (type)
|
// {
|
// case RichTextEventEnum.SHOWPLAYER:
|
// {
|
// uint id = 0;
|
// if (uint.TryParse(href.mSplits["showplayer"], out id))
|
// {
|
// if (id == PlayerDatas.Instance.baseData.PlayerID)
|
// {
|
// return false;
|
// }
|
// var serverGroupId = 0;
|
// if (href.mSplits.ContainsKey("servergroupid"))
|
// {
|
// int.TryParse(href.mSplits["servergroupid"], out serverGroupId);
|
// }
|
// if (serverGroupId != 0 && serverGroupId != PlayerDatas.Instance.baseData.ServerGroupId)
|
// {
|
// var name = string.Empty;
|
// if (href.mSplits.ContainsKey("name"))
|
// {
|
// name = href.mSplits["name"];
|
// }
|
// var level = 0;
|
// if (href.mSplits.ContainsKey("level"))
|
// {
|
// int.TryParse(href.mSplits["level"], out level);
|
// }
|
// PlayerDetails.ShowCrossServerPlayer((int)id, level, name, serverGroupId);
|
// }
|
// else
|
// {
|
// PlayerDetails.ShowPlayerDetails((int)id, null);
|
// }
|
// }
|
// }
|
// break;
|
// }
|
return false;
|
}
|
|
public override string GetDisplay(RichTextEventEnum type, Dictionary<string, string> dic)
|
{
|
return string.Empty;
|
}
|
}
|