本文整理匯總了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);
}
示例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();
}
示例3: ScenarioCreatureBlock
public ScenarioCreatureBlock(BinaryReader binaryReader)
{
this.type = binaryReader.ReadShortBlockIndex1();
this.name = binaryReader.ReadShortBlockIndex1();
this.objectData = new ScenarioObjectDatumStruct(binaryReader);
}
示例4: ScenarioClusterSoundEnvironmentsBlock
public ScenarioClusterSoundEnvironmentsBlock(BinaryReader binaryReader)
{
this.type = binaryReader.ReadShortBlockIndex1();
this.padding = binaryReader.ReadBytes(2);
}
示例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);
}
示例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);
}
}
}
}
示例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();
}
示例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();
}
示例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);
}
}
}
}
示例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);
}
示例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);
}
示例12: SquadGroupsBlock
public SquadGroupsBlock(BinaryReader binaryReader)
{
this.name = binaryReader.ReadString32();
this.parent = binaryReader.ReadShortBlockIndex1();
this.initialOrders = binaryReader.ReadShortBlockIndex1();
}
示例13: ScenarioDecalsBlock
public ScenarioDecalsBlock(BinaryReader binaryReader)
{
this.decalType = binaryReader.ReadShortBlockIndex1();
this.yaw127127 = binaryReader.ReadByte();
this.pitch127127 = binaryReader.ReadByte();
this.position = binaryReader.ReadVector3();
}
示例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);
}
示例15: ScenarioKillTriggerVolumesBlock
public ScenarioKillTriggerVolumesBlock(BinaryReader binaryReader)
{
this.triggerVolume = binaryReader.ReadShortBlockIndex1();
}