internal ScenarioSceneryDatumStructV4BlockBase(BinaryReader binaryReader) { this.pathfindingPolicy = (PathfindingPolicy)binaryReader.ReadInt16(); this.lightmappingPolicy = (LightmappingPolicy)binaryReader.ReadInt16(); this.pathfindingReferences = ReadPathfindingObjectIndexListBlockArray(binaryReader); this.invalidName_ = binaryReader.ReadBytes(2); this.validMultiplayerGames = (ValidMultiplayerGames)binaryReader.ReadInt16(); }
internal SceneryBlockBase(BinaryReader binaryReader) : base(binaryReader) { this.pathfindingPolicy = (PathfindingPolicy)binaryReader.ReadInt16( ); this.flags = (Flags)binaryReader.ReadInt16( ); this.lightmappingPolicy = (LightmappingPolicy)binaryReader.ReadInt16( ); this.invalidName_ = binaryReader.ReadBytes(2); }
internal StructureBspInstancedGeometryInstancesBlockBase(BinaryReader binaryReader) { this.scale = binaryReader.ReadSingle(); this.forward = binaryReader.ReadVector3(); this.left = binaryReader.ReadVector3(); this.up = binaryReader.ReadVector3(); this.position = binaryReader.ReadVector3(); this.instanceDefinition = binaryReader.ReadShortBlockIndex1(); this.flags = (Flags)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(4); this.invalidName_0 = binaryReader.ReadBytes(12); this.invalidName_1 = binaryReader.ReadBytes(4); this.checksum = binaryReader.ReadInt32(); this.name = binaryReader.ReadStringID(); this.pathfindingPolicy = (PathfindingPolicy)binaryReader.ReadInt16(); this.lightmappingPolicy = (LightmappingPolicy)binaryReader.ReadInt16(); }
public ScenarioSceneryDatumStructV4(BinaryReader binaryReader) { this.pathfindingPolicy = (PathfindingPolicy)binaryReader.ReadInt16(); this.lightmappingPolicy = (LightmappingPolicy)binaryReader.ReadInt16(); { var count = binaryReader.ReadInt32(); var address = binaryReader.ReadInt32(); var elementSize = Marshal.SizeOf(typeof(PathfindingObjectIndexListBlock)); this.pathfindingReferences = new PathfindingObjectIndexListBlock[count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < count; ++i) { binaryReader.BaseStream.Position = address + i * elementSize; this.pathfindingReferences[i] = new PathfindingObjectIndexListBlock(binaryReader); } } } this.padding = binaryReader.ReadBytes(2); this.validMultiplayerGames = (ValidMultiplayerGames)binaryReader.ReadInt16(); }
public StructureBspInstancedGeometryInstancesBlock(BinaryReader binaryReader) { this.scale = binaryReader.ReadSingle(); this.forward = binaryReader.ReadVector3(); this.left = binaryReader.ReadVector3(); this.up = binaryReader.ReadVector3(); this.position = binaryReader.ReadVector3(); this.instanceDefinition = binaryReader.ReadShortBlockIndex1(); this.flags = (Flags)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(4); this.skip0 = binaryReader.ReadBytes(12); this.skip1 = binaryReader.ReadBytes(4); this.checksum = binaryReader.ReadInt32(); this.name = binaryReader.ReadStringID(); this.pathfindingPolicy = (PathfindingPolicy)binaryReader.ReadInt16(); this.lightmappingPolicy = (LightmappingPolicy)binaryReader.ReadInt16(); }