Пример #1
0
        private void initData()
        {
            List <RingRankingInfo> playerRingDataList = RingPaiHangDBController.getInstance().getPlayerRingDataList();

            if (null != playerRingDataList)
            {
                foreach (RingRankingInfo data in playerRingDataList)
                {
                    this.playerRingDatas.Add(data.nRoleID, data);
                    this.rankingDatas.Add(data.getPlayerRingRankingData());
                }
            }
        }
Пример #2
0
        public RingRankingInfo getRingData(int nRoleID)
        {
            RingRankingInfo data = null;

            lock (this.playerRingDatas)
            {
                if (this.playerRingDatas.TryGetValue(nRoleID, out data))
                {
                    return(data);
                }
            }
            return(RingPaiHangDBController.getInstance().getRingDataById(nRoleID));
        }