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.ReadStringID();
     this.NodeListChecksum              = binaryReader.ReadInt32();
     this.ProductionChecksum            = binaryReader.ReadInt32();
     this.ImportChecksum                = binaryReader.ReadInt32();
     this.Type                          = ((TypeEnum)(binaryReader.ReadByte()));
     this.FrameInfoType                 = ((FrameInfoTypeEnum)(binaryReader.ReadByte()));
     this.BlendScreen                   = binaryReader.ReadByteBlockIndex1();
     this.NodeCount                     = binaryReader.ReadByte();
     this.FrameCount                    = binaryReader.ReadInt16();
     this.AnimationPoolInternalFlags    = ((InternalFlags)(binaryReader.ReadByte()));
     this.AnimationPoolProductionFlags  = ((ProductionFlags)(binaryReader.ReadByte()));
     this.AnimationPoolPlaybackFlags    = ((PlaybackFlags)(binaryReader.ReadInt16()));
     this.DesiredCompression            = ((DesiredCompressionEnum)(binaryReader.ReadByte()));
     this.CurrentCompression            = ((CurrentCompressionEnum)(binaryReader.ReadByte()));
     this.Weight                        = binaryReader.ReadSingle();
     this.ParentGraphIndex              = binaryReader.ReadInt32();
     this.ParentGraphBlockIndex         = binaryReader.ReadInt32();
     this.ParentGraphBlockOffset        = binaryReader.ReadInt32();
     this.ParentGraphStartingPointIndex = binaryReader.ReadInt16();
     this.LoopFrameIndex                = binaryReader.ReadInt16();
     this.ParentAnimation               = binaryReader.ReadShortBlockIndex1();
     this.NextAnimation                 = binaryReader.ReadShortBlockIndex1();
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(1));
     pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(pointerQueue.Concat(this.DataSizes.ReadFields(binaryReader)));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(8));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(28));
     return(pointerQueue);
 }
Esempio n. 2
0
 internal DecoratorProjectedDecalBlockBase(BinaryReader binaryReader)
 {
     this.decoratorSet         = binaryReader.ReadByteBlockIndex1();
     this.decoratorClass       = binaryReader.ReadByte();
     this.decoratorPermutation = binaryReader.ReadByte();
     this.spriteIndex          = binaryReader.ReadByte();
     this.position             = binaryReader.ReadVector3();
     this.left             = binaryReader.ReadVector3();
     this.up               = binaryReader.ReadVector3();
     this.extents          = binaryReader.ReadVector3();
     this.previousPosition = binaryReader.ReadVector3();
 }
Esempio n. 3
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.DecoratorSet         = binaryReader.ReadByteBlockIndex1();
     this.DecoratorClass       = binaryReader.ReadByte();
     this.DecoratorPermutation = binaryReader.ReadByte();
     this.SpriteIndex          = binaryReader.ReadByte();
     this.Position             = binaryReader.ReadVector3();
     this.Left             = binaryReader.ReadVector3();
     this.Up               = binaryReader.ReadVector3();
     this.Extents          = binaryReader.ReadVector3();
     this.PreviousPosition = binaryReader.ReadVector3();
     return(pointerQueue);
 }
 internal DecoratorGroupBlockBase(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();
 }
 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.DecoratorSet             = binaryReader.ReadByteBlockIndex1();
     this.DecoratorType            = ((DecoratorTypeEnum)(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();
     return(pointerQueue);
 }
Esempio n. 6
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.ReadStringID();
     this.Shader   = binaryReader.ReadByteBlockIndex1();
     this.fieldpad = binaryReader.ReadBytes(3);
     this.DecoratorPermutationsFlags = ((Flags)(binaryReader.ReadByte()));
     this.FadeDistance           = ((FadeDistanceEnum)(binaryReader.ReadByte()));
     this.Index                  = binaryReader.ReadByte();
     this.DistributionWeight     = binaryReader.ReadByte();
     this.Scale                  = binaryReader.ReadRange();
     this.Tint1                  = binaryReader.ReadColourR1G1B1();
     this.fieldpad0              = binaryReader.ReadBytes(1);
     this.Tint2                  = binaryReader.ReadColourR1G1B1();
     this.fieldpad1              = binaryReader.ReadBytes(1);
     this.BaseMapTintPercentage  = binaryReader.ReadSingle();
     this.LightmapTintPercentage = binaryReader.ReadSingle();
     this.WindScale              = binaryReader.ReadSingle();
     return(pointerQueue);
 }
 public static void Write(this BinaryWriter binaryWriter, ByteBlockIndex1 value)
 {
     binaryWriter.Write((byte)value);
 }