コード例 #1
0
ファイル: RankPanel.cs プロジェクト: zuojiashun/src
 void EventCallBack(int nEventID, object param)
 {
     if (nEventID == (int)Client.GameEventID.RANKDATAREFRESH)
     {
         Client.stRankType rt = (Client.stRankType)param;
         rankID = rt.rankId;
         ShowUI();
     }
 }
コード例 #2
0
 public void SetRankData(GameCmd.stAnswerOrderListRelationUserCmd_S cmd)
 {
     OrderType  = cmd.type;
     SelfName   = cmd.self_name;
     SelfRank   = cmd.self_rank;
     SelfType   = cmd.self_type;
     SelfClan   = cmd.self_clan;
     SelfYiju   = cmd.self_yiju;
     M_RankList = cmd.data;
     Client.stRankType rt = new Client.stRankType();
     rt.rankId = (uint)OrderType;
     Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.RANKDATAREFRESH, rt);
 }