/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); if (this.nowPos != null) { stream.writeBoolean(true); this.nowPos.writeBytesFull(stream); } else { stream.writeBoolean(false); } if (this.data != null) { stream.writeDataFullNotNull(this.data); } else { nullObjError("data"); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.index); if(this.commands!=null) { stream.writeBoolean(true); stream.writeLen(this.commands.size()); if(!this.commands.isEmpty()) { FrameSyncCommandData[] commandsVValues=this.commands.getValues(); for(int commandsVI=0,commandsVLen=this.commands.length();commandsVI<commandsVLen;++commandsVI) { FrameSyncCommandData commandsV=commandsVValues[commandsVI]; if(commandsV!=null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(commandsV); } else { stream.writeBoolean(false); } } } } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { if (this.signedPlayers != null) { stream.writeBoolean(true); RoleShowData[] signedPlayersT = this.signedPlayers; stream.writeLen(signedPlayersT.Length); for (int signedPlayersVI = 0, signedPlayersVLen = signedPlayersT.Length; signedPlayersVI < signedPlayersVLen; ++signedPlayersVI) { RoleShowData signedPlayersV = signedPlayersT[signedPlayersVI]; if (signedPlayersV != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(signedPlayersV); } else { stream.writeBoolean(false); } } } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); if (this.identity != null) { stream.writeDataFullNotNull(this.identity); } else { nullObjError("identity"); } if (this.avatar != null) { stream.writeBoolean(true); stream.writeDataFullNotNull(this.avatar); } else { stream.writeBoolean(false); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeLong(this.playerID); if (this.showData != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.showData); } else { stream.writeBoolean(false); } if (this.attribute != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.attribute); } else { stream.writeBoolean(false); } if (this.force != null) { stream.writeDataSimpleNotNull(this.force); } else { nullObjError("force"); } }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); if (this.conditions != null) { stream.writeBoolean(true); AuctionQueryConditionData[] conditionsT = this.conditions; stream.writeLen(conditionsT.Length); for (int conditionsVI = 0, conditionsVLen = conditionsT.Length; conditionsVI < conditionsVLen; ++conditionsVI) { AuctionQueryConditionData conditionsV = conditionsT[conditionsVI]; if (conditionsV != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(conditionsV); } else { stream.writeBoolean(false); } } } else { stream.writeBoolean(false); } stream.writeInt(this.page); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.type); stream.writeInt(this.targetInstanceID); if (this.pos != null) { stream.writeBoolean(true); this.pos.writeBytesSimple(stream); } else { stream.writeBoolean(false); } if (this.dir != null) { stream.writeBoolean(true); this.dir.writeBytesSimple(stream); } else { stream.writeBoolean(false); } stream.writeInt(this.arg); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeLong(this.queryPlayerID); stream.writeInt(this.queryType); if (this.queryArgs != null) { stream.writeBoolean(true); int[] queryArgsT = this.queryArgs; stream.writeLen(queryArgsT.Length); for (int queryArgsVI = 0, queryArgsVLen = queryArgsT.Length; queryArgsVI < queryArgsVLen; ++queryArgsVI) { int queryArgsV = queryArgsT[queryArgsVI]; stream.writeInt(queryArgsV); } } else { stream.writeBoolean(false); } stream.writeBoolean(this.isSuccess); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.id); if (this.posDir != null) { stream.writeBoolean(true); this.posDir.writeBytesSimple(stream); } else { stream.writeBoolean(false); } if (this.args != null) { stream.writeBoolean(true); int[] argsT = this.args; stream.writeLen(argsT.Length); for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI) { int argsV = argsT[argsVI]; stream.writeInt(argsV); } } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.currentSkillID); stream.writeInt(this.currentSkillLevel); if (this.currentTarget != null) { stream.writeBoolean(true); stream.writeDataFullNotNull(this.currentTarget); } else { stream.writeBoolean(false); } stream.writeInt(this.currentSkillStep); stream.writeInt(this.currentSkillStepTimePass); stream.writeInt(this.currentSkillBarID); stream.writeInt(this.currentSkillBarTimePass); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); stream.writeInt(this.type); if (this.nowPos != null) { stream.writeBoolean(true); this.nowPos.writeBytesFull(stream); } else { stream.writeBoolean(false); } if (this.targetPos != null) { this.targetPos.writeBytesFull(stream); } else { nullObjError("targetPos"); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); stream.writeInt(this.version); stream.writeInt(this.subsectionIndex); stream.writeInt(this.subsectionSubIndex); stream.writeLong(this.value); if (this.args != null) { stream.writeBoolean(true); long[] argsT = this.args; stream.writeLen(argsT.Length); for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI) { long argsV = argsT[argsVI]; stream.writeLong(argsV); } } else { stream.writeBoolean(false); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); if (this.inviter != null) { stream.writeDataFullNotNull(this.inviter); } else { nullObjError("inviter"); } if (this.simpleData != null) { stream.writeBoolean(true); stream.writeDataFullNotNull(this.simpleData); } else { stream.writeBoolean(false); } stream.writeLong(this.time); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.id); stream.writeInt(this.num); stream.writeBoolean(this.isBind); stream.writeLong(this.disableTime); if (this.identity != null) { stream.writeBoolean(true); stream.writeDataFullNotNull(this.identity); } else { stream.writeBoolean(false); } stream.writeBoolean(this.hasRedPoint); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.id); if (this.cache != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.cache); } else { stream.writeBoolean(false); } if (this.equips != null) { stream.writeDataSimpleNotNull(this.equips); } else { nullObjError("equips"); } stream.writeInt(this.mIndex); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); if (this.items != null) { stream.writeBoolean(true); stream.writeLen(this.items.size()); if (!this.items.isEmpty()) { ItemData[] itemsVValues = this.items.getValues(); for (int itemsVI = 0, itemsVLen = this.items.length(); itemsVI < itemsVLen; ++itemsVI) { ItemData itemsV = itemsVValues[itemsVI]; if (itemsV != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(itemsV); } else { stream.writeBoolean(false); } } } } else { stream.writeBoolean(false); } stream.writeInt(this.gridNum); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); stream.writeLong(this.playerID); stream.writeInt(this.type); if (this.args != null) { stream.writeBoolean(true); int[] argsT = this.args; stream.writeLen(argsT.Length); for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI) { int argsV = argsT[argsVI]; stream.writeInt(argsV); } } else { stream.writeBoolean(false); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.type); stream.writeUTF(this.text); if (this.elements != null) { stream.writeBoolean(true); stream.writeLen(this.elements.size()); if (!this.elements.isEmpty()) { ChatElementData[] elementsVValues = this.elements.getValues(); for (int elementsVI = 0, elementsVLen = this.elements.length(); elementsVI < elementsVLen; ++elementsVI) { ChatElementData elementsV = elementsVValues[elementsVI]; if (elementsV != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(elementsV); } else { stream.writeBoolean(false); } } } } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.id); if (this.args != null) { stream.writeBoolean(true); string[] argsT = this.args; stream.writeLen(argsT.Length); for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI) { string argsV = argsT[argsVI]; stream.writeUTF(argsV); } } else { stream.writeBoolean(false); } stream.writeLong(this.logTime); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeBoolean(this.isAssist); stream.writeBoolean(this.isNecessary); if (this.areaIDList != null) { stream.writeLen(this.areaIDList.size()); if (!this.areaIDList.isEmpty()) { int[] areaIDListVValues = this.areaIDList.getValues(); for (int areaIDListVI = 0, areaIDListVLen = this.areaIDList.length(); areaIDListVI < areaIDListVLen; ++areaIDListVI) { int areaIDListV = areaIDListVValues[areaIDListVI]; stream.writeInt(areaIDListV); } } } else { nullObjError("areaIDList"); } stream.writeInt(this.countryID); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { if (this.showData != null) { stream.writeDataSimpleNotNull(this.showData); } else { nullObjError("showData"); } stream.writeBoolean(this.isOnline); stream.writeLong(this.lastOnlineTime); if (this.location != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.location); } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.id); stream.writeBoolean(this.repoterAble); stream.writeBoolean(this.gmAble); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.instanceID); stream.writeInt(this.id); stream.writeLong(this.time); if (this.args != null) { stream.writeBoolean(true); string[] argsT = this.args; stream.writeLen(argsT.Length); for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI) { string argsV = argsT[argsVI]; stream.writeUTF(argsV); } } else { stream.writeBoolean(false); } if (this.itemList != null) { stream.writeBoolean(true); stream.writeLen(this.itemList.size()); if (!this.itemList.isEmpty()) { ItemData[] itemListVValues = this.itemList.getValues(); for (int itemListVI = 0, itemListVLen = this.itemList.length(); itemListVI < itemListVLen; ++itemListVI) { ItemData itemListV = itemListVValues[itemListVI]; if (itemListV != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(itemListV); } else { stream.writeBoolean(false); } } } } else { stream.writeBoolean(false); } stream.writeBoolean(this.readed); stream.writeBoolean(this.rewarded); stream.writeBoolean(this.hasRedPoint); stream.writeUTF(this.platform); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { if (this.hero != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.hero); } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.instanceID); if (this.identity != null) { stream.writeDataFullNotNull(this.identity); } else { nullObjError("identity"); } if (this.pos != null) { stream.writeBoolean(true); stream.writeDataFullNotNull(this.pos); } else { stream.writeBoolean(false); } if (this.attributes != null) { stream.writeLen(this.attributes.size()); if (!this.attributes.isEmpty()) { int attributesKFreeValue = this.attributes.getFreeValue(); int[] attributesKKeys = this.attributes.getKeys(); int[] attributesVValues = this.attributes.getValues(); for (int attributesKI = attributesKKeys.Length - 1; attributesKI >= 0; --attributesKI) { int attributesK = attributesKKeys[attributesKI]; if (attributesK != attributesKFreeValue) { int attributesV = attributesVValues[attributesKI]; stream.writeInt(attributesK); stream.writeInt(attributesV); } } } } else { nullObjError("attributes"); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); if (this.localtion != null) { stream.writeBoolean(true); stream.writeDataSimpleNotNull(this.localtion); } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); if (this.dir != null) { stream.writeBoolean(true); this.dir.writeBytesSimple(stream); } else { stream.writeBoolean(false); } }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { if (this.version != null) { stream.writeBoolean(true); this.version.writeBytesSimple(stream); } else { stream.writeBoolean(false); } stream.writeUTF(this.redirectURL); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.id); stream.writeInt(this.fightUnitID); stream.writeInt(this.aiType); stream.writeBoolean(this.isClientDrive); stream.writeBoolean(this.isIndependentAttacker); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.id); stream.writeUTF(this.name); stream.writeBoolean(this.isFollowParentShow); stream.writeUTF(this.packageName); stream.writeBoolean(this.hasPrefab); }