当前位置: 首页>>代码示例>>C#>>正文


C# BinaryReader.ReadInt32WithEndian方法代码示例

本文整理汇总了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();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:CastSpellCommand.cs

示例2: PlaceAttackerCommand

 public PlaceAttackerCommand(BinaryReader br)
 {
     X = br.ReadInt32WithEndian();
     Y = br.ReadInt32WithEndian();
     Unit = (CharacterData)br.ReadDataReference();
     Unknown1 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:PlaceAttackerCommand.cs

示例3: BuyTrapCommand

 public BuyTrapCommand(BinaryReader br)
 {
     X = br.ReadInt32WithEndian();
     Y = br.ReadInt32WithEndian();
     TrapId = br.ReadInt32WithEndian();
     Unknown1 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:BuyTrapCommand.cs

示例4: BuyBuildingCommand

 public BuyBuildingCommand(BinaryReader br)
 {
     X = br.ReadInt32WithEndian();
     Y = br.ReadInt32WithEndian();
     BuildingId = br.ReadInt32WithEndian();
     Unknown1 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:BuyBuildingCommand.cs

示例5: BuyDecoCommand

 public BuyDecoCommand(BinaryReader br)
 {
     X = br.ReadInt32WithEndian();
     Y = br.ReadInt32WithEndian();
     DecoId = br.ReadInt32WithEndian();
     Unknown1 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:BuyDecoCommand.cs

示例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();
         }
     }
 }
开发者ID:KaskidFoundations,项目名称:ucs,代码行数:35,代码来源:LoginMessage.cs

示例7: MoveBuildingCommand

 public MoveBuildingCommand(BinaryReader br)
 {
     X = br.ReadInt32WithEndian();
     Y = br.ReadInt32WithEndian();
     BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
     Unknown1 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:7,代码来源:MoveBuildingCommand.cs

示例8: TrainUnitCommand

 public TrainUnitCommand(BinaryReader br)
 {
     BuildingId = br.ReadInt32WithEndian(); //buildingId - 0x1DCD6500;
     Unknown1 = br.ReadUInt32WithEndian();
     UnitType = br.ReadInt32WithEndian();
     Count = br.ReadInt32WithEndian();
     Unknown3 = br.ReadUInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:8,代码来源:TrainUnitCommand.cs

示例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();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:9,代码来源:CancelUnitProductionCommand.cs

示例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;
     }
 }
开发者ID:BananaEmulator,项目名称:BananaEmu,代码行数:9,代码来源:BoostBuildingCommand.cs

示例11: JoinAllianceCommand

 public JoinAllianceCommand(BinaryReader br)
 {
     br.ReadInt64WithEndian();
     br.ReadScString();
     br.ReadInt32WithEndian();
     br.ReadByte();
     br.ReadInt32WithEndian();
     br.ReadInt32WithEndian();
     br.ReadInt32WithEndian();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:10,代码来源:JoinAllianceCommand.cs

示例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 
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:11,代码来源:BuyResourcesCommand.cs

示例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();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:12,代码来源:UpgradeMultipleBuildingsCommand.cs

示例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
     }
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:15,代码来源:CreateAllianceMessage.cs

示例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();
 }
开发者ID:0trebor0,项目名称:clash-of-warriors-server,代码行数:14,代码来源:MoveMultipleBuildingsCommand.cs


注:本文中的System.IO.BinaryReader.ReadInt32WithEndian方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。