OpenCards.Core.ORM.ExpatriateHeroUseCellEntity.lua 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.ORM.ExpatriateHeroUseCellEntity
  5. local _M = {MessageID = 0x32EB2E7D,Name = 'OpenCards.Core.ORM.ExpatriateHeroUseCellEntity'}
  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[0x32EB2E7D] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.ORM.ExpatriateHeroUseCellEntity'] = _M
  12. function _M.Write(output,data)
  13. output:PutUTF(data.mUserUUID)
  14. output:PutUTF(data.mProviderUUID)
  15. output:PutS32(data.userType)
  16. output:PutUTF(data.mHeroUUID)
  17. output:PutBool(data.isCancelUse)
  18. end
  19. function _M.Read(input,data)
  20. data.mUserUUID = input:GetUTF()
  21. data.mProviderUUID = input:GetUTF()
  22. data.userType = input:GetS32()
  23. data.mHeroUUID = input:GetUTF()
  24. data.isCancelUse = input:GetBool()
  25. end