Class Panorama
Namespace: ValveResourceFormat.ResourceTypes
Assembly: ValveResourceFormat.dll
Represents a Panorama UI resource.
public class Panorama : BlockInheritance
Derived
PanoramaDynamicImages, PanoramaLayout, PanoramaStyle
Inherited Members
Block.Type, Block.Offset, Block.Size, Block.Resource, Block.Read(BinaryReader), Block.ToString(), Block.WriteText(IndentedTextWriter), Block.Serialize(Stream)
Extension Methods
ResourceDataExtensions.AsKeyValueCollection(Block)
Constructors
Panorama()
Initializes a new instance of the Panorama class.
public Panorama()Panorama(byte[], List<ImageEntry>)
Initializes a new instance of the Panorama class with the given content. The Panorama.CRC32 checksum is computed from the data.
public Panorama(byte[] data, List<Panorama.ImageEntry> images)Parameters
data byte[]
The content as UTF-8 encoded text, such as layout, style, or script source.
images List<Panorama.ImageEntry>
The image entries to store in the block header.
Properties
CRC32
Gets the CRC32 checksum.
public uint CRC32 { get; }Property Value
uint
Data
Gets the raw data.
public byte[] Data { get; }Property Value
byte[]
Images
Gets the referenced images with their original dimensions.
public List<Panorama.ImageEntry> Images { get; }Property Value
Type
Gets the block type.
public override BlockType Type { get; }Property Value
Methods
Read(BinaryReader)
Reads the block data from a binary reader.
public override void Read(BinaryReader reader)Parameters
reader BinaryReader
The binary reader to read from.
Serialize(Stream)
Writes the block data in its binary form, as stored in a resource file. Blocks that do not support serialization throw NotImplementedException.
public override void Serialize(Stream stream)Parameters
stream Stream
The stream to write the block data to.
WriteText(IndentedTextWriter)
Writes a human readable text dump of the block contents. This is the output Block.ToString() returns.
public override void WriteText(IndentedTextWriter writer)Parameters
writer IndentedTextWriter
The writer that receives the text, which handles indentation.
Remarks
Outputs the Panorama data as UTF-8 encoded text.

