本文整理汇总了C#中System.Utils.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.ReadInt方法的具体用法?C# Utils.ReadInt怎么用?C# Utils.ReadInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Utils
的用法示例。
在下文中一共展示了Utils.ReadInt方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: deserialize
public static GameMapMovementRequestMessage deserialize(Utils.Objects.Packet sender)
{
List<int> path = new List<int>();
int nCells = sender.ReadShort();
for (int i = 0; i < nCells; ++i)
path.Add(sender.ReadCell());
return new GameMapMovementRequestMessage(path, sender.ReadInt());
}
示例2: deserialize
public static CharacterCreationRequestMessage deserialize(Utils.Objects.Packet packet)
{
string name = packet.ReadUTF();
Breed breed = (Breed)packet.ReadByte();
Gender gender = (Gender)packet.ReadByte();
int[] colors = new int[6];
for (int i = 0; i < 6; ++i)
colors[i] = packet.ReadInt();
return new CharacterCreationRequestMessage
(new object[]{
name, breed, gender, colors
});
}
示例3: deserialize
public static CharacterCreationRequestMessage deserialize(Utils.Objects.Packet packet)
{
string name = packet.ReadUTF();
Classe classe = (Classe)packet.ReadByte();
Sexe sexe = (Sexe)packet.ReadByte();
int[] colors = new int[6];
for (int i = 0; i < 6; ++i)
colors[i] = packet.ReadInt();
return new CharacterCreationRequestMessage
(
new Global.Character
(
name, classe, sexe, colors
)
);
}
示例4: deserialize
public static CharacterDeletionRequestMessage deserialize(Utils.Objects.Packet sender)
{
return new CharacterDeletionRequestMessage(sender.ReadInt(), sender.ReadUTF());
}
示例5: deserialize
public static BasicTimeMessage deserialize(Utils.Objects.Packet sender)
{
sender.ReadInt(); // timestamp
sender.ReadShort(); // timezoneOffset
return new BasicTimeMessage();
}
示例6: deserialize
public static ChangeMapMessage deserialize(Utils.Objects.Packet sender)
{
return new ChangeMapMessage(sender.ReadInt());
}
示例7: deserialize
public static PartyKickRequestMessage deserialize(Utils.Objects.Packet sender)
{
return new PartyKickRequestMessage(sender.ReadInt());
}
示例8: deserialize
public static CharacterSelectionMessage deserialize(Utils.Objects.Packet sender)
{
return new CharacterSelectionMessage(sender.ReadInt());
}
示例9: deserialize
public static PartyAbdicateThroneMessage deserialize(Utils.Objects.Packet sender)
{
return new PartyAbdicateThroneMessage(sender.ReadInt());
}