internal ShaderTemplateParameterBlockBase(BinaryReader binaryReader) { this.name = binaryReader.ReadStringID(); this.explanation = ReadData(binaryReader); this.type = (Type)binaryReader.ReadInt16(); this.flags = (Flags)binaryReader.ReadInt16(); this.defaultBitmap = binaryReader.ReadTagReference(); this.defaultConstValue = binaryReader.ReadSingle(); this.defaultConstColor = binaryReader.ReadColorR8G8B8(); this.bitmapType = (BitmapType)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.bitmapAnimationFlags = (BitmapAnimationFlags)binaryReader.ReadInt16(); this.invalidName_0 = binaryReader.ReadBytes(2); this.bitmapScale = binaryReader.ReadSingle(); }
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(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(1)); this.Type = ((TypeEnum)(binaryReader.ReadInt16())); this.ShaderTemplateParameterFlags = ((Flags)(binaryReader.ReadInt16())); this.DefaultBitmap = binaryReader.ReadTagReference(); this.DefaultConstValue = binaryReader.ReadSingle(); this.DefaultConstColor = binaryReader.ReadColorR8G8B8(); this.BitmapType = ((BitmapTypeEnum)(binaryReader.ReadInt16())); this.fieldpad = binaryReader.ReadBytes(2); this.ShaderTemplateParameterBitmapAnimationFlags = ((BitmapAnimationFlags)(binaryReader.ReadInt16())); this.fieldpad0 = binaryReader.ReadBytes(2); this.BitmapScale = binaryReader.ReadSingle(); return(pointerQueue); }