(function($protobuf){var $Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util;var $root=$protobuf.roots.laya||($protobuf.roots.laya={});$root.proto=function(){var proto={};proto.Role=function(){function Role(properties){this.pieceList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.name=reader.string();break;case 3:message.kind=reader.uint32();break;case 4:message.headurl=reader.string();break;case 5:message.headFrame=reader.uint32();break;case 21:message.exp=reader.int32();break;case 22:message.lev=reader.int32();break;case 34:if(!(message.pieceList&&message.pieceList.length))message.pieceList=[];message.pieceList.push($root.proto.Piece.decode(reader,reader.uint32()));break;case 40:message.gold=reader.int32();break;case 41:message.coin=reader.int32();break;case 51:message.stars=reader.int32();break;case 61:message.usingPet=$root.proto.Pet.decode(reader,reader.uint32());break;case 63:message.maxScore=reader.int32();break;case 65:message.equipScoreSum=reader.int32();break;case 66:message.cdForShare=reader.int64();break;default:reader.skipType(tag&7);break}}return message};Role.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Role.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.name!=null&&message.hasOwnProperty("name"))if(!$util.isString(message.name))return"name: string expected";if(message.kind!=null&&message.hasOwnProperty("kind"))if(!$util.isInteger(message.kind))return"kind: integer expected";if(message.headurl!=null&&message.hasOwnProperty("headurl"))if(!$util.isString(message.headurl))return"headurl: string expected";if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))if(!$util.isInteger(message.headFrame))return"headFrame: integer expected";if(message.exp!=null&&message.hasOwnProperty("exp"))if(!$util.isInteger(message.exp))return"exp: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.pieceList!=null&&message.hasOwnProperty("pieceList")){if(!Array.isArray(message.pieceList))return"pieceList: array expected";for(var i=0;i>>0;if(object.name!=null)message.name=String(object.name);if(object.kind!=null)message.kind=object.kind>>>0;if(object.headurl!=null)message.headurl=String(object.headurl);if(object.headFrame!=null)message.headFrame=object.headFrame>>>0;if(object.exp!=null)message.exp=object.exp|0;if(object.lev!=null)message.lev=object.lev|0;if(object.pieceList){if(!Array.isArray(object.pieceList))throw TypeError(".proto.Role.pieceList: array expected");message.pieceList=[];for(var i=0;i>>0,object.cdForShare.high>>>0)).toNumber();return message};Role.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.pieceList=[];if(options.defaults){object.id=0;object.name="";object.kind=0;object.headurl="";object.headFrame=0;object.exp=0;object.lev=0;object.gold=0;object.coin=0;object.stars=0;object.usingPet=null;object.maxScore=0;object.equipScoreSum=0;if($util.Long){var long=new $util.Long(0,0,false);object.cdForShare=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.cdForShare=options.longs===String?"0":0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.name!=null&&message.hasOwnProperty("name"))object.name=message.name;if(message.kind!=null&&message.hasOwnProperty("kind"))object.kind=message.kind;if(message.headurl!=null&&message.hasOwnProperty("headurl"))object.headurl=message.headurl;if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))object.headFrame=message.headFrame;if(message.exp!=null&&message.hasOwnProperty("exp"))object.exp=message.exp;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.pieceList&&message.pieceList.length){object.pieceList=[];for(var j=0;j>>0,message.cdForShare.high>>>0)).toNumber():message.cdForShare;return object};Role.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Role}();proto.RankRole=function(){function RankRole(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 2:message.name=reader.string();break;case 3:message.kind=reader.uint32();break;case 4:message.headurl=reader.string();break;case 5:message.headFrame=reader.uint32();break;case 22:message.lev=reader.int32();break;case 51:message.stars=reader.int32();break;default:reader.skipType(tag&7);break}}return message};RankRole.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};RankRole.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.name!=null&&message.hasOwnProperty("name"))if(!$util.isString(message.name))return"name: string expected";if(message.kind!=null&&message.hasOwnProperty("kind"))if(!$util.isInteger(message.kind))return"kind: integer expected";if(message.headurl!=null&&message.hasOwnProperty("headurl"))if(!$util.isString(message.headurl))return"headurl: string expected";if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))if(!$util.isInteger(message.headFrame))return"headFrame: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.stars!=null&&message.hasOwnProperty("stars"))if(!$util.isInteger(message.stars))return"stars: integer expected";return null};RankRole.fromObject=function fromObject(object){if(object instanceof $root.proto.RankRole)return object;var message=new $root.proto.RankRole;if(object.name!=null)message.name=String(object.name);if(object.kind!=null)message.kind=object.kind>>>0;if(object.headurl!=null)message.headurl=String(object.headurl);if(object.headFrame!=null)message.headFrame=object.headFrame>>>0;if(object.lev!=null)message.lev=object.lev|0;if(object.stars!=null)message.stars=object.stars|0;return message};RankRole.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.name="";object.kind=0;object.headurl="";object.headFrame=0;object.lev=0;object.stars=0}if(message.name!=null&&message.hasOwnProperty("name"))object.name=message.name;if(message.kind!=null&&message.hasOwnProperty("kind"))object.kind=message.kind;if(message.headurl!=null&&message.hasOwnProperty("headurl"))object.headurl=message.headurl;if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))object.headFrame=message.headFrame;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.stars!=null&&message.hasOwnProperty("stars"))object.stars=message.stars;return object};RankRole.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return RankRole}();proto.ChartEntry=function(){function ChartEntry(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.rank=reader.int32();break;case 2:message.weight=reader.int64();break;case 3:message.id=reader.uint32();break;case 4:message.info=$root.proto.RankRole.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};ChartEntry.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};ChartEntry.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.rank!=null&&message.hasOwnProperty("rank"))if(!$util.isInteger(message.rank))return"rank: integer expected";if(message.weight!=null&&message.hasOwnProperty("weight"))if(!$util.isInteger(message.weight)&&!(message.weight&&$util.isInteger(message.weight.low)&&$util.isInteger(message.weight.high)))return"weight: integer|Long expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.info!=null&&message.hasOwnProperty("info")){var error=$root.proto.RankRole.verify(message.info);if(error)return"info."+error}return null};ChartEntry.fromObject=function fromObject(object){if(object instanceof $root.proto.ChartEntry)return object;var message=new $root.proto.ChartEntry;if(object.rank!=null)message.rank=object.rank|0;if(object.weight!=null)if($util.Long)(message.weight=$util.Long.fromValue(object.weight)).unsigned=false;else if(typeof object.weight==="string")message.weight=parseInt(object.weight,10);else if(typeof object.weight==="number")message.weight=object.weight;else if(typeof object.weight==="object")message.weight=(new $util.LongBits(object.weight.low>>>0,object.weight.high>>>0)).toNumber();if(object.id!=null)message.id=object.id>>>0;if(object.info!=null){if(typeof object.info!=="object")throw TypeError(".proto.ChartEntry.info: object expected");message.info=$root.proto.RankRole.fromObject(object.info)}return message};ChartEntry.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.rank=0;if($util.Long){var long=new $util.Long(0,0,false);object.weight=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.weight=options.longs===String?"0":0;object.id=0;object.info=null}if(message.rank!=null&&message.hasOwnProperty("rank"))object.rank=message.rank;if(message.weight!=null&&message.hasOwnProperty("weight"))if(typeof message.weight==="number")object.weight=options.longs===String?String(message.weight):message.weight;else object.weight=options.longs===String?$util.Long.prototype.toString.call(message.weight):options.longs===Number?(new $util.LongBits(message.weight.low>>>0,message.weight.high>>>0)).toNumber():message.weight;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.info!=null&&message.hasOwnProperty("info"))object.info=$root.proto.RankRole.toObject(message.info,options);return object};ChartEntry.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return ChartEntry}();proto.MATCH_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="MATCH_TYPE_INVALID"]=0;values[valuesById[1]="MATCH_TYPE_GLOBAL"]=1;values[valuesById[2]="MATCH_TYPE_GRADE"]=2;values[valuesById[3]="MATCH_TYPE_INVITED"]=3;return values}();proto.CHART_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="CHART_TYPE_INVALID"]=0;values[valuesById[2]="CHART_TYPE_SINGLE_SCORE"]=2;return values}();proto.Res=function(){function Res(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.amt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Res.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Res.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.amt!=null&&message.hasOwnProperty("amt"))if(!$util.isInteger(message.amt))return"amt: integer expected";return null};Res.fromObject=function fromObject(object){if(object instanceof $root.proto.Res)return object;var message=new $root.proto.Res;if(object.id!=null)message.id=object.id>>>0;if(object.amt!=null)message.amt=object.amt|0;return message};Res.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.amt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.amt!=null&&message.hasOwnProperty("amt"))object.amt=message.amt;return object};Res.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Res}();proto.RES_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="RES_TYPE_INVALID"]=0;values[valuesById[1]="RES_TYPE_COIN"]=1;values[valuesById[4]="RES_TYPE_GOLD"]=4;values[valuesById[100]="RES_TYPE_PET"]=100;values[valuesById[200]="RES_TYPE_EQUIP"]=200;return values}();proto.Pet=function(){function Pet(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.lev=reader.int32();break;case 11:message.equip=$root.proto.Equip.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};Pet.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Pet.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.equip!=null&&message.hasOwnProperty("equip")){var error=$root.proto.Equip.verify(message.equip);if(error)return"equip."+error}return null};Pet.fromObject=function fromObject(object){if(object instanceof $root.proto.Pet)return object;var message=new $root.proto.Pet;if(object.id!=null)message.id=object.id>>>0;if(object.lev!=null)message.lev=object.lev|0;if(object.equip!=null){if(typeof object.equip!=="object")throw TypeError(".proto.Pet.equip: object expected");message.equip=$root.proto.Equip.fromObject(object.equip)}return message};Pet.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.lev=0;object.equip=null}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.equip!=null&&message.hasOwnProperty("equip"))object.equip=$root.proto.Equip.toObject(message.equip,options);return object};Pet.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Pet}();proto.ThemeInvited=function(){function ThemeInvited(properties){this.headurlList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:if(!(message.headurlList&&message.headurlList.length))message.headurlList=[];message.headurlList.push(reader.string());break;default:reader.skipType(tag&7);break}}return message};ThemeInvited.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};ThemeInvited.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.headurlList!=null&&message.hasOwnProperty("headurlList")){if(!Array.isArray(message.headurlList))return"headurlList: array expected";for(var i=0;i>>0;if(object.headurlList){if(!Array.isArray(object.headurlList))throw TypeError(".proto.ThemeInvited.headurlList: array expected");message.headurlList=[];for(var i=0;i>>3){case 1:message.id=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};Equip.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Equip.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";return null};Equip.fromObject=function fromObject(object){if(object instanceof $root.proto.Equip)return object;var message=new $root.proto.Equip;if(object.id!=null)message.id=object.id>>>0;return message};Equip.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.id=0;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;return object};Equip.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Equip}();proto.SHOP_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="SHOP_TYPE_INVALID"]=0;values[valuesById[1]="SHOP_TYPE_PET"]=1;values[valuesById[2]="SHOP_TYPE_EQUIP"]=2;values[valuesById[3]="SHOP_TYPE_HEAD_FRAME"]=3;return values}();proto.AWARD_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="AWARD_TYPE_INVALID"]=0;values[valuesById[1]="AWARD_TYPE_PLAY_GLOBAL_WINNER"]=1;values[valuesById[2]="AWARD_TYPE_PLAY_GLOBAL_LOSER"]=2;values[valuesById[3]="AWARD_TYPE_PLAY_GRADE_WINNER"]=3;values[valuesById[4]="AWARD_TYPE_PLAY_GRADE_LOSER"]=4;values[valuesById[5]="AWARD_TYPE_ADD_ONTO_DESKTOP"]=5;values[valuesById[6]="AWARD_TYPE_SHARE_1"]=6;values[valuesById[7]="AWARD_TYPE_SHARE_2"]=7;values[valuesById[8]="AWARD_TYPE_INVITE_1"]=8;values[valuesById[9]="AWARD_TYPE_INVITE_2"]=9;values[valuesById[10]="AWARD_TYPE_GIFT_BOX"]=10;return values}();proto.Cookie=function(){function Cookie(properties){this.guideList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 2:if(!(message.guideList&&message.guideList.length))message.guideList=[];if((tag&7)===2){var end2=reader.uint32()+reader.pos;while(reader.pos>>0}if(object.guideID!=null)message.guideID=String(object.guideID);return message};Cookie.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.guideList=[];if(options.defaults)object.guideID="";if(message.guideList&&message.guideList.length){object.guideList=[];for(var j=0;j>>3){case 1:message.id=reader.uint32();break;case 2:message.cnt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Charge.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Charge.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.cnt!=null&&message.hasOwnProperty("cnt"))if(!$util.isInteger(message.cnt))return"cnt: integer expected";return null};Charge.fromObject=function fromObject(object){if(object instanceof $root.proto.Charge)return object;var message=new $root.proto.Charge;if(object.id!=null)message.id=object.id>>>0;if(object.cnt!=null)message.cnt=object.cnt|0;return message};Charge.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.cnt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.cnt!=null&&message.hasOwnProperty("cnt"))object.cnt=message.cnt;return object};Charge.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Charge}();proto.Piece=function(){function Piece(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.amt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Piece.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Piece.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.amt!=null&&message.hasOwnProperty("amt"))if(!$util.isInteger(message.amt))return"amt: integer expected";return null};Piece.fromObject=function fromObject(object){if(object instanceof $root.proto.Piece)return object;var message=new $root.proto.Piece;if(object.id!=null)message.id=object.id>>>0;if(object.amt!=null)message.amt=object.amt|0;return message};Piece.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.amt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.amt!=null&&message.hasOwnProperty("amt"))object.amt=message.amt;return object};Piece.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Piece}();return proto}();return $root})(protobuf);