-- Warning: do not edit this file. -- 警告: 不要编辑此文件 -- DeepCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -- DeepCore.Protocol.Response local _M = {MessageID = 0x00000000,Name = 'DeepCore.Protocol.Response'} _M.__index = _M function _M.IsSuccess(self) return self.s2c_code ~= nil and self.s2c_code >= 200 and self.s2c_code <= 299 end Protocol.Serializer[0x00000000] = _M Protocol.Serializer.StringDefined['DeepCore.Protocol.Response'] = _M function _M.Write(output,data) output:PutS32(data.s2c_code) output:PutUTF(data.s2c_msg) output:PutOBJ(data.InnerResponse,'DeepCore.Protocol.Response') end function _M.Read(input,data) data.s2c_code = input:GetS32() data.s2c_msg = input:GetUTF() data.InnerResponse = input:GetOBJ('DeepCore.Protocol.Response') end