/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); int partsLen = stream.readLen(); if (this.parts != null) { this.parts.clear(); this.parts.ensureCapacity(partsLen); } else { this.parts = new IntIntMap(partsLen); } IntIntMap partsT = this.parts; for (int partsI = partsLen - 1; partsI >= 0; --partsI) { int partsK; int partsV; partsK = stream.readInt(); partsV = stream.readInt(); partsT.put(partsK, partsV); } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); BaseData dataT = stream.readDataFullNotNull(); if (dataT != null) { if (dataT is RoleGroupSimpleData) { this.data = (RoleGroupSimpleData)dataT; } else { this.data = new RoleGroupSimpleData(); if (!(dataT.GetType().IsAssignableFrom(typeof(RoleGroupSimpleData)))) { stream.throwTypeReadError(typeof(RoleGroupSimpleData), dataT.GetType()); } this.data.shadowCopy(dataT); } } else { this.data = null; } this.time = stream.readLong(); this.result = stream.readInt(); this.disableTime = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.code = stream.readInt(); int argsLen = stream.readLen(); if (this.args == null || this.args.Length != argsLen) { this.args = new string[argsLen]; } string[] argsT = this.args; for (int argsI = 0; argsI < argsLen; ++argsI) { string argsV; argsV = stream.readUTF(); argsT[argsI] = argsV; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.way = stream.readInt(); int dicLen = stream.readLen(); if (this.dic != null) { this.dic.clear(); this.dic.ensureCapacity(dicLen); } else { this.dic = new IntIntMap(dicLen); } IntIntMap dicT = this.dic; for (int dicI = dicLen - 1; dicI >= 0; --dicI) { int dicK; int dicV; dicK = stream.readInt(); dicV = stream.readInt(); dicT.put(dicK, dicV); } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData preInfoT = stream.readDataFullNotNull(); if (preInfoT != null) { if (preInfoT is ScenePreInfoData) { this.preInfo = (ScenePreInfoData)preInfoT; } else { this.preInfo = new ScenePreInfoData(); if (!(preInfoT.GetType().IsAssignableFrom(typeof(ScenePreInfoData)))) { stream.throwTypeReadError(typeof(ScenePreInfoData), preInfoT.GetType()); } this.preInfo.shadowCopy(preInfoT); } } else { this.preInfo = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); BaseData locationT = stream.readDataFullNotNull(); if (locationT != null) { if (locationT is SceneLocationData) { this.location = (SceneLocationData)locationT; } else { this.location = new SceneLocationData(); if (!(locationT.GetType().IsAssignableFrom(typeof(SceneLocationData)))) { stream.throwTypeReadError(typeof(SceneLocationData), locationT.GetType()); } this.location.shadowCopy(locationT); } } else { this.location = null; } this.posID = stream.readInt(); this.useCache = stream.readBoolean(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); BaseData dataT = stream.readDataFullNotNull(); if (dataT != null) { if (dataT is ClientLoginResultData) { this.data = (ClientLoginResultData)dataT; } else { this.data = new ClientLoginResultData(); if (!(dataT.GetType().IsAssignableFrom(typeof(ClientLoginResultData)))) { stream.throwTypeReadError(typeof(ClientLoginResultData), dataT.GetType()); } this.data.shadowCopy(dataT); } } else { this.data = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.instanceID = stream.readInt(); int attributesLen = stream.readLen(); if (this.attributes != null) { this.attributes.clear(); this.attributes.ensureCapacity(attributesLen); } else { this.attributes = new IntIntMap(attributesLen); } IntIntMap attributesT = this.attributes; for (int attributesI = attributesLen - 1; attributesI >= 0; --attributesI) { int attributesK; int attributesV; attributesK = stream.readInt(); attributesV = stream.readInt(); attributesT.put(attributesK, attributesV); } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.way = stream.readInt(); this.index = stream.readInt(); BaseData itemT = stream.readDataFullNotNull(); if (itemT != null) { if (itemT is ItemData) { this.item = (ItemData)itemT; } else { this.item = new ItemData(); if (!(itemT.GetType().IsAssignableFrom(typeof(ItemData)))) { stream.throwTypeReadError(typeof(ItemData), itemT.GetType()); } this.item.shadowCopy(itemT); } } else { this.item = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); int itemPriceDicLen = stream.readLen(); if (this.itemPriceDic != null) { this.itemPriceDic.clear(); this.itemPriceDic.ensureCapacity(itemPriceDicLen); } else { this.itemPriceDic = new IntIntMap(itemPriceDicLen); } IntIntMap itemPriceDicT = this.itemPriceDic; for (int itemPriceDicI = itemPriceDicLen - 1; itemPriceDicI >= 0; --itemPriceDicI) { int itemPriceDicK; int itemPriceDicV; itemPriceDicK = stream.readInt(); itemPriceDicV = stream.readInt(); itemPriceDicT.put(itemPriceDicK, itemPriceDicV); } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); this.queryPlayerID = stream.readLong(); this.queryType = stream.readInt(); if (stream.readBoolean()) { int queryArgsLen = stream.readLen(); if (this.queryArgs == null || this.queryArgs.Length != queryArgsLen) { this.queryArgs = new int[queryArgsLen]; } int[] queryArgsT = this.queryArgs; for (int queryArgsI = 0; queryArgsI < queryArgsLen; ++queryArgsI) { int queryArgsV; queryArgsV = stream.readInt(); queryArgsT[queryArgsI] = queryArgsV; } } else { this.queryArgs = null; } this.isSuccess = stream.readBoolean(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData enterDataT = stream.readDataFullNotNull(); if (enterDataT != null) { if (enterDataT is SceneEnterData) { this.enterData = (SceneEnterData)enterDataT; } else { this.enterData = new SceneEnterData(); if (!(enterDataT.GetType().IsAssignableFrom(typeof(SceneEnterData)))) { stream.throwTypeReadError(typeof(SceneEnterData), enterDataT.GetType()); } this.enterData.shadowCopy(enterDataT); } } else { this.enterData = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData dataT = stream.readDataFullNotNull(); if (dataT != null) { if (dataT is PlayerApplyRoleGroupData) { this.data = (PlayerApplyRoleGroupData)dataT; } else { this.data = new PlayerApplyRoleGroupData(); if (!(dataT.GetType().IsAssignableFrom(typeof(PlayerApplyRoleGroupData)))) { stream.throwTypeReadError(typeof(PlayerApplyRoleGroupData), dataT.GetType()); } this.data.shadowCopy(dataT); } } else { this.data = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); int cdsLen = stream.readLen(); if (this.cds != null) { this.cds.clear(); this.cds.ensureCapacity(cdsLen); } else { this.cds = new SList <CDData>(); } SList <CDData> cdsT = this.cds; for (int cdsI = cdsLen - 1; cdsI >= 0; --cdsI) { CDData cdsV; cdsV = (CDData)stream.createData(CDData.dataID); cdsV.readBytesFull(stream); cdsT.add(cdsV); } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.type = stream.readInt(); this.dir = (DirData)stream.createData(DirData.dataID); this.dir.readBytesFull(stream); if (stream.readBoolean()) { this.realMoveDir = (DirData)stream.createData(DirData.dataID); this.realMoveDir.readBytesFull(stream); } else { this.realMoveDir = null; } this.realMoveSpeedRatio = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData chatDataT = stream.readDataFullNotNull(); if (chatDataT != null) { if (chatDataT is RoleChatData) { this.chatData = (RoleChatData)chatDataT; } else { this.chatData = new RoleChatData(); if (!(chatDataT.GetType().IsAssignableFrom(typeof(RoleChatData)))) { stream.throwTypeReadError(typeof(RoleChatData), chatDataT.GetType()); } this.chatData.shadowCopy(chatDataT); } } else { this.chatData = null; } this.channel = stream.readInt(); this.key = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); BaseData showDataT = stream.readDataFullNotNull(); if (showDataT != null) { if (showDataT is RoleShowData) { this.showData = (RoleShowData)showDataT; } else { this.showData = new RoleShowData(); if (!(showDataT.GetType().IsAssignableFrom(typeof(RoleShowData)))) { stream.throwTypeReadError(typeof(RoleShowData), showDataT.GetType()); } this.showData.shadowCopy(showDataT); } } else { this.showData = null; } this.value = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData buffT = stream.readDataFullNotNull(); if (buffT != null) { if (buffT is BuffData) { this.buff = (BuffData)buffT; } else { this.buff = new BuffData(); if (!(buffT.GetType().IsAssignableFrom(typeof(BuffData)))) { stream.throwTypeReadError(typeof(BuffData), buffT.GetType()); } this.buff.shadowCopy(buffT); } } else { this.buff = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); this.playerID = stream.readLong(); BaseData socialDataT = stream.readDataFullNotNull(); if (socialDataT != null) { if (socialDataT is RoleSocialData) { this.socialData = (RoleSocialData)socialDataT; } else { this.socialData = new RoleSocialData(); if (!(socialDataT.GetType().IsAssignableFrom(typeof(RoleSocialData)))) { stream.throwTypeReadError(typeof(RoleSocialData), socialDataT.GetType()); } this.socialData.shadowCopy(socialDataT); } } else { this.socialData = null; } this.title = stream.readInt(); this.joinTime = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); this.key = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); this.mainStep = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); BaseData identityT = stream.readDataFullNotNull(); if (identityT != null) { if (identityT is UnitIdentityData) { this.identity = (UnitIdentityData)identityT; } else { this.identity = new UnitIdentityData(); if (!(identityT.GetType().IsAssignableFrom(typeof(UnitIdentityData)))) { stream.throwTypeReadError(typeof(UnitIdentityData), identityT.GetType()); } this.identity.shadowCopy(identityT); } } else { this.identity = null; } if (stream.readBoolean()) { BaseData avatarT = stream.readDataFullNotNull(); if (avatarT != null) { if (avatarT is UnitAvatarData) { this.avatar = (UnitAvatarData)avatarT; } else { this.avatar = new UnitAvatarData(); if (!(avatarT.GetType().IsAssignableFrom(typeof(UnitAvatarData)))) { stream.throwTypeReadError(typeof(UnitAvatarData), avatarT.GetType()); } this.avatar.shadowCopy(avatarT); } } else { this.avatar = null; } } else { this.avatar = null; } stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); int itemsLen = stream.readLen(); if (this.items != null) { this.items.clear(); this.items.ensureCapacity(itemsLen); } else { this.items = new IntObjectMap <ItemData>(itemsLen); } IntObjectMap <ItemData> itemsT = this.items; for (int itemsI = itemsLen - 1; itemsI >= 0; --itemsI) { int itemsK; ItemData itemsV; itemsK = stream.readInt(); BaseData itemsVT = stream.readDataFullNotNull(); if (itemsVT != null) { if (itemsVT is ItemData) { itemsV = (ItemData)itemsVT; } else { itemsV = new ItemData(); if (!(itemsVT.GetType().IsAssignableFrom(typeof(ItemData)))) { stream.throwTypeReadError(typeof(ItemData), itemsVT.GetType()); } itemsV.shadowCopy(itemsVT); } } else { itemsV = null; } itemsT.put(itemsK, itemsV); } this.serverItemIndex = stream.readInt(); this.clientItemIndex = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { stream.startReadObj(); this.keep = (KeepSaveData)stream.createData(KeepSaveData.dataID); this.keep.readBytesFull(stream); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); BaseData roleT = stream.readDataFullNotNull(); if (roleT != null) { if (roleT is RoleSimpleShowData) { this.role = (RoleSimpleShowData)roleT; } else { this.role = new RoleSimpleShowData(); if (!(roleT.GetType().IsAssignableFrom(typeof(RoleSimpleShowData)))) { stream.throwTypeReadError(typeof(RoleSimpleShowData), roleT.GetType()); } this.role.shadowCopy(roleT); } } else { this.role = null; } BaseData itemT = stream.readDataFullNotNull(); if (itemT != null) { if (itemT is ItemData) { this.item = (ItemData)itemT; } else { this.item = new ItemData(); if (!(itemT.GetType().IsAssignableFrom(typeof(ItemData)))) { stream.throwTypeReadError(typeof(ItemData), itemT.GetType()); } this.item.shadowCopy(itemT); } } else { this.item = null; } this.price = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.targetID = stream.readInt(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.playerID = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.nextDailyTime = stream.readLong(); stream.endReadObj(); }
/// <summary> /// 读取字节流(完整版) /// </summary> protected override void toReadBytesFull(BytesReadStream stream) { base.toReadBytesFull(stream); stream.startReadObj(); this.lastReceiveIndex = stream.readInt(); stream.endReadObj(); }