示例#1
0
 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.Signature           = binaryReader.ReadTagClass();
     this.Width               = binaryReader.ReadInt16();
     this.Height              = binaryReader.ReadInt16();
     this.Depth               = binaryReader.ReadByte();
     this.BitmapDataMoreFlags = ((MoreFlags)(binaryReader.ReadByte()));
     this.Type                  = ((TypeEnum)(binaryReader.ReadInt16()));
     this.Format                = ((FormatEnum)(binaryReader.ReadInt16()));
     this.BitmapDataFlags       = ((Flags)(binaryReader.ReadInt16()));
     this.RegistrationPoint     = binaryReader.ReadPoint();
     this.MipmapCount           = binaryReader.ReadInt16();
     this.LowDetailMipmapCount  = binaryReader.ReadInt16();
     this.PixelsOffset          = binaryReader.ReadInt32();
     this.LOD1TextureDataOffset = binaryReader.ReadInt32();
     this.LOD2TextureDataOffset = binaryReader.ReadInt32();
     this.LOD3TextureDataOffset = binaryReader.ReadInt32();
     this.fieldskip             = binaryReader.ReadBytes(12);
     this.LOD1TextureDataLength = binaryReader.ReadInt32();
     this.LOD2TextureDataLength = binaryReader.ReadInt32();
     this.LOD3TextureDataLength = binaryReader.ReadInt32();
     this.fieldskip0            = binaryReader.ReadBytes(52);
     return(pointerQueue);
 }
 internal DontUseMeScenarioEnvironmentObjectBlockBase(BinaryReader binaryReader)
 {
     this.bSP                 = binaryReader.ReadShortBlockIndex1();
     this.eMPTYSTRING         = binaryReader.ReadInt16();
     this.uniqueID            = binaryReader.ReadInt32();
     this.invalidName_        = binaryReader.ReadBytes(4);
     this.objectDefinitionTag = binaryReader.ReadTagClass();
     this._object             = binaryReader.ReadInt32();
     this.invalidName_0       = binaryReader.ReadBytes(44);
 }
示例#3
0
 internal StructureBspEnvironmentObjectBlockBase(BinaryReader binaryReader)
 {
     this.name               = binaryReader.ReadString32();
     this.rotation           = binaryReader.ReadQuaternion();
     this.translation        = binaryReader.ReadVector3();
     this.paletteIndex       = binaryReader.ReadShortBlockIndex1();
     this.invalidName_       = binaryReader.ReadBytes(2);
     this.uniqueID           = binaryReader.ReadInt32();
     this.exportedObjectType = binaryReader.ReadTagClass();
     this.scenarioObjectName = binaryReader.ReadString32();
 }
示例#4
0
 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.BSP                 = binaryReader.ReadShortBlockIndex1();
     this.EMPTYSTRING         = binaryReader.ReadInt16();
     this.UniqueID            = binaryReader.ReadInt32();
     this.fieldpad            = binaryReader.ReadBytes(4);
     this.ObjectDefinitionTag = binaryReader.ReadTagClass();
     this.Object              = binaryReader.ReadInt32();
     this.fieldpad0           = binaryReader.ReadBytes(44);
     return(pointerQueue);
 }
示例#5
0
 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.Name               = binaryReader.ReadString32();
     this.Rotation           = binaryReader.ReadQuaternion();
     this.Translation        = binaryReader.ReadVector3();
     this.PaletteIndex       = binaryReader.ReadShortBlockIndex1();
     this.fieldpad           = binaryReader.ReadBytes(2);
     this.UniqueID           = binaryReader.ReadInt32();
     this.ExportedObjectType = binaryReader.ReadTagClass();
     this.ScenarioObjectName = binaryReader.ReadString32();
     return(pointerQueue);
 }
 internal BitmapDataBlockBase(BinaryReader binaryReader)
 {
     this.signature             = binaryReader.ReadTagClass();
     this.widthPixels           = binaryReader.ReadInt16();
     this.heightPixels          = binaryReader.ReadInt16();
     this.depthPixels           = binaryReader.ReadByte();
     this.moreFlags             = (MoreFlags)binaryReader.ReadByte();
     this.type                  = (TypeDeterminesBitmapGeometry)binaryReader.ReadInt16();
     this.format                = (FormatDeterminesHowPixelsAreRepresentedInternally)binaryReader.ReadInt16();
     this.flags                 = (Flags)binaryReader.ReadInt16();
     this.registrationPoint     = binaryReader.ReadPoint();
     this.mipmapCount           = binaryReader.ReadInt16();
     this.lowDetailMipmapCount  = binaryReader.ReadInt16();
     this.pixelsOffset          = binaryReader.ReadInt32();
     this.lOD1TextureDataOffset = binaryReader.ReadInt32();
     this.lOD2TextureDataOffset = binaryReader.ReadInt32();
     this.lOD3TextureDataOffset = binaryReader.ReadInt32();
     this.invalidName_          = binaryReader.ReadBytes(12);
     this.lOD1TextureDataLength = binaryReader.ReadInt32();
     this.lOD2TextureDataLength = binaryReader.ReadInt32();
     this.lOD3TextureDataLength = binaryReader.ReadInt32();
     this.invalidName_0         = binaryReader.ReadBytes(52);
 }
示例#7
0
 public TagReference(TagClass tagClass, TagIdent tagID)
 {
     Class = tagClass;
     Ident = tagID;
 }
示例#8
0
 public TagReferenceAttribute(string tagClassString)
 {
     referenceClass = new TagClass(Encoding.UTF8.GetBytes(tagClassString));
 }
示例#9
0
 public TagReference(TagClass tagClass, TagIdent tagID)
 {
     this.Class = tagClass;
     this.Ident = tagID;
 }
示例#10
0
 public TagClassAttribute(string tagClass)
 {
     TagClass = (TagClass)tagClass;
 }