|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public struct DungeonResult | 
|---|
|  |  |  | public class DungeonResult | 
|---|
|  |  |  | { | 
|---|
|  |  |  | public int conWinCnt;  //胜利的场数 | 
|---|
|  |  |  | public int extraExp; //额外的经验加成 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public struct DungeonMissionData | 
|---|
|  |  |  | public class DungeonMissionData | 
|---|
|  |  |  | { | 
|---|
|  |  |  | public int lineID; | 
|---|
|  |  |  | public int missionID; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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) | 
|---|
|  |  |  | { | 
|---|