本文整理汇总了C#中System.IO.BinaryReader.ReadInt32WithEndian方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReader.ReadInt32WithEndian方法的具体用法?C# BinaryReader.ReadInt32WithEndian怎么用?C# BinaryReader.ReadInt32WithEndian使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.BinaryReader
的用法示例。
在下文中一共展示了BinaryReader.ReadInt32WithEndian方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CastSpellCommand
public CastSpellCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
Spell = (SpellData)br.ReadDataReference();
Unknown1 = br.ReadUInt32WithEndian();
}
示例2: PlaceAttackerCommand
public PlaceAttackerCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
Unit = (CharacterData)br.ReadDataReference();
Unknown1 = br.ReadUInt32WithEndian();
}
示例3: BuyTrapCommand
public BuyTrapCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
TrapId = br.ReadInt32WithEndian();
Unknown1 = br.ReadUInt32WithEndian();
}
示例4: BuyBuildingCommand
public BuyBuildingCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
BuildingId = br.ReadInt32WithEndian();
Unknown1 = br.ReadUInt32WithEndian();
}
示例5: BuyDecoCommand
public BuyDecoCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
DecoId = br.ReadInt32WithEndian();
Unknown1 = br.ReadUInt32WithEndian();
}
示例6: 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();
}
}
}
示例7: MoveBuildingCommand
public MoveBuildingCommand(BinaryReader br)
{
X = br.ReadInt32WithEndian();
Y = br.ReadInt32WithEndian();
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
}
示例8: TrainUnitCommand
public TrainUnitCommand(BinaryReader br)
{
BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
Unknown1 = br.ReadUInt32WithEndian();
UnitType = br.ReadInt32WithEndian();
Count = br.ReadInt32WithEndian();
Unknown3 = br.ReadUInt32WithEndian();
}
示例9: 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();
}
示例10: BoostBuildingCommand
public BoostBuildingCommand(BinaryReader br)
{
BuildingIds = new List<int>();
BoostedBuildingsCount = br.ReadInt32WithEndian();
for (int i = 0; i < BoostedBuildingsCount; i++)
{
BuildingIds.Add(br.ReadInt32WithEndian()); //buildingId - 0x1DCD6500;
}
}
示例11: JoinAllianceCommand
public JoinAllianceCommand(BinaryReader br)
{
br.ReadInt64WithEndian();
br.ReadScString();
br.ReadInt32WithEndian();
br.ReadByte();
br.ReadInt32WithEndian();
br.ReadInt32WithEndian();
br.ReadInt32WithEndian();
}
示例12: BuyResourcesCommand
public BuyResourcesCommand(BinaryReader br)
{
m_vResourceId = br.ReadInt32WithEndian();
m_vResourceCount = br.ReadInt32WithEndian();
m_vIsCommandEmbedded = br.ReadByte();
if (m_vIsCommandEmbedded >= 0x01)
{
m_vCommand = CommandFactory.Read(br);
}
br.ReadInt32WithEndian();//Unknown1
}
示例13: UpgradeMultipleBuildingsCommand
public UpgradeMultipleBuildingsCommand(BinaryReader br)
{
m_vIsAltResource = br.ReadByte();
m_vBuildingIdList = new List<int>();
int buildingCount = br.ReadInt32WithEndian();
for (int i = 0; i < buildingCount; i++)
{
int buildingId = br.ReadInt32WithEndian();//= buildingId - 0x1DCD6500;
m_vBuildingIdList.Add(buildingId);
}
br.ReadInt32WithEndian();
}
示例14: Decode
//00 00 00 04 6E 61 6D 65 00 00 00 0B 64 65 73 63 72 69 70 74 69 6F 6E 5B 00 02 52 00 00 00 01 00 00 07 D0 00 00 00 02 01 E8 48 39
//00 00 00 04 6E 61 6D 65 00 00 00 0B 64 65 73 63 72 69 70 74 69 6F 6E 00 00 00 00 00 00 00 02 00 00 07 D0 00 00 00 02 01 E8 48 3A
public override void Decode()
{
using (var br = new BinaryReader(new MemoryStream(GetData())))
{
m_vAllianceName = br.ReadScString(); //6E 61 6D 65
m_vAllianceDescription = br.ReadScString();//64 65 73 63 72 69 70 74 69 6F 6E
m_vAllianceBadgeData = br.ReadInt32WithEndian();//5B 00 02 52
m_vAllianceType = br.ReadInt32WithEndian();//00 00 00 01
m_vRequiredScore = br.ReadInt32WithEndian();//00 00 07 D0
m_vWarFrequency = br.ReadInt32WithEndian();//00 00 00 02
m_vAllianceOrigin = br.ReadInt32WithEndian();//01 E8 48 39
}
}
示例15: MoveMultipleBuildingsCommand
public MoveMultipleBuildingsCommand(BinaryReader br)
{
m_vBuildingsToMove = new List<BuildingToMove>();
int buildingCount = br.ReadInt32WithEndian();
for (int i = 0; i < buildingCount; i++)
{
var buildingToMove = new BuildingToMove();
buildingToMove.X = br.ReadInt32WithEndian();
buildingToMove.Y = br.ReadInt32WithEndian();
buildingToMove.GameObjectId = br.ReadInt32WithEndian();
m_vBuildingsToMove.Add(buildingToMove);
}
br.ReadInt32WithEndian();
}