本文整理汇总了C#中ICustomDataInput.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataInput.ReadDouble方法的具体用法?C# ICustomDataInput.ReadDouble怎么用?C# ICustomDataInput.ReadDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICustomDataInput
的用法示例。
在下文中一共展示了ICustomDataInput.ReadDouble方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(ICustomDataInput 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)");
}
示例2: Deserialize
public override void Deserialize(ICustomDataInput 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)");
}
示例3: Deserialize
public override void Deserialize(ICustomDataInput 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)");
}
示例4: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
id = reader.ReadVarUhShort();
if (id < 0)
throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
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)");
}
示例5: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
byte flag1 = reader.ReadByte();
sex = BooleanByteWrapper.GetFlag(flag1, 0);
isRideable = BooleanByteWrapper.GetFlag(flag1, 1);
isWild = BooleanByteWrapper.GetFlag(flag1, 2);
isFecondationReady = BooleanByteWrapper.GetFlag(flag1, 3);
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)");
model = reader.ReadVarUhInt();
if (model < 0)
throw new Exception("Forbidden value on model = " + model + ", it doesn't respect the following condition : model < 0");
var limit = reader.ReadUShort();
ancestor = new int[limit];
for (int i = 0; i < limit; i++)
{
(ancestor as int[])[i] = reader.ReadInt();
}
limit = reader.ReadUShort();
behaviors = new int[limit];
for (int i = 0; i < limit; i++)
{
(behaviors as int[])[i] = reader.ReadInt();
}
name = reader.ReadUTF();
ownerId = reader.ReadInt();
if (ownerId < 0)
throw new Exception("Forbidden value on ownerId = " + ownerId + ", it doesn't respect the following condition : ownerId < 0");
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)");
experienceForLevel = reader.ReadVarUhLong();
if ((experienceForLevel < 0) || (experienceForLevel > 9.007199254740992E15))
throw new Exception("Forbidden value on experienceForLevel = " + experienceForLevel + ", it doesn't respect the following condition : (experienceForLevel < 0) || (experienceForLevel > 9.007199254740992E15)");
experienceForNextLevel = reader.ReadDouble();
if ((experienceForNextLevel < -9.007199254740992E15) || (experienceForNextLevel > 9.007199254740992E15))
throw new Exception("Forbidden value on experienceForNextLevel = " + experienceForNextLevel + ", it doesn't respect the following condition : (experienceForNextLevel < -9.007199254740992E15) || (experienceForNextLevel > 9.007199254740992E15)");
level = reader.ReadSByte();
if (level < 0)
throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0");
maxPods = reader.ReadVarUhInt();
if (maxPods < 0)
throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0");
stamina = reader.ReadVarUhInt();
if (stamina < 0)
throw new Exception("Forbidden value on stamina = " + stamina + ", it doesn't respect the following condition : stamina < 0");
staminaMax = reader.ReadVarUhInt();
if (staminaMax < 0)
throw new Exception("Forbidden value on staminaMax = " + staminaMax + ", it doesn't respect the following condition : staminaMax < 0");
maturity = reader.ReadVarUhInt();
if (maturity < 0)
throw new Exception("Forbidden value on maturity = " + maturity + ", it doesn't respect the following condition : maturity < 0");
maturityForAdult = reader.ReadVarUhInt();
if (maturityForAdult < 0)
throw new Exception("Forbidden value on maturityForAdult = " + maturityForAdult + ", it doesn't respect the following condition : maturityForAdult < 0");
energy = reader.ReadVarUhInt();
if (energy < 0)
throw new Exception("Forbidden value on energy = " + energy + ", it doesn't respect the following condition : energy < 0");
energyMax = reader.ReadVarUhInt();
if (energyMax < 0)
throw new Exception("Forbidden value on energyMax = " + energyMax + ", it doesn't respect the following condition : energyMax < 0");
serenity = reader.ReadInt();
aggressivityMax = reader.ReadInt();
serenityMax = reader.ReadVarUhInt();
if (serenityMax < 0)
throw new Exception("Forbidden value on serenityMax = " + serenityMax + ", it doesn't respect the following condition : serenityMax < 0");
love = reader.ReadVarUhInt();
if (love < 0)
throw new Exception("Forbidden value on love = " + love + ", it doesn't respect the following condition : love < 0");
loveMax = reader.ReadVarUhInt();
if (loveMax < 0)
throw new Exception("Forbidden value on loveMax = " + loveMax + ", it doesn't respect the following condition : loveMax < 0");
fecondationTime = reader.ReadInt();
boostLimiter = reader.ReadInt();
if (boostLimiter < 0)
throw new Exception("Forbidden value on boostLimiter = " + boostLimiter + ", it doesn't respect the following condition : boostLimiter < 0");
boostMax = reader.ReadDouble();
if ((boostMax < -9.007199254740992E15) || (boostMax > 9.007199254740992E15))
throw new Exception("Forbidden value on boostMax = " + boostMax + ", it doesn't respect the following condition : (boostMax < -9.007199254740992E15) || (boostMax > 9.007199254740992E15)");
reproductionCount = reader.ReadInt();
reproductionCountMax = reader.ReadVarUhInt();
if (reproductionCountMax < 0)
throw new Exception("Forbidden value on reproductionCountMax = " + reproductionCountMax + ", it doesn't respect the following condition : reproductionCountMax < 0");
limit = reader.ReadUShort();
effectList = new Types.ObjectEffectInteger[limit];
for (int i = 0; i < limit; i++)
{
(effectList as Types.ObjectEffectInteger[])[i] = new Types.ObjectEffectInteger();
(effectList as Types.ObjectEffectInteger[])[i].Deserialize(reader);
}
}
示例6: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
byte flag1 = reader.ReadByte();
showExperience = BooleanByteWrapper.GetFlag(flag1, 0);
showExperienceLevelFloor = BooleanByteWrapper.GetFlag(flag1, 1);
showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(flag1, 2);
showExperienceFightDelta = BooleanByteWrapper.GetFlag(flag1, 3);
showExperienceForGuild = BooleanByteWrapper.GetFlag(flag1, 4);
showExperienceForMount = BooleanByteWrapper.GetFlag(flag1, 5);
isIncarnationExperience = BooleanByteWrapper.GetFlag(flag1, 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.ReadVarUhInt();
if (experienceForGuild < 0)
throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0");
experienceForMount = reader.ReadVarUhInt();
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");
}