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


C# BinaryReader.ReadShortBlockIndex1方法代码示例

本文整理汇总了C#中System.IO.BinaryReader.ReadShortBlockIndex1方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryReader.ReadShortBlockIndex1方法的具体用法?C# BinaryReader.ReadShortBlockIndex1怎么用?C# BinaryReader.ReadShortBlockIndex1使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.IO.BinaryReader的用法示例。


在下文中一共展示了BinaryReader.ReadShortBlockIndex1方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ScenarioTriggerVolumeBlock

 public ScenarioTriggerVolumeBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadStringID();
     this.objectName = binaryReader.ReadShortBlockIndex1();
     this.skip = binaryReader.ReadBytes(2);
     this.nodeName = binaryReader.ReadStringID();
     this.eMPTYSTRING = new EMPTYSTRING[6];
     for (int i = 0; i < 6; ++i)
     {
         this.eMPTYSTRING[i] = new EMPTYSTRING(binaryReader);
     }
     this.position = binaryReader.ReadVector3();
     this.extents = binaryReader.ReadVector3();
     this.padding0 = binaryReader.ReadBytes(4);
     this.killTriggerVolume = binaryReader.ReadShortBlockIndex1();
     this.padding1 = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:17,代码来源:Scenario.cs

示例2: DecoratorGroupBlock

 public DecoratorGroupBlock(BinaryReader binaryReader)
 {
     this.decoratorSet = binaryReader.ReadByteBlockIndex1();
     this.decoratorType = (DecoratorType)binaryReader.ReadByte();
     this.shaderIndex = binaryReader.ReadByte();
     this.compressedRadius = binaryReader.ReadByte();
     this.cluster = binaryReader.ReadInt16();
     this.cacheBlock = binaryReader.ReadShortBlockIndex1();
     this.decoratorStartIndex = binaryReader.ReadInt16();
     this.decoratorCount = binaryReader.ReadInt16();
     this.vertexStartOffset = binaryReader.ReadInt16();
     this.vertexCount = binaryReader.ReadInt16();
     this.indexStartOffset = binaryReader.ReadInt16();
     this.indexCount = binaryReader.ReadInt16();
     this.compressedBoundingCenter = binaryReader.ReadInt32();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:16,代码来源:Scenario.cs

示例3: ScenarioCreatureBlock

 public ScenarioCreatureBlock(BinaryReader binaryReader)
 {
     this.type = binaryReader.ReadShortBlockIndex1();
     this.name = binaryReader.ReadShortBlockIndex1();
     this.objectData = new ScenarioObjectDatumStruct(binaryReader);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:6,代码来源:Scenario.cs

示例4: ScenarioClusterSoundEnvironmentsBlock

 public ScenarioClusterSoundEnvironmentsBlock(BinaryReader binaryReader)
 {
     this.type = binaryReader.ReadShortBlockIndex1();
     this.padding = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:5,代码来源:Scenario.cs

示例5: ScenarioCrateBlock

 public ScenarioCrateBlock(BinaryReader binaryReader)
 {
     this.type = binaryReader.ReadShortBlockIndex1();
     this.name = binaryReader.ReadShortBlockIndex1();
     this.objectData = new ScenarioObjectDatumStruct(binaryReader);
     this.paddingindexer = binaryReader.ReadBytes(4);
     this.permutationData = new ScenarioObjectPermutationStruct(binaryReader);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:8,代码来源:Scenario.cs

示例6: OrderEndingBlock

 public OrderEndingBlock(BinaryReader binaryReader)
 {
     this.nextOrder = binaryReader.ReadShortBlockIndex1();
     this.combinationRule = (CombinationRule)binaryReader.ReadInt16();
     this.delayTime = binaryReader.ReadSingle();
     this.dialogueTypeWhenThisEndingIsTriggeredLaunchADialogueEventOfTheGivenType = (DialogueTypeWhenThisEndingIsTriggeredLaunchADialogueEventOfTheGivenType)binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(TriggerReferences));
         this.triggers = new TriggerReferences[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.triggers[i] = new TriggerReferences(binaryReader);
             }
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:22,代码来源:Scenario.cs

示例7: OrderCompletionCondition

 public OrderCompletionCondition(BinaryReader binaryReader)
 {
     this.ruleType = (RuleType)binaryReader.ReadInt16();
     this.squad = binaryReader.ReadShortBlockIndex1();
     this.squadGroup = binaryReader.ReadShortBlockIndex1();
     this.a = binaryReader.ReadInt16();
     this.x = binaryReader.ReadSingle();
     this.triggerVolume = binaryReader.ReadShortBlockIndex1();
     this.padding = binaryReader.ReadBytes(2);
     this.exitConditionScript = binaryReader.ReadString32();
     this.invalidName_0 = binaryReader.ReadInt16();
     this.padding1 = binaryReader.ReadBytes(2);
     this.flags = (Flags)binaryReader.ReadInt32();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:14,代码来源:Scenario.cs

示例8: FiringPositionsBlock

 public FiringPositionsBlock(BinaryReader binaryReader)
 {
     this.positionLocal = binaryReader.ReadVector3();
     this.referenceFrame = binaryReader.ReadInt16();
     this.flags = (Flags)binaryReader.ReadInt16();
     this.area = binaryReader.ReadShortBlockIndex1();
     this.clusterIndex = binaryReader.ReadInt16();
     this.skip = binaryReader.ReadBytes(4);
     this.normal = binaryReader.ReadVector2();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:10,代码来源:Scenario.cs

示例9: ZoneBlock

 public ZoneBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.flags = (Flags)binaryReader.ReadInt32();
     this.manualBsp = binaryReader.ReadShortBlockIndex1();
     this.padding = binaryReader.ReadBytes(2);
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(FiringPositionsBlock));
         this.firingPositions = new FiringPositionsBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.firingPositions[i] = new FiringPositionsBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(AreasBlock));
         this.areas = new AreasBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.areas[i] = new AreasBlock(binaryReader);
             }
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:35,代码来源:Scenario.cs

示例10: ActorStartingLocationsBlock

 public ActorStartingLocationsBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadStringID();
     this.position = binaryReader.ReadVector3();
     this.referenceFrame = binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     this.facingYawPitchDegrees = binaryReader.ReadVector2();
     this.flags = (Flags)binaryReader.ReadInt32();
     this.characterType = binaryReader.ReadShortBlockIndex1();
     this.initialWeapon = binaryReader.ReadShortBlockIndex1();
     this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1();
     this.padding0 = binaryReader.ReadBytes(2);
     this.vehicleType = binaryReader.ReadShortBlockIndex1();
     this.seatType = (SeatType)binaryReader.ReadInt16();
     this.grenadeType = (GrenadeType)binaryReader.ReadInt16();
     this.swarmCountNumberOfCreturesInSwarmIfASwarmIsSpawnedAtThisLocation = binaryReader.ReadInt16();
     this.actorVariantName = binaryReader.ReadStringID();
     this.vehicleVariantName = binaryReader.ReadStringID();
     this.initialMovementDistanceBeforeDoingAnythingElseTheActorWillTravelTheGivenDistanceInItsForwardDirection = binaryReader.ReadSingle();
     this.emitterVehicle = binaryReader.ReadShortBlockIndex1();
     this.initialMovementMode = (InitialMovementMode)binaryReader.ReadInt16();
     this.placementScript = binaryReader.ReadString32();
     this.skip1 = binaryReader.ReadBytes(2);
     this.padding2 = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:25,代码来源:Scenario.cs

示例11: SquadsBlock

 public SquadsBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.flags = (Flags)binaryReader.ReadInt32();
     this.team = (Team)binaryReader.ReadInt16();
     this.parent = binaryReader.ReadShortBlockIndex1();
     this.squadDelayTimeSeconds = binaryReader.ReadSingle();
     this.normalDiffCountInitialNumberOfActorsOnNormalDifficulty = binaryReader.ReadInt16();
     this.insaneDiffCountInitialNumberOfActorsOnInsaneDifficultyHardDifficultyIsMidwayBetweenNormalAndInsane = binaryReader.ReadInt16();
     this.majorUpgrade = (MajorUpgrade)binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     this.vehicleType = binaryReader.ReadShortBlockIndex1();
     this.characterType = binaryReader.ReadShortBlockIndex1();
     this.initialZone = binaryReader.ReadShortBlockIndex1();
     this.padding0 = binaryReader.ReadBytes(2);
     this.initialWeapon = binaryReader.ReadShortBlockIndex1();
     this.initialSecondaryWeapon = binaryReader.ReadShortBlockIndex1();
     this.grenadeType = (GrenadeType)binaryReader.ReadInt16();
     this.initialOrder = binaryReader.ReadShortBlockIndex1();
     this.vehicleVariant = binaryReader.ReadStringID();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ActorStartingLocationsBlock));
         this.startingLocations = new ActorStartingLocationsBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.startingLocations[i] = new ActorStartingLocationsBlock(binaryReader);
             }
         }
     }
     this.placementScript = binaryReader.ReadString32();
     this.skip1 = binaryReader.ReadBytes(2);
     this.padding2 = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:38,代码来源:Scenario.cs

