本文整理汇总了C#中PacketReader.ReadInt32方法的典型用法代码示例。如果您正苦于以下问题:C# PacketReader.ReadInt32方法的具体用法?C# PacketReader.ReadInt32怎么用?C# PacketReader.ReadInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PacketReader
的用法示例。
在下文中一共展示了PacketReader.ReadInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadPacket
public void ReadPacket(PacketReader reader)
{
UserID = reader.ReadInt64();
UserToken = reader.ReadString();
ClientMajorVersion = reader.ReadInt32();
ClientContentVersion = reader.ReadInt32();
ClientMinorVersion = reader.ReadInt32();
FingerprintHash = reader.ReadString();
Unknown1 = reader.ReadString();
OpenUDID = reader.ReadString();
MacAddress = reader.ReadString();
DeviceModel = reader.ReadString();
LocaleKey = reader.ReadInt32();
Language = reader.ReadString();
AdvertisingGUID = reader.ReadString();
OsVersion = reader.ReadString();
Unknown2 = (byte)reader.ReadByte();
Unknown3 = reader.ReadString();
AndroidDeviceID = reader.ReadString();
FacebookDistributionID = reader.ReadString();
IsAdvertisingTrackingEnabled = reader.ReadBoolean();
VendorGUID = reader.ReadString();
Seed = reader.ReadInt32();
}
示例2: ProcessCreateChar
public static void ProcessCreateChar(Client client, PacketReader packetReader)
{
var uid = packetReader.ReadMuid();
var index = packetReader.ReadInt32();
var name = packetReader.ReadString();
var sex = packetReader.ReadInt32();
var hair = packetReader.ReadInt32();
var face = packetReader.ReadInt32();
var costume = packetReader.ReadInt32();
var result = Results.Accepted;
if (uid != client.GetMuid() || index < 0 || index > 4 || sex < 0 || sex > 1)
{
client.Disconnect();
return;
}
if (!Globals.AcceptedString.IsMatch(name))
result = Results.CharacterEnterName;
else if (Globals.GunzDatabase.GetCharacterCount(client.ClientPlayer.PlayerAccount.AccountId) >= 4)
result = Results.CharacterNameNonExistant;
else if (Globals.GunzDatabase.CharacterExists(name))
result = Results.CharacterNameInUse;
else if (!Globals.GunzDatabase.CreateCharacter(client.ClientPlayer.PlayerAccount.AccountId, (byte)index, name, sex, hair, face, costume))
result = Results.CharacterInvalidName;
Match.ResponseCreateChar(client, result, name);
}
示例3: ReadCommand
public void ReadCommand(PacketReader reader)
{
X = reader.ReadInt32();
Y = reader.ReadInt32();
UnitID = reader.ReadInt32();
Unknown1 = reader.ReadInt32();
}
示例4: Read
public override void Read(PacketReader r)
{
Time = r.ReadInt32();
BulletId = r.ReadByte();
ObjectId = r.ReadInt32();
TargetId = r.ReadInt32();
}
示例5: ReadCommand
public void ReadCommand(PacketReader reader)
{
BuildingID = reader.ReadInt32();
Unknown1 = reader.ReadInt32();
Unknown2 = reader.ReadInt32();
Unknown3 = reader.ReadInt32();
}
示例6: ReadPacket
public void ReadPacket(PacketReader reader)
{
Unknown1 = reader.ReadBoolean();
Unknown2 = reader.ReadBoolean();
Unknown3 = reader.ReadInt32();
Unknown4 = reader.ReadInt32();
}
示例7: Read
public override void Read(PacketReader r)
{
AccountListId = r.ReadInt32();
AccountIds = new string[r.ReadUInt16()];
for (int i = 0; i < AccountIds.Length; i++)
AccountIds[i] = r.ReadString();
LockAction = r.ReadInt32();
}
示例8: Read
public override void Read(PacketReader r)
{
AccountId = r.ReadString();
CharId = r.ReadInt32();
Killer = r.ReadString();
obf0 = r.ReadInt32();
obf1 = r.ReadInt32();
}
示例9: ReadCommand
public void ReadCommand(PacketReader reader)
{
BuildingID = reader.ReadInt32();
Unknown1 = reader.ReadInt32();
CharacterID = reader.ReadInt32();
Count = reader.ReadInt32();
Unknown2 = reader.ReadInt32();
}
示例10: Read
public override void Read(PacketReader r)
{
AccountId = r.ReadString();
CharId = r.ReadInt32();
KilledBy = r.ReadString();
ZombieType = r.ReadInt32();
ZombieId = r.ReadInt32();
}
示例11: Read
public IDataObject Read(PacketReader r)
{
ItemItem = r.ReadInt32();
SlotType = r.ReadInt32();
Tradable = r.ReadBoolean();
Included = r.ReadBoolean();
return this;
}
示例12: Read
public override void Read(PacketReader r)
{
TickId = r.ReadInt32();
Time = r.ReadInt32();
NewPosition = (Location)new Location().Read(r);
Records = new LocationRecord[r.ReadInt16()];
for (int i = 0; i < Records.Length; i++)
Records[i] = (LocationRecord)new LocationRecord().Read(r);
}
示例13: Read
public override void Read(PacketReader r)
{
TickId = r.ReadInt32();
TickTime = r.ReadInt32();
Statuses = new Status[r.ReadInt16()];
for (int i = 0; i < Statuses.Length; i++)
Statuses[i] = (Status)new Status().Read(r);
}
示例14: Read
public IDataObject Read(PacketReader r)
{
Width = r.ReadInt32();
Height = r.ReadInt32();
Bytes = new byte[Width * Height * 4];
Bytes = r.ReadBytes(Bytes.Length);
return this;
}
示例15: ReadPacket
public override void ReadPacket(PacketReader reader)
{
base.ReadPacket(reader);
Badge = reader.ReadInt32();
Unknown3 = reader.ReadInt32();
Unknown4 = reader.ReadInt32();
EP = reader.ReadInt32();
Level = reader.ReadInt32();
}