本文整理汇总了C#中BlueSheep.Common.IO.BigEndianReader.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianReader.ReadDouble方法的具体用法?C# BigEndianReader.ReadDouble怎么用?C# BigEndianReader.ReadDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianReader
的用法示例。
在下文中一共展示了BigEndianReader.ReadDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(BigEndianReader reader)
{
id = reader.ReadDouble();
if (id < -9.007199254740992E15 || id > 9.007199254740992E15)
throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < -9.007199254740992E15 || id > 9.007199254740992E15");
time = reader.ReadDouble();
if (time < -9.007199254740992E15 || time > 9.007199254740992E15)
throw new Exception("Forbidden value on time = " + time + ", it doesn't respect the following condition : time < -9.007199254740992E15 || time > 9.007199254740992E15");
}
示例2: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
byte b= reader.ReadByte();
this.showExperience = BooleanByteWrapper.GetFlag(b,0);
this.showExperienceLevelFloor = BooleanByteWrapper.GetFlag(b, 1);
this.showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(b, 2);
this.showExperienceFightDelta = BooleanByteWrapper.GetFlag(b, 3);
this.showExperienceForGuild = BooleanByteWrapper.GetFlag(b, 4);
this.showExperienceForMount = BooleanByteWrapper.GetFlag(b, 5);
this.isIncarnationExperience = BooleanByteWrapper.GetFlag(b, 6);
experience = reader.ReadVarUhLong();
if (experience < 0 || experience > 9.007199254740992E15)
throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0 || experience > 9.007199254740992E15");
experienceLevelFloor = reader.ReadVarUhLong();
if (experienceLevelFloor < 0 || experienceLevelFloor > 9.007199254740992E15)
throw new Exception("Forbidden value on experienceLevelFloor = " + experienceLevelFloor + ", it doesn't respect the following condition : experienceLevelFloor < 0 || experienceLevelFloor > 9.007199254740992E15");
experienceNextLevelFloor = reader.ReadDouble();
if (experienceNextLevelFloor < 0 || experienceNextLevelFloor > 9.007199254740992E15)
throw new Exception("Forbidden value on experienceNextLevelFloor = " + experienceNextLevelFloor + ", it doesn't respect the following condition : experienceNextLevelFloor < 0 || experienceNextLevelFloor > 9.007199254740992E15");
experienceFightDelta = reader.ReadVarInt();
experienceForGuild = reader.ReadVarInt();
if (experienceForGuild < 0)
throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0");
experienceForMount = reader.ReadVarInt();
if (experienceForMount < 0)
throw new Exception("Forbidden value on experienceForMount = " + experienceForMount + ", it doesn't respect the following condition : experienceForMount < 0");
rerollExperienceMul = reader.ReadSByte();
if (rerollExperienceMul < 0)
throw new Exception("Forbidden value on rerollExperienceMul = " + rerollExperienceMul + ", it doesn't respect the following condition : rerollExperienceMul < 0");
}
示例3: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
autoconnect = BooleanByteWrapper.GetFlag(flag1, 0);
useCertificate = BooleanByteWrapper.GetFlag(flag1, 1);
useLoginToken = BooleanByteWrapper.GetFlag(flag1, 2);
version = new Types.VersionExtended();
version.Deserialize(reader);
lang = reader.ReadUTF();
var limit = reader.ReadVarInt();
credentials = new sbyte[limit];
for (int i = 0; i < limit; i++)
{
credentials[i] = reader.ReadSByte();
}
serverId = reader.ReadShort();
sessionOptionalSalt = reader.ReadDouble();
if (sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15)
throw new Exception("Forbidden value on sessionOptionalSalt = " + sessionOptionalSalt + ", it doesn't respect the following condition : sessionOptionalSalt < -9.007199254740992E15 || sessionOptionalSalt > 9.007199254740992E15");
ushort length = reader.ReadUShort();
failedAttempts = new List<short>();
for (int i = 0; i < length; i++)
{
failedAttempts.Add(reader.ReadVarShort());
}
}
示例4: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
value = reader.ReadDouble();
if (value < -9.007199254740992E15 || value > 9.007199254740992E15)
throw new Exception("Forbidden value on value = " + value + ", it doesn't respect the following condition : value < -9.007199254740992E15 || value > 9.007199254740992E15");
}
示例5: Deserialize
public override void Deserialize(BigEndianReader reader)
{
timestamp = reader.ReadDouble();
if (timestamp < 0 || timestamp > 9.007199254740992E15)
throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0 || timestamp > 9.007199254740992E15");
timezoneOffset = reader.ReadShort();
}
示例6: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
banEndDate = reader.ReadDouble();
if (banEndDate < 0 || banEndDate > 9.007199254740992E15)
throw new Exception("Forbidden value on banEndDate = " + banEndDate + ", it doesn't respect the following condition : banEndDate < 0 || banEndDate > 9.007199254740992E15");
}
示例7: Deserialize
public override void Deserialize(BigEndianReader reader)
{
collectorName = reader.ReadUTF();
worldX = reader.ReadShort();
if (worldX < -255 || worldX > 255)
throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
worldY = reader.ReadShort();
if (worldY < -255 || worldY > 255)
throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
mapId = reader.ReadInt();
subAreaId = reader.ReadVarShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
userName = reader.ReadUTF();
experience = reader.ReadDouble();
if (experience < -9.007199254740992E15 || experience > 9.007199254740992E15)
throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < -9.007199254740992E15 || experience > 9.007199254740992E15");
var limit = reader.ReadUShort();
objectsInfos = new Types.ObjectItemQuantity[limit];
for (int i = 0; i < limit; i++)
{
objectsInfos[i] = new Types.ObjectItemQuantity();
objectsInfos[i].Deserialize(reader);
}
}
示例8: Deserialize
public override void Deserialize(BigEndianReader reader)
{
name = reader.ReadUTF();
mountId = reader.ReadDouble();
if (mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15)
throw new Exception("Forbidden value on mountId = " + mountId + ", it doesn't respect the following condition : mountId < -9.007199254740992E15 || mountId > 9.007199254740992E15");
}
示例9: Deserialize
public override void Deserialize(BigEndianReader reader)
{
emoteId = reader.ReadByte();
if (emoteId < 0 || emoteId > 255)
throw new Exception("Forbidden value on emoteId = " + emoteId + ", it doesn't respect the following condition : emoteId < 0 || emoteId > 255");
emoteStartTime = reader.ReadDouble();
if (emoteStartTime < -9.007199254740992E15 || emoteStartTime > 9.007199254740992E15)
throw new Exception("Forbidden value on emoteStartTime = " + emoteStartTime + ", it doesn't respect the following condition : emoteStartTime < -9.007199254740992E15 || emoteStartTime > 9.007199254740992E15");
}
示例10: Deserialize
public override void Deserialize(BigEndianReader reader)
{
delayedCharacterId = reader.ReadInt();
delayTypeId = reader.ReadSByte();
if (delayTypeId < 0)
throw new Exception("Forbidden value on delayTypeId = " + delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0");
delayEndTime = reader.ReadDouble();
if (delayEndTime < 0 || delayEndTime > 9.007199254740992E15)
throw new Exception("Forbidden value on delayEndTime = " + delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9.007199254740992E15");
}
示例11: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
mountId = reader.ReadInt();
if (mountId < 0)
throw new Exception("Forbidden value on mountId = " + mountId + ", it doesn't respect the following condition : mountId < 0");
date = reader.ReadDouble();
if (date < -9.007199254740992E15 || date > 9.007199254740992E15)
throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : date < -9.007199254740992E15 || date > 9.007199254740992E15");
modelId = reader.ReadVarShort();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
}
示例12: Deserialize
public override void Deserialize(BigEndianReader reader)
{
rideId = reader.ReadDouble();
if (rideId < -9.007199254740992E15 || rideId > 9.007199254740992E15)
throw new Exception("Forbidden value on rideId = " + rideId + ", it doesn't respect the following condition : rideId < -9.007199254740992E15 || rideId > 9.007199254740992E15");
var limit = reader.ReadUShort();
boostToUpdateList = new Types.UpdateMountBoost[limit];
for (int i = 0; i < limit; i++)
{
boostToUpdateList[i] = Types.ProtocolTypeManager.GetInstance<Types.UpdateMountBoost>(reader.ReadShort());
boostToUpdateList[i].Deserialize(reader);
}
}
示例13: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
delayTypeId = reader.ReadSByte();
if (delayTypeId < 0)
throw new Exception("Forbidden value on delayTypeId = " + delayTypeId + ", it doesn't respect the following condition : delayTypeId < 0");
delayEndTime = reader.ReadDouble();
if (delayEndTime < 0 || delayEndTime > 9.007199254740992E15)
throw new Exception("Forbidden value on delayEndTime = " + delayEndTime + ", it doesn't respect the following condition : delayEndTime < 0 || delayEndTime > 9.007199254740992E15");
objectGID = reader.ReadVarShort();
if (objectGID < 0)
throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0");
}
示例14: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
hasRights = BooleanByteWrapper.GetFlag(flag1, 0);
wasAlreadyConnected = BooleanByteWrapper.GetFlag(flag1, 1);
login = reader.ReadUTF();
nickname = reader.ReadUTF();
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
communityId = reader.ReadSByte();
if (communityId < 0)
throw new Exception("Forbidden value on communityId = " + communityId + ", it doesn't respect the following condition : communityId < 0");
secretQuestion = reader.ReadUTF();
accountCreation = reader.ReadDouble();
if (accountCreation < 0 || accountCreation > 9.007199254740992E15)
throw new Exception("Forbidden value on accountCreation = " + accountCreation + ", it doesn't respect the following condition : accountCreation < 0 || accountCreation > 9.007199254740992E15");
subscriptionElapsedDuration = reader.ReadDouble();
if (subscriptionElapsedDuration < 0 || subscriptionElapsedDuration > 9.007199254740992E15)
throw new Exception("Forbidden value on subscriptionElapsedDuration = " + subscriptionElapsedDuration + ", it doesn't respect the following condition : subscriptionElapsedDuration < 0 || subscriptionElapsedDuration > 9.007199254740992E15");
subscriptionEndDate = reader.ReadDouble();
if (subscriptionEndDate < 0 || subscriptionEndDate > 9.007199254740992E15)
throw new Exception("Forbidden value on subscriptionEndDate = " + subscriptionEndDate + ", it doesn't respect the following condition : subscriptionEndDate < 0 || subscriptionEndDate > 9.007199254740992E15");
}
示例15: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
id = reader.ReadUShort();
if (id < 0 || id > 65535)
throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0 || id > 65535");
status = reader.ReadSByte();
if (status < 0)
throw new Exception("Forbidden value on status = " + status + ", it doesn't respect the following condition : status < 0");
completion = reader.ReadSByte();
if (completion < 0)
throw new Exception("Forbidden value on completion = " + completion + ", it doesn't respect the following condition : completion < 0");
isSelectable = reader.ReadBoolean();
charactersCount = reader.ReadSByte();
if (charactersCount < 0)
throw new Exception("Forbidden value on charactersCount = " + charactersCount + ", it doesn't respect the following condition : charactersCount < 0");
date = reader.ReadDouble();
if (date < -9.007199254740992E15 || date > 9.007199254740992E15)
throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : date < -9.007199254740992E15 || date > 9.007199254740992E15");
}