本文整理汇总了C#中ICustomDataInput.ReadBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataInput.ReadBoolean方法的具体用法?C# ICustomDataInput.ReadBoolean怎么用?C# ICustomDataInput.ReadBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICustomDataInput
的用法示例。
在下文中一共展示了ICustomDataInput.ReadBoolean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
alignmentRank = reader.ReadSByte();
if (alignmentRank < 0)
throw new Exception("Forbidden value on alignmentRank = " + alignmentRank + ", it doesn't respect the following condition : alignmentRank < 0");
verbose = reader.ReadBoolean();
}
示例2: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
fightId = reader.ReadInt();
fightType = reader.ReadSByte();
if (fightType < 0)
throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
fightStart = reader.ReadInt();
if (fightStart < 0)
throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
fightSpectatorLocked = reader.ReadBoolean();
var limit = reader.ReadUShort();
fightTeams = new Types.FightTeamLightInformations[limit];
for (int i = 0; i < limit; i++)
{
(fightTeams as Types.FightTeamLightInformations[])[i] = new Types.FightTeamLightInformations();
(fightTeams as Types.FightTeamLightInformations[])[i].Deserialize(reader);
}
limit = reader.ReadUShort();
fightTeamsOptions = new Types.FightOptionsInformations[limit];
for (int i = 0; i < limit; i++)
{
(fightTeamsOptions as Types.FightOptionsInformations[])[i] = new Types.FightOptionsInformations();
(fightTeamsOptions as Types.FightOptionsInformations[])[i].Deserialize(reader);
}
}
示例3: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
subAreaId = reader.ReadVarUhShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
join = reader.ReadBoolean();
}
示例4: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
characterId = reader.ReadVarUhInt();
if (characterId < 0)
throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0");
isReady = reader.ReadBoolean();
}
示例5: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
modelId = reader.ReadVarUhInt();
if (modelId < 0)
throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
ownerName = reader.ReadUTF();
ownerConnected = reader.ReadBoolean();
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)");
subAreaId = reader.ReadVarUhShort();
if (subAreaId < 0)
throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
nbRoom = reader.ReadSByte();
nbChest = reader.ReadSByte();
var limit = reader.ReadUShort();
skillListIds = new int[limit];
for (int i = 0; i < limit; i++)
{
(skillListIds as int[])[i] = reader.ReadInt();
}
isLocked = reader.ReadBoolean();
price = reader.ReadVarUhInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
}
示例6: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
enable = reader.ReadBoolean();
rights = reader.ReadVarUhInt();
if (rights < 0)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
}
示例7: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
price = reader.ReadVarUhInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
locked = reader.ReadBoolean();
}
示例8: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
deadOrAlive = reader.ReadBoolean();
basicInfos = new Types.TaxCollectorBasicInformations();
basicInfos.Deserialize(reader);
guild = new Types.BasicGuildInformations();
guild.Deserialize(reader);
}
示例9: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
guildInfo = new Types.GuildInformations();
guildInfo.Deserialize(reader);
memberRights = reader.ReadVarUhInt();
if (memberRights < 0)
throw new Exception("Forbidden value on memberRights = " + memberRights + ", it doesn't respect the following condition : memberRights < 0");
enabled = reader.ReadBoolean();
}
示例10: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
buyOrSell = reader.ReadBoolean();
purchasableId = reader.ReadVarUhInt();
if (purchasableId < 0)
throw new Exception("Forbidden value on purchasableId = " + purchasableId + ", it doesn't respect the following condition : purchasableId < 0");
price = reader.ReadVarUhInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
}
示例11: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
houseId = reader.ReadVarUhInt();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
bought = reader.ReadBoolean();
realPrice = reader.ReadVarUhInt();
if (realPrice < 0)
throw new Exception("Forbidden value on realPrice = " + realPrice + ", it doesn't respect the following condition : realPrice < 0");
}
示例12: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
dungeonId = reader.ReadVarUhShort();
if (dungeonId < 0)
throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0");
buddyId = reader.ReadVarUhInt();
if (buddyId < 0)
throw new Exception("Forbidden value on buddyId = " + buddyId + ", it doesn't respect the following condition : buddyId < 0");
accept = reader.ReadBoolean();
}
示例13: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
targetId = reader.ReadInt();
destinationCellId = reader.ReadShort();
if ((destinationCellId < -1) || (destinationCellId > 559))
throw new Exception("Forbidden value on destinationCellId = " + destinationCellId + ", it doesn't respect the following condition : (destinationCellId < -1) || (destinationCellId > 559)");
critical = reader.ReadSByte();
if (critical < 0)
throw new Exception("Forbidden value on critical = " + critical + ", it doesn't respect the following condition : critical < 0");
silentCast = reader.ReadBoolean();
}
示例14: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
playerId = reader.ReadVarUhInt();
if (playerId < 0)
throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
playerName = reader.ReadUTF();
breed = reader.ReadSByte();
if ((breed < (byte)Enums.PlayableBreedEnum.Feca) || (breed > (byte)Enums.PlayableBreedEnum.Eliotrope))
throw new Exception("Forbidden value on breed = " + breed + ", it doesn't respect the following condition : (breed < (byte)Enums.PlayableBreedEnum.Feca) || (breed > (byte)Enums.PlayableBreedEnum.Eliotrope)");
sex = reader.ReadBoolean();
}
示例15: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
restrictions = new Types.ActorRestrictionsInformations();
restrictions.Deserialize(reader);
sex = reader.ReadBoolean();
var limit = reader.ReadUShort();
options = new Types.HumanOption[limit];
for (int i = 0; i < limit; i++)
{
(options as Types.HumanOption[])[i] = Types.ProtocolTypeManager.GetInstance<Types.HumanOption>(reader.ReadShort());
(options as Types.HumanOption[])[i].Deserialize(reader);
}
}