OpenCards.Core.Protocol.Client.SessionReconnectNotify.lua 1.1 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.Protocol.Client.SessionReconnectNotify
  5. local _M = {MessageID = 0x228B41FD,Name = 'OpenCards.Core.Protocol.Client.SessionReconnectNotify'}
  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[0x228B41FD] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.SessionReconnectNotify'] = _M
  12. function _M.Write(output,data)
  13. Protocol.Serializer.StringDefined['DeepCore.Protocol.Notify'].Write(output, data)
  14. output:PutUTF(data.sessionName)
  15. output:PutUTF(data.roleID)
  16. output:PutMap(data.config, output.PutUTF, output.PutUTF,'string', 'string')
  17. end
  18. function _M.Read(input,data)
  19. Protocol.Serializer.StringDefined['DeepCore.Protocol.Notify'].Read(input, data)
  20. data.sessionName = input:GetUTF()
  21. data.roleID = input:GetUTF()
  22. data.config = input:GetMap(input.GetUTF, input.GetUTF,'string', 'string')
  23. end