OpenCards.Core.ORM.FormationData.lua 1001 B

12345678910111213141516171819202122232425262728293031323334
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.ORM.FormationData
  5. local _M = {MessageID = 0x03C2E3FD,Name = 'OpenCards.Core.ORM.FormationData'}
  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[0x03C2E3FD] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.ORM.FormationData'] = _M
  12. function _M.Write(output,data)
  13. output:PutUTF(data.Name)
  14. output:PutBool(data.IsHot)
  15. output:PutList(data.Heroes, output.PutOBJ,'OpenCards.Core.ORM.SingleSlotData')
  16. output:PutOBJ(data.HallowsData,'OpenCards.Core.ORM.SingleHallowsData')
  17. end
  18. function _M.Read(input,data)
  19. data.Name = input:GetUTF()
  20. data.IsHot = input:GetBool()
  21. data.Heroes = input:GetList(input.GetOBJ,'OpenCards.Core.ORM.SingleSlotData')
  22. data.HallowsData = input:GetOBJ('OpenCards.Core.ORM.SingleHallowsData')
  23. end