少年修仙传客户端代码仓库
client_linchunjie
2019-05-25 364e58136b30b67ae6d5c207664b8ee339b7832b
3335 富文本添加地图资源表格读取
1个文件已修改
17 ■■■■■ 已修改文件
System/FindPrecious/FindPreciousModel.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/FindPreciousModel.cs
@@ -827,29 +827,42 @@
            public DateTime time;
            public string playerName;
            public int mapId;
            public int lineId;
            public int bossId;
            public int itemId;
            public string userdata;
            public int playerId;
            public int rarility;
            public int serverGroupId;
            public int playerLevel;
            public DropRecord(HA003_tagUniversalGameRecInfo.tagUniversalGameRec _serverInfo)
            {
                this.index = 0;
                this.time = TimeUtility.GetTime(_serverInfo.Time);
                this.playerName = _serverInfo.StrValue1;
                this.mapId = (int)_serverInfo.Value1;
                this.mapId = (int)_serverInfo.Value1 / 100;
                this.lineId = (int)_serverInfo.Value1 % 100;
                this.bossId = (int)_serverInfo.Value2;
                this.itemId = (int)_serverInfo.Value3;
                this.userdata = _serverInfo.StrValue3;
                this.playerId = (int)_serverInfo.Value4;
                this.rarility = (int)_serverInfo.Value5;
                this.serverGroupId = 0;
                this.playerLevel = 0;
                var strValue2Array = _serverInfo.StrValue2.Split('|');
                if (strValue2Array.Length > 1)
                {
                    this.serverGroupId = int.Parse(strValue2Array[0]);
                    this.playerLevel = int.Parse(strValue2Array[1]);
                }
            }
            public override string ToString()
            {
                var timeString = time.ToString("yyyy-MM-dd HH:mm:ss");
                return Language.Get("FightTreasure_DropRecord", timeString, playerName, playerId, mapId, bossId, itemId, userdata);
                return Language.Get("FightTreasure_DropRecord", timeString, playerName, playerId, mapId, bossId, itemId, userdata,
                    serverGroupId, playerLevel, lineId);
            }
            public static int Compare(DropRecord _lhs, DropRecord _rhs)