本文整理汇总了C#中System.IO.BinaryReader.ReadUInt32WithEndian方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReader.ReadUInt32WithEndian方法的具体用法?C# BinaryReader.ReadUInt32WithEndian怎么用?C# BinaryReader.ReadUInt32WithEndian使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.BinaryReader
的用法示例。
在下文中一共展示了BinaryReader.ReadUInt32WithEndian方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Decode
public override void Decode()
{
using (var br = new BinaryReader(new MemoryStream(GetData())))
{
m_vAccountId = br.ReadInt64WithEndian();
m_vPassToken = br.ReadScString();
m_vClientMajorVersion = br.ReadInt32WithEndian();
m_vClientContentVersion = br.ReadInt32WithEndian();
m_vClientBuild = br.ReadInt32WithEndian();
m_vResourceSha = br.ReadScString();
m_vUDID = br.ReadScString();
m_vOpenUDID = br.ReadScString();
m_vMacAddress = br.ReadScString();
m_vDevice = br.ReadScString();
br.ReadInt32WithEndian();//00 1E 84 81, readDataReference for m_vPreferredLanguage
m_vPreferredDeviceLanguage = br.ReadScString();
//unchecked
m_vPhoneId = br.ReadScString();
m_vGameVersion = br.ReadScString();
br.ReadByte();//01
br.ReadInt32WithEndian();//00 00 00 00
m_vSignature2 = br.ReadScString();
m_vSignature3 = br.ReadScString();
br.ReadByte();//01
m_vSignature4 = br.ReadScString();
m_vClientSeed = br.ReadUInt32WithEndian();
Debugger.WriteLine("[M] Client with user id " + m_vAccountId + " accessing with " + m_vDevice);
if(GetMessageVersion() >=7 )//7.200
{
br.ReadByte();
br.ReadUInt32WithEndian();
br.ReadUInt32WithEndian();
}
}
}
示例2: NewShopItemsSeenCommand
public NewShopItemsSeenCommand(BinaryReader br)
{
uint NewShopItemNumber = br.ReadUInt32WithEndian();
uint Unknown1 = br.ReadUInt32WithEndian();
uint Unknown2 = br.ReadUInt32WithEndian();
uint Unknown3 = br.ReadUInt32WithEndian();
}
示例3: ToggleAttackModeCommand
public ToggleAttackModeCommand(BinaryReader br)
{
BuildingId = br.ReadUInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadByte();
Unknown2 = br.ReadUInt32WithEndian();
Unknown3 = br.ReadUInt32WithEndian();
}
示例4: UpgradeUnitCommand
public UpgradeUnitCommand(BinaryReader br)
{
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
UnitData = (CombatItemData)br.ReadDataReference();//.ReadInt32WithEndian();
Unknown2 = br.ReadUInt32WithEndian();
}
示例5: DonateAllianceUnitCommand
public DonateAllianceUnitCommand(BinaryReader br)
{
Unknown1 = br.ReadUInt32WithEndian();
PlayerId = br.ReadUInt32WithEndian();
UnitType = br.ReadUInt32WithEndian();
Unknown2 = br.ReadUInt32WithEndian();
Unknown3 = br.ReadUInt32WithEndian();
}
示例6: TrainUnitCommand
public TrainUnitCommand(BinaryReader br)
{
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
UnitType = br.ReadInt32WithEndian();
Count = br.ReadInt32WithEndian();
Unknown3 = br.ReadUInt32WithEndian();
}
示例7: CancelUnitProductionCommand
public CancelUnitProductionCommand(BinaryReader br)
{
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
UnitType = br.ReadInt32WithEndian();
Count = br.ReadInt32WithEndian();
Unknown3 = br.ReadUInt32WithEndian();
Unknown4 = br.ReadUInt32WithEndian();
}
示例8: Decode
public override void Decode()
{
using (var br = new BinaryReader(new MemoryStream(GetData())))
{
Subtick = br.ReadUInt32WithEndian();
Checksum = br.ReadUInt32WithEndian();
NumberOfCommands = br.ReadUInt32WithEndian();
if (NumberOfCommands > 0)
{
NestedCommands = br.ReadBytes(GetLength());
}
}
}
示例9: Decode
public override void Decode()
{
using (var br = new BinaryReader(new MemoryStream(GetData())))
{
//Console.WriteLine(base.ToHexString());
Unknown1 = br.ReadUInt32WithEndian();
Unknown2 = br.ReadUInt32WithEndian();
NumberOfCommands = br.ReadUInt32WithEndian();
if (NumberOfCommands > 0)
{
m_vCommands = br.ReadBytes(GetLength() - 12);
}
}
}
示例10: RemoveUnitsCommand
public RemoveUnitsCommand(BinaryReader br)
{
Unknown1 = br.ReadUInt32WithEndian();
UnitTypesCount = br.ReadInt32WithEndian();
UnitsToRemove = new List<UnitToRemove>();
for (int i = 0; i < UnitTypesCount; i++)
{
CharacterData unit = (CharacterData)br.ReadDataReference();
int count = br.ReadInt32WithEndian();
int level = br.ReadInt32WithEndian();
UnitsToRemove.Add(new UnitToRemove() { Data = unit, Count = count, Level = level });
}
Unknown2 = br.ReadUInt32WithEndian();
}
示例11: BuyBuildingCommand
public BuyBuildingCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
BuildingId = br.ReadInt32WithEndian();
Unknown1 = br.ReadUInt32WithEndian();
}
示例12: CastSpellCommand
public CastSpellCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
Spell = (SpellData)br.ReadDataReference();
Unknown1 = br.ReadUInt32WithEndian();
}
示例13: BuyDecoCommand
public BuyDecoCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
DecoId = br.ReadInt32WithEndian();
Unknown1 = br.ReadUInt32WithEndian();
}
示例14: MoveBuildingCommand
public MoveBuildingCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
}
示例15: PlaceAttackerCommand
public PlaceAttackerCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
Unit = (CharacterData)br.ReadDataReference();
Unknown1 = br.ReadUInt32WithEndian();
}