Example #1
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     if (cutVer == 0u || COMDT_TRANSACTION_MSG_OF_GETCLASSIDREQ.CURRVERSION < cutVer)
     {
         cutVer = COMDT_TRANSACTION_MSG_OF_GETCLASSIDREQ.CURRVERSION;
     }
     if (COMDT_TRANSACTION_MSG_OF_GETCLASSIDREQ.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = destBuf.writeUInt8(this.bGradeId);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = destBuf.writeUInt8(this.bFriendRankInfoNum);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (10 < this.bFriendRankInfoNum)
     {
         return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
     }
     if (this.astFriendRankInfo.Length < (int)this.bFriendRankInfoNum)
     {
         return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
     }
     for (int i = 0; i < (int)this.bFriendRankInfoNum; i++)
     {
         errorType = this.astFriendRankInfo[i].pack(ref destBuf, cutVer);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt8(ref this.bMapType);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readUInt32(ref this.dwMapAcntNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwStage);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwBattleCnt);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwDifficultyId);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         this.TransferData();
     }
     return(type);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResWarmBattleDifficulty.CURRVERSION < cutVer)
     {
         cutVer = ResWarmBattleDifficulty.CURRVERSION;
     }
     if (ResWarmBattleDifficulty.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt8(ref this.bMapType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt32(ref this.dwMapAcntNum);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt32(ref this.dwStage);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt32(ref this.dwBattleCnt);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt32(ref this.dwDifficultyId);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ShareStatusList.CURRVERSION < cutVer)
     {
         cutVer = ShareStatusList.CURRVERSION;
     }
     if (ShareStatusList.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readInt32(ref this.iCount);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (0 > this.iCount)
     {
         return(TdrError.ErrorType.TDR_ERR_MINUS_REFER_VALUE);
     }
     if (50 < this.iCount)
     {
         return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
     }
     this.astShareStatus = new ShareStatus[this.iCount];
     for (int i = 0; i < this.iCount; i++)
     {
         this.astShareStatus[i] = new ShareStatus();
     }
     for (int j = 0; j < this.iCount; j++)
     {
         errorType = this.astShareStatus[j].unpack(ref srcBuf, cutVer);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
Example #5
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResArenaOneTimeReward.CURRVERSION < cutVer)
     {
         cutVer = ResArenaOneTimeReward.CURRVERSION;
     }
     if (ResArenaOneTimeReward.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt32(ref this.dwRankStart);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt32(ref this.dwRankEnd);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readFloat(ref this.fRewardCoinFactor);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readFloat(ref this.fRewardDiamondFactor);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readFloat(ref this.fRewardArenaCoinFactor);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
Example #6
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     if (cutVer == 0u || COMDT_HERO_EQUIPEVAL.CURRVERSION < cutVer)
     {
         cutVer = COMDT_HERO_EQUIPEVAL.CURRVERSION;
     }
     if (COMDT_HERO_EQUIPEVAL.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = destBuf.writeUInt32(this.dwHeroId);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     for (int i = 0; i < 6; i++)
     {
         errorType = destBuf.writeUInt32(this.HeroEquipList[i]);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     errorType = this.stEvalInfo.pack(ref destBuf, cutVer);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (COMDT_HERO_EQUIPEVAL.VERSION_dwEvalTime <= cutVer)
     {
         errorType = destBuf.writeUInt32(this.dwEvalTime);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
Example #7
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeInt32(this.iBuyType);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = destBuf.writeInt32(this.iBuySubType);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         long iBuyType = this.iBuyType;
         type = this.stExtraInfo.pack(iBuyType, ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = this.stBuyResult.pack(ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = destBuf.writeInt32(this.iChgValue);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeUInt64(this.ullActivePlayerNum);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = destBuf.writeUInt32(this.dwMatchNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         if (0x80 < this.dwMatchNum)
         {
             return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
         }
         if (this.astMatchDetail.Length < this.dwMatchNum)
         {
             return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
         }
         for (int i = 0; i < this.dwMatchNum; i++)
         {
             type = this.astMatchDetail[i].pack(ref destBuf, cutVer);
             if (type != TdrError.ErrorType.TDR_NO_ERROR)
             {
                 return(type);
             }
         }
     }
     return(type);
 }
Example #9
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeUInt8(this.bGameResult);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = destBuf.writeUInt8(this.bGameType);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         long bGameType = this.bGameType;
         type = this.stGameDetail.pack(bGameType, ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = destBuf.writeInt32(this.iLevelID);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = this.stHeroData.pack(ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || DynamicAttributeInfo.CURRVERSION < cutVer)
     {
         cutVer = DynamicAttributeInfo.CURRVERSION;
     }
     if (DynamicAttributeInfo.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readInt32(ref this.iBaseHP);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iAD);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iAP);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iDef);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iRes);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
Example #11
0
 public override TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt8(ref this.bGameResult);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readUInt8(ref this.bGameType);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         long bGameType = this.bGameType;
         type = this.stGameDetail.unpack(bGameType, ref srcBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readInt32(ref this.iLevelID);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = this.stHeroData.unpack(ref srcBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResNormalWinLoseMMRAdjust.CURRVERSION < cutVer)
     {
         cutVer = ResNormalWinLoseMMRAdjust.CURRVERSION;
     }
     if (ResNormalWinLoseMMRAdjust.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt32(ref this.dwCnt);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iWinMMRAdjust);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iLoseMMRAdjust);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iSettleWinMMRAdjust);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iSettleLoseMMRAdjust);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt32(ref this.dwCnt);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readInt32(ref this.iWinMMRAdjust);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readInt32(ref this.iLoseMMRAdjust);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readInt32(ref this.iSettleWinMMRAdjust);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readInt32(ref this.iSettleLoseMMRAdjust);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         this.TransferData();
     }
     return(type);
 }
Example #14
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     if (cutVer == 0u || SCPKG_CMD_GET_HORNMSG.CURRVERSION < cutVer)
     {
         cutVer = SCPKG_CMD_GET_HORNMSG.CURRVERSION;
     }
     if (SCPKG_CMD_GET_HORNMSG.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = destBuf.writeUInt8(this.bHornType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = destBuf.writeUInt16(this.wMsgCnt);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (50 < this.wMsgCnt)
     {
         return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
     }
     if (this.astMsgInfo.Length < (int)this.wMsgCnt)
     {
         return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
     }
     for (int i = 0; i < (int)this.wMsgCnt; i++)
     {
         errorType = this.astMsgInfo[i].pack(ref destBuf, cutVer);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
Example #15
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResDT_AllocRuleParam.CURRVERSION < cutVer)
     {
         cutVer = ResDT_AllocRuleParam.CURRVERSION;
     }
     if (ResDT_AllocRuleParam.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt16(ref this.wMemberChooseType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt16(ref this.wDivideType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iRangeRadius);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iIncomeRate);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bDeadAddIncome);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
Example #16
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeUInt64(this.ullUniqueID);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = destBuf.writeUInt16(this.wItemType);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = destBuf.writeUInt32(this.dwItemID);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = destBuf.writeInt32(this.iAddUpdTime);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         long wItemType = this.wItemType;
         type = this.stItemInfo.pack(wItemType, ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
Example #17
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResDT_MapBuff.CURRVERSION < cutVer)
     {
         cutVer = ResDT_MapBuff.CURRVERSION;
     }
     if (ResDT_MapBuff.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt32(ref this.dwID);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bCamp);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bHeroType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bHeroDamageType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bHeroAttackType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
Example #18
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt32(ref this.dwLogicWorldId);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readUInt32(ref this.dwTotalRegisterNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwMaxRegisterNumPerDay);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwFakeRegisterNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwMaxOnlineNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         this.TransferData();
     }
     return(type);
 }
Example #19
0
 public override TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt64(ref this.ullUniqueID);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readUInt16(ref this.wItemType);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readUInt32(ref this.dwItemID);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readInt32(ref this.iAddUpdTime);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         long wItemType = this.wItemType;
         type = this.stItemInfo.unpack(wItemType, ref srcBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
Example #20
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeUInt8(this.bPageID);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = destBuf.writeUInt8(this.bGuildNum);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         if (10 < this.bGuildNum)
         {
             return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
         }
         if (this.astGuildList.Length < this.bGuildNum)
         {
             return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
         }
         for (int i = 0; i < this.bGuildNum; i++)
         {
             type = this.astGuildList[i].pack(ref destBuf, cutVer);
             if (type != TdrError.ErrorType.TDR_NO_ERROR)
             {
                 return(type);
             }
         }
     }
     return(type);
 }
Example #21
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt32(ref this.dwRankStart);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         type = srcBuf.readUInt32(ref this.dwRankEnd);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readFloat(ref this.fRewardCoinFactor);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readFloat(ref this.fRewardDiamondFactor);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         type = srcBuf.readFloat(ref this.fRewardArenaCoinFactor);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
         this.TransferData();
     }
     return(type);
 }
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     if (cutVer == 0u || COMDT_SELFDEFINE_EQUIP_INFO.CURRVERSION < cutVer)
     {
         cutVer = COMDT_SELFDEFINE_EQUIP_INFO.CURRVERSION;
     }
     if (COMDT_SELFDEFINE_EQUIP_INFO.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = destBuf.writeUInt32(this.dwLastChgHeroId);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = destBuf.writeUInt16(this.wHeroNum);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (200 < this.wHeroNum)
     {
         return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
     }
     if (this.astEquipInfoList.Length < (int)this.wHeroNum)
     {
         return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
     }
     for (int i = 0; i < (int)this.wHeroNum; i++)
     {
         errorType = this.astEquipInfoList[i].pack(ref destBuf, cutVer);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
Example #23
0
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     if (cutVer == 0u || COMDT_WEAL_EXCHANGE_DETAIL.CURRVERSION < cutVer)
     {
         cutVer = COMDT_WEAL_EXCHANGE_DETAIL.CURRVERSION;
     }
     if (COMDT_WEAL_EXCHANGE_DETAIL.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = destBuf.writeUInt32(this.dwLastRefreshTime);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = destBuf.writeUInt8(this.bWealCnt);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     if (15 < this.bWealCnt)
     {
         return(TdrError.ErrorType.TDR_ERR_REFER_SURPASS_COUNT);
     }
     if (this.astWealList.Length < (int)this.bWealCnt)
     {
         return(TdrError.ErrorType.TDR_ERR_VAR_ARRAY_CONFLICT);
     }
     for (int i = 0; i < (int)this.bWealCnt; i++)
     {
         errorType = this.astWealList[i].pack(ref destBuf, cutVer);
         if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(errorType);
         }
     }
     return(errorType);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResDT_SubStore_Item.CURRVERSION < cutVer)
     {
         cutVer = ResDT_SubStore_Item.CURRVERSION;
     }
     if (ResDT_SubStore_Item.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt32(ref this.dwID);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt16(ref this.wType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt16(ref this.wCnt);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt8(ref this.bCostType);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readUInt16(ref this.wRate);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
 public override TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readUInt8(ref this.bErrorCode);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         long bErrorCode = this.bErrorCode;
         type = this.stRecordDetail.unpack(bErrorCode, ref srcBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
 public override TdrError.ErrorType pack(ref TdrWriteBuf destBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = destBuf.writeUInt8(this.bErrorCode);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         long bErrorCode = this.bErrorCode;
         type = this.stRecordDetail.pack(bErrorCode, ref destBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
Example #27
0
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResAiParamConf.CURRVERSION < cutVer)
     {
         cutVer = ResAiParamConf.CURRVERSION;
     }
     if (ResAiParamConf.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readUInt16(ref this.wId);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readInt32(ref this.iParam);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
 public TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     if (cutVer == 0u || ResDT_IntParamArryGrowNode.CURRVERSION < cutVer)
     {
         cutVer = ResDT_IntParamArryGrowNode.CURRVERSION;
     }
     if (ResDT_IntParamArryGrowNode.BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     TdrError.ErrorType errorType = srcBuf.readFloat(ref this.fGrowParam);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     errorType = srcBuf.readFloat(ref this.fEnergyEffect);
     if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
     {
         return(errorType);
     }
     this.TransferData();
     return(errorType);
 }
Example #29
0
 public override TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
 {
     TdrError.ErrorType type = TdrError.ErrorType.TDR_NO_ERROR;
     if ((cutVer == 0) || (CURRVERSION < cutVer))
     {
         cutVer = CURRVERSION;
     }
     if (BASEVERSION > cutVer)
     {
         return(TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL);
     }
     type = srcBuf.readInt32(ref this.iChgType);
     if (type == TdrError.ErrorType.TDR_NO_ERROR)
     {
         long iChgType = this.iChgType;
         type = this.stChgInfo.unpack(iChgType, ref srcBuf, cutVer);
         if (type != TdrError.ErrorType.TDR_NO_ERROR)
         {
             return(type);
         }
     }
     return(type);
 }
Example #30
0
		public override TdrError.ErrorType unpack(ref TdrReadBuf srcBuf, uint cutVer)
		{
			if (cutVer == 0u || CSPkg.CURRVERSION < cutVer)
			{
				cutVer = CSPkg.CURRVERSION;
			}
			if (CSPkg.BASEVERSION > cutVer)
			{
				return TdrError.ErrorType.TDR_ERR_CUTVER_TOO_SMALL;
			}
			TdrError.ErrorType errorType = this.stPkgHead.unpack(ref srcBuf, cutVer);
			if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
			{
				return errorType;
			}
			long selector = (long)((ulong)this.stPkgHead.dwMsgID);
			errorType = this.stPkgData.unpack(selector, ref srcBuf, cutVer);
			if (errorType != TdrError.ErrorType.TDR_NO_ERROR)
			{
				return errorType;
			}
			return errorType;
		}