OpenCards.Core.Protocol.Client.ClientCryLevelUpResponse.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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.ClientCryLevelUpResponse
  5. local _M = {MessageID = 0x104E9FF4,Name = 'OpenCards.Core.Protocol.Client.ClientCryLevelUpResponse'}
  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[0x104E9FF4] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.ClientCryLevelUpResponse'] = _M
  12. function _M.Write(output,data)
  13. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.CrystalResponse'].Write(output, data)
  14. output:PutS32(data.CryStalLevel)
  15. output:PutS32(data.Step)
  16. output:PutS32(data.State)
  17. output:PutMap(data.TeamInfo, output.PutS32, output.PutOBJ,'int', 'OpenCards.Core.ORM.CrystalTeam')
  18. end
  19. function _M.Read(input,data)
  20. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.CrystalResponse'].Read(input, data)
  21. data.CryStalLevel = input:GetS32()
  22. data.Step = input:GetS32()
  23. data.State = input:GetS32()
  24. data.TeamInfo = input:GetMap(input.GetS32, input.GetOBJ,'int', 'OpenCards.Core.ORM.CrystalTeam')
  25. end