Beispiel #1
0
 internal ScenarioObjectDatumStructBlockBase(BinaryReader binaryReader)
 {
     this.placementFlags = (PlacementFlags)binaryReader.ReadInt32();
     this.position       = binaryReader.ReadVector3();
     this.rotation       = binaryReader.ReadVector3();
     this.scale          = binaryReader.ReadSingle();
     this.transformFlags = (TransformFlags)binaryReader.ReadInt16();
     this.manualBSPFlags = binaryReader.ReadBlockFlags16();
     this.objectID       = new ScenarioObjectIdStructBlock(binaryReader);
     this.bSPPolicy      = (BSPPolicy)binaryReader.ReadByte();
     this.invalidName_   = binaryReader.ReadBytes(1);
     this.editorFolder   = binaryReader.ReadShortBlockIndex1();
 }
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.ScenarioObjectDatumStructPlacementFlags = ((PlacementFlags)(binaryReader.ReadInt32()));
     this.Position = binaryReader.ReadVector3();
     this.Rotation = binaryReader.ReadVector3();
     this.Scale    = binaryReader.ReadSingle();
     this.ScenarioObjectDatumStructTransformFlags = ((TransformFlags)(binaryReader.ReadInt16()));
     this.ManualBSPFlags = binaryReader.ReadBlockFlags16();
     pointerQueue        = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.ObjectID.ReadFields(binaryReader)));
     this.BSPPolicy      = ((BSPPolicyEnum)(binaryReader.ReadByte()));
     this.fieldpad       = binaryReader.ReadBytes(1);
     this.EditorFolder   = binaryReader.ReadShortBlockIndex1();
     return(pointerQueue);
 }
 public static void Write(this BinaryWriter binaryWriter, BlockFlags16 value)
 {
     binaryWriter.Write((byte)value.Type);
     binaryWriter.Write((byte)value.Source);
 }
 public static void Write(this BinaryWriter binaryWriter, BlockFlags16 value)
 {
     binaryWriter.Write(value.flags);
 }