OpenCards.Core.Protocol.Client.ClientGetGuildSecretCaveShallowInfoResponse.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.Protocol.Client.ClientGetGuildSecretCaveShallowInfoResponse
  5. local _M = {MessageID = 0x00037704,Name = 'OpenCards.Core.Protocol.Client.ClientGetGuildSecretCaveShallowInfoResponse'}
  6. _M.__index = _M
  7. function _M.IsSuccess(self)
  8. return self.s2c_code ~= nil and self.s2c_code >= 200 and self.s2c_code <= 299
  9. end
  10. Protocol.Serializer[0x00037704] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.ClientGetGuildSecretCaveShallowInfoResponse'] = _M
  12. function _M.Write(output,data)
  13. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.GuildResponse'].Write(output, data)
  14. output:PutS64(data.s2c_previousDamage)
  15. output:PutOBJ(data.s2c_selfInfo,'OpenCards.Core.Data.ClientSecretCaveEntry')
  16. output:PutList(data.s2c_guildScore, output.PutOBJ,'OpenCards.Core.Data.ClientGuildSecretCaveLegendScore')
  17. output:PutS32(data.s2c_currentRound)
  18. output:PutDateTime(data.s2c_finishTime)
  19. output:PutOBJ(data.s2c_guildTopPlayer,'OpenCards.Core.Data.ClientSecretCaveBaseRoleSnap')
  20. output:PutS32(data.s2c_guildTopPlayerRank)
  21. end
  22. function _M.Read(input,data)
  23. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.GuildResponse'].Read(input, data)
  24. data.s2c_previousDamage = input:GetS64()
  25. data.s2c_selfInfo = input:GetOBJ('OpenCards.Core.Data.ClientSecretCaveEntry')
  26. data.s2c_guildScore = input:GetList(input.GetOBJ,'OpenCards.Core.Data.ClientGuildSecretCaveLegendScore')
  27. data.s2c_currentRound = input:GetS32()
  28. data.s2c_finishTime = input:GetDateTime()
  29. data.s2c_guildTopPlayer = input:GetOBJ('OpenCards.Core.Data.ClientSecretCaveBaseRoleSnap')
  30. data.s2c_guildTopPlayerRank = input:GetS32()
  31. end