OpenCards.Core.ORM.TowerPlayerLevelRecordData.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.ORM.TowerPlayerLevelRecordData
  5. local _M = {MessageID = 0x6DA5CA1B,Name = 'OpenCards.Core.ORM.TowerPlayerLevelRecordData'}
  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[0x6DA5CA1B] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.ORM.TowerPlayerLevelRecordData'] = _M
  12. function _M.Write(output,data)
  13. output:PutMap(data.TowerLevelRecords, output.PutS32, function(_,v1) output:PutMap(v1, output.PutS32, output.PutOBJ,'int', 'OpenCards.Core.ORM.TowerPlayerRecordData') end,'int', 'DeepCore.HashMap<int, OpenCards.Core.ORM.TowerPlayerRecordData>')
  14. output:PutUTF(data.Uuid)
  15. output:PutDateTime(data.ExpiredUtc)
  16. end
  17. function _M.Read(input,data)
  18. data.TowerLevelRecords = input:GetMap(input.GetS32, function(_) return input:GetMap(input.GetS32, input.GetOBJ,'int', 'OpenCards.Core.ORM.TowerPlayerRecordData') end,'int', 'DeepCore.HashMap<int, OpenCards.Core.ORM.TowerPlayerRecordData>')
  19. data.Uuid = input:GetUTF()
  20. data.ExpiredUtc = input:GetDateTime()
  21. end