本文整理汇总了C#中BlueSheep.Common.IO.BigEndianReader.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianReader.ReadInt方法的具体用法?C# BigEndianReader.ReadInt怎么用?C# BigEndianReader.ReadInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianReader
的用法示例。
在下文中一共展示了BigEndianReader.ReadInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
var limit = reader.ReadUShort();
charactersToRecolor = new Types.CharacterToRecolorInformation[limit];
for (int i = 0; i < limit; i++)
{
charactersToRecolor[i] = new Types.CharacterToRecolorInformation();
charactersToRecolor[i].Deserialize(reader);
}
limit = reader.ReadUShort();
charactersToRename = new int[limit];
for (int i = 0; i < limit; i++)
{
charactersToRename[i] = reader.ReadInt();
}
limit = reader.ReadUShort();
unusableCharacters = new int[limit];
for (int i = 0; i < limit; i++)
{
unusableCharacters[i] = reader.ReadInt();
}
limit = reader.ReadUShort();
charactersToRelook = new Types.CharacterToRelookInformation[limit];
for (int i = 0; i < limit; i++)
{
charactersToRelook[i] = new Types.CharacterToRelookInformation();
charactersToRelook[i].Deserialize(reader);
}
}
示例2: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
markAuthorId = reader.ReadInt();
markTeamId = reader.ReadSByte();
if (markTeamId < 0)
throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0");
markSpellId = reader.ReadInt();
if (markSpellId < 0)
throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0");
markSpellLevel = reader.ReadSByte();
if (markSpellLevel < 1 || markSpellLevel > 6)
throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : markSpellLevel < 1 || markSpellLevel > 6");
markId = reader.ReadShort();
markType = reader.ReadSByte();
markimpactCell = reader.ReadShort();
if (markimpactCell < -1 || markimpactCell > 559)
throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : markimpactCell < -1 || markimpactCell > 559");
var limit = reader.ReadUShort();
cells = new Types.GameActionMarkedCell[limit];
for (int i = 0; i < limit; i++)
{
cells[i] = new Types.GameActionMarkedCell();
cells[i].Deserialize(reader);
}
active = reader.ReadBoolean();
}
示例3: Deserialize
public virtual void Deserialize(BigEndianReader 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[i] = new Types.FightTeamLightInformations();
fightTeams[i].Deserialize(reader);
}
limit = reader.ReadUShort();
fightTeamsOptions = new Types.FightOptionsInformations[limit];
for (int i = 0; i < limit; i++)
{
fightTeamsOptions[i] = new Types.FightOptionsInformations();
fightTeamsOptions[i].Deserialize(reader);
}
}
示例4: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
arg1 = reader.ReadInt();
arg2 = reader.ReadInt();
arg3 = reader.ReadInt();
delay = reader.ReadShort();
}
示例5: Deserialize
public override void Deserialize(BigEndianReader reader)
{
fightType = reader.ReadSByte();
if (fightType < 0)
throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
attackerId = reader.ReadInt();
defenderId = reader.ReadInt();
}
示例6: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
timeLeftBeforeFight = reader.ReadInt();
waitTimeForPlacement = reader.ReadInt();
nbPositionForDefensors = reader.ReadSByte();
if (nbPositionForDefensors < 0)
throw new Exception("Forbidden value on nbPositionForDefensors = " + nbPositionForDefensors + ", it doesn't respect the following condition : nbPositionForDefensors < 0");
}
示例7: Deserialize
public override void Deserialize(BigEndianReader reader)
{
fightId = reader.ReadInt();
sourceId = reader.ReadVarInt();
if (sourceId < 0)
throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < 0");
targetId = reader.ReadInt();
}
示例8: Deserialize
public override void Deserialize(BigEndianReader reader)
{
npcId = reader.ReadInt();
npcActionId = reader.ReadSByte();
if (npcActionId < 0)
throw new Exception("Forbidden value on npcActionId = " + npcActionId + ", it doesn't respect the following condition : npcActionId < 0");
npcMapId = reader.ReadInt();
}
示例9: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
actorId = reader.ReadInt();
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
}
示例10: Deserialize
public override void Deserialize(BigEndianReader reader)
{
rideId = reader.ReadInt();
value = reader.ReadInt();
type = reader.ReadSByte();
if (type < 0)
throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
}
示例11: Deserialize
public override void Deserialize(BigEndianReader reader)
{
actionId = reader.ReadInt();
if (actionId < 0)
throw new Exception("Forbidden value on actionId = " + actionId + ", it doesn't respect the following condition : actionId < 0");
characterId = reader.ReadInt();
if (characterId < 0)
throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0");
}
示例12: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
senderId = reader.ReadInt();
senderName = reader.ReadUTF();
senderAccountId = reader.ReadInt();
if (senderAccountId < 0)
throw new Exception("Forbidden value on senderAccountId = " + senderAccountId + ", it doesn't respect the following condition : senderAccountId < 0");
}
示例13: Init
// Methods
internal override void Init(BigEndianReader Reader, int MapVersion)
{
this.SoundId = Reader.ReadInt();
this.BaseVolume = Reader.ReadShort();
this.FullVolumeDistance = Reader.ReadInt();
this.NullVolumeDistance = Reader.ReadInt();
this.MinDelayBetweenLoops = Reader.ReadShort();
this.MaxDelayBetweenLoops = Reader.ReadShort();
}
示例14: Deserialize
public override void Deserialize(BigEndianReader reader)
{
requiredVersion = reader.ReadInt();
if (requiredVersion < 0)
throw new Exception("Forbidden value on requiredVersion = " + requiredVersion + ", it doesn't respect the following condition : requiredVersion < 0");
currentVersion = reader.ReadInt();
if (currentVersion < 0)
throw new Exception("Forbidden value on currentVersion = " + currentVersion + ", it doesn't respect the following condition : currentVersion < 0");
}
示例15: Deserialize
public override void Deserialize(BigEndianReader reader)
{
entityId = reader.ReadInt();
smileyId = reader.ReadSByte();
if (smileyId < 0)
throw new Exception("Forbidden value on smileyId = " + smileyId + ", it doesn't respect the following condition : smileyId < 0");
accountId = reader.ReadInt();
if (accountId < 0)
throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
}