示例12: SquadGroupsBlock

 public SquadGroupsBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.parent = binaryReader.ReadShortBlockIndex1();
     this.initialOrders = binaryReader.ReadShortBlockIndex1();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:6,代码来源:Scenario.cs

示例13: ScenarioDecalsBlock

 public ScenarioDecalsBlock(BinaryReader binaryReader)
 {
     this.decalType = binaryReader.ReadShortBlockIndex1();
     this.yaw127127 = binaryReader.ReadByte();
     this.pitch127127 = binaryReader.ReadByte();
     this.position = binaryReader.ReadVector3();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:7,代码来源:Scenario.cs

示例14: ScenarioBspSwitchTriggerVolumeBlock

 public ScenarioBspSwitchTriggerVolumeBlock(BinaryReader binaryReader)
 {
     this.triggerVolume = binaryReader.ReadShortBlockIndex1();
     this.source = binaryReader.ReadInt16();
     this.destination = binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     this.padding0 = binaryReader.ReadBytes(2);
     this.padding1 = binaryReader.ReadBytes(2);
     this.padding2 = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:10,代码来源:Scenario.cs

示例15: ScenarioKillTriggerVolumesBlock

 public ScenarioKillTriggerVolumesBlock(BinaryReader binaryReader)
 {
     this.triggerVolume = binaryReader.ReadShortBlockIndex1();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:4,代码来源:Scenario.cs


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