/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); if (this.playerIDList != null) { stream.writeLen(this.playerIDList.size()); if (!this.playerIDList.isEmpty()) { long[] playerIDListVValues = this.playerIDList.getValues(); for (int playerIDListVI = 0, playerIDListVLen = this.playerIDList.length(); playerIDListVI < playerIDListVLen; ++playerIDListVI) { long playerIDListV = playerIDListVValues[playerIDListVI]; stream.writeLong(playerIDListV); } } } else { nullObjError("playerIDList"); } stream.writeInt(this.type); stream.endWriteObj(); }
/// <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 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.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 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) { stream.writeInt(this.id); if (this.tasks != null) { TaskData[] tasksT = this.tasks; stream.writeLen(tasksT.Length); for (int tasksVI = 0, tasksVLen = tasksT.Length; tasksVI < tasksVLen; ++tasksVI) { TaskData tasksV = tasksT[tasksVI]; if (tasksV != null) { stream.writeDataSimpleNotNull(tasksV); } else { nullObjError("tasksV"); } } } else { nullObjError("tasks"); } stream.writeBoolean(this.isFailed); stream.writeLong(this.enableTime); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); if (this.showData != null) { stream.writeDataFullNotNull(this.showData); } else { nullObjError("showData"); } if (this.chatData != null) { stream.writeDataFullNotNull(this.chatData); } else { nullObjError("chatData"); } stream.writeLong(this.time); stream.writeInt(this.sendIndex); stream.endWriteObj(); }
/// <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) { stream.writeInt(this.id); stream.writeLong(this.time); stream.writeBoolean(this.hasGotReward); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeLong(this.playerID); if (this.data != null) { stream.writeDataSimpleNotNull(this.data); } else { nullObjError("data"); } stream.writeLong(this.applyTime); stream.writeInt(this.type); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.rank); stream.writeLong(this.value); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeLong(this.addTime); stream.writeBoolean(this.isRobot); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeLong(this.playerID); stream.writeInt(this.result); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.level); stream.writeLong(this.expMax); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeLong(this.playerID); if (this.socialData != null) { stream.writeDataSimpleNotNull(this.socialData); } else { nullObjError("socialData"); } stream.writeInt(this.title); stream.writeLong(this.joinTime); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.id); stream.writeLong(this.reTime); stream.writeBoolean(this.isSuccess); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeLong(this.key); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { if (this.data != null) { stream.writeDataSimpleNotNull(this.data); } else { nullObjError("data"); } stream.writeLong(this.time); stream.writeInt(this.result); stream.writeLong(this.disableTime); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.type); stream.writeLong(this.playerID); stream.writeInt(this.force); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.id); stream.writeBoolean(this.isRunning); stream.writeInt(this.joinTimes); stream.writeLong(this.nextResetTime); stream.writeLong(this.lastTurnTime); stream.writeLong(this.nextTurnTime); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); if (this.dic != null) { stream.writeLen(this.dic.size()); if (!this.dic.isEmpty()) { long dicKFreeValue = this.dic.getFreeValue(); long[] dicKKeys = this.dic.getKeys(); RoleSocialPoolData[] dicVValues = this.dic.getValues(); for (int dicKI = dicKKeys.Length - 1; dicKI >= 0; --dicKI) { long dicK = dicKKeys[dicKI]; if (dicK != dicKFreeValue) { RoleSocialPoolData dicV = dicVValues[dicKI]; stream.writeLong(dicK); if (dicV != null) { stream.writeDataFullNotNull(dicV); } else { nullObjError("dicV"); } } } } } else { nullObjError("dic"); } stream.writeLong(this.nextCutTime); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeLong(this.instanceID); stream.writeInt(this.itemID); stream.writeInt(this.num); stream.writeInt(this.price); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeLong(this.workInstanceID); stream.writeInt(this.senderIndex); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.id); stream.writeInt(this.level); stream.writeLong(this.controlPlayerID); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); stream.writeLong(this.playerID); stream.endWriteObj(); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { base.toWriteBytesSimple(stream); stream.writeInt(this.level); stream.writeLong(this.exp); stream.writeBoolean(this.isWorking); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeInt(this.type); stream.writeInt(this.arg0); stream.writeUTF(this.arg1); stream.writeLong(this.arg2); }
/// <summary> /// 写入字节流(简版) /// </summary> protected override void toWriteBytesSimple(BytesWriteStream stream) { stream.writeLong(this.playerID); stream.writeInt(this.createAreaID); stream.writeUTF(this.name); stream.writeInt(this.sex); stream.writeInt(this.vocation); stream.writeInt(this.level); stream.writeLong(this.fightForce); stream.writeLong(this.unionID); stream.writeUTF(this.unionName); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeLong(this.playerID); stream.writeUTF(this.name); stream.writeLong(this.userID); stream.writeUTF(this.uid); stream.writeUTF(this.platform); stream.writeInt(this.createAreaID); stream.writeInt(this.sourceGameID); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.type); stream.writeLong(this.playerID); stream.writeInt(this.force); stream.endWriteObj(); }