| | |
| | |
|
| | | public int passLineID;
|
| | |
|
| | | public DungeonRecord(HA320_tagMCPlayerFBInfoData.tagMCFBInfo _serverInfo)
|
| | | {
|
| | | this.id = (int)_serverInfo.FBID;
|
| | | this.enterTimes = (int)_serverInfo.EnterCnt;
|
| | | this.recoverTimes = (int)_serverInfo.RecoverCnt;
|
| | | this.extraTimes = (int)_serverInfo.ItemAddCnt;
|
| | | this.lineGrades = new Dictionary<int, int>();
|
| | | this.passLineID = (int)_serverInfo.PassLineID;
|
| | | for (int i = 0; i < _serverInfo.PassGrade.Length; i++)
|
| | | {
|
| | | var tempValue = (int)_serverInfo.PassGrade[i];
|
| | | for (int j = 0; j < 9; j++)
|
| | | {
|
| | | var a = MathUtility.Power(10, j);
|
| | | var b = MathUtility.Power(10, j + 1);
|
| | | this.lineGrades[i * 9 + j] = (tempValue % b) / a;
|
| | | }
|
| | | }
|
| | | this.enterCntTotal = (int)_serverInfo.EnterCntTotal;
|
| | | }
|
| | | // public DungeonRecord(HA320_tagMCPlayerFBInfoData.tagMCFBInfo _serverInfo)
|
| | | // {
|
| | | // this.id = (int)_serverInfo.FBID;
|
| | | // this.enterTimes = (int)_serverInfo.EnterCnt;
|
| | | // this.recoverTimes = (int)_serverInfo.RecoverCnt;
|
| | | // this.extraTimes = (int)_serverInfo.ItemAddCnt;
|
| | | // this.lineGrades = new Dictionary<int, int>();
|
| | | // this.passLineID = (int)_serverInfo.PassLineID;
|
| | | // for (int i = 0; i < _serverInfo.PassGrade.Length; i++)
|
| | | // {
|
| | | // var tempValue = (int)_serverInfo.PassGrade[i];
|
| | | // for (int j = 0; j < 9; j++)
|
| | | // {
|
| | | // var a = MathUtility.Power(10, j);
|
| | | // var b = MathUtility.Power(10, j + 1);
|
| | | // this.lineGrades[i * 9 + j] = (tempValue % b) / a;
|
| | | // }
|
| | | // }
|
| | | // this.enterCntTotal = (int)_serverInfo.EnterCntTotal;
|
| | | // }
|
| | |
|
| | | public DungeonRecord(HA3BD_tagMCBuyEnterInfo.tagMCBuyInfo _serverInfo)
|
| | | {
|
| | |
| | | this.buyTimes = _serverInfo.BuyCount;
|
| | | }
|
| | |
|
| | | public void UpdateRecord(HA320_tagMCPlayerFBInfoData.tagMCFBInfo _serverInfo)
|
| | | {
|
| | | this.enterTimes = (int)_serverInfo.EnterCnt;
|
| | | this.recoverTimes = (int)_serverInfo.RecoverCnt;
|
| | | this.extraTimes = (int)_serverInfo.ItemAddCnt;
|
| | | this.passLineID = (int)_serverInfo.PassLineID;
|
| | | for (int i = 0; i < _serverInfo.PassGrade.Length; i++)
|
| | | {
|
| | | var tempValue = (int)_serverInfo.PassGrade[i];
|
| | | for (int j = 0; j < 9; j++)
|
| | | {
|
| | | var a = MathUtility.Power(10, j);
|
| | | var b = MathUtility.Power(10, j + 1);
|
| | | this.lineGrades[i * 9 + j] = (tempValue % b) / a;
|
| | | }
|
| | | }
|
| | | this.enterCntTotal = (int)_serverInfo.EnterCntTotal;
|
| | | }
|
| | | // public void UpdateRecord(HA320_tagMCPlayerFBInfoData.tagMCFBInfo _serverInfo)
|
| | | // {
|
| | | // this.enterTimes = (int)_serverInfo.EnterCnt;
|
| | | // this.recoverTimes = (int)_serverInfo.RecoverCnt;
|
| | | // this.extraTimes = (int)_serverInfo.ItemAddCnt;
|
| | | // this.passLineID = (int)_serverInfo.PassLineID;
|
| | | // for (int i = 0; i < _serverInfo.PassGrade.Length; i++)
|
| | | // {
|
| | | // var tempValue = (int)_serverInfo.PassGrade[i];
|
| | | // for (int j = 0; j < 9; j++)
|
| | | // {
|
| | | // var a = MathUtility.Power(10, j);
|
| | | // var b = MathUtility.Power(10, j + 1);
|
| | | // this.lineGrades[i * 9 + j] = (tempValue % b) / a;
|
| | | // }
|
| | | // }
|
| | | // this.enterCntTotal = (int)_serverInfo.EnterCntTotal;
|
| | | // }
|
| | |
|
| | | public void UpdateRecord(HA3BD_tagMCBuyEnterInfo.tagMCBuyInfo _serverInfo)
|
| | | {
|