OpenCards.Core.ORM.BattleFinishHistoryCellData.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.ORM.BattleFinishHistoryCellData
  5. local _M = {MessageID = 0x6945EDE3,Name = 'OpenCards.Core.ORM.BattleFinishHistoryCellData'}
  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[0x6945EDE3] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.ORM.BattleFinishHistoryCellData'] = _M
  12. function _M.Write(output,data)
  13. output:PutS32(data.Type)
  14. output:PutUTF(data.RoleUUID)
  15. output:PutUTF(data.ServerID)
  16. output:PutUTF(data.RecordUUID)
  17. output:PutS64(data.Power)
  18. output:PutList(data.Heroes, output.PutOBJ,'OpenCards.Core.ORM.SingleSlotData')
  19. end
  20. function _M.Read(input,data)
  21. data.Type = input:GetS32()
  22. data.RoleUUID = input:GetUTF()
  23. data.ServerID = input:GetUTF()
  24. data.RecordUUID = input:GetUTF()
  25. data.Power = input:GetS64()
  26. data.Heroes = input:GetList(input.GetOBJ,'OpenCards.Core.ORM.SingleSlotData')
  27. end