View on GitHub

IFTools

A collection of tools for Interactive Fiction

ResourceDescriptionIndex

Namespace: Casasoft.IF.GBlorbLib

Represents an index of resource descriptions within a chunk.

public class ResourceDescriptionIndex : Chunk, IChunk

Inheritance ObjectChunkResourceDescriptionIndex
Implements IChunk
Attributes NullableContextAttribute, NullableAttribute

Fields

TotalResourcesCount

Gets or sets the total number of resources.

public int TotalResourcesCount;

DescriptionsEntries

Gets or sets the list of resource description entries.

public List<ResourceDescriptionEntry> DescriptionsEntries;

Properties

Name

Gets or sets the name of the chunk.

public string Name { get; set; }

Property Value

String

Length

Gets or sets the length of the chunk.

public int Length { get; set; }

Property Value

Int32

Address

Gets or sets the address of the chunk.

public int Address { get; set; }

Property Value

Int32

ResourceID

Gets or sets the resource ID of the chunk.

public int ResourceID { get; set; }

Property Value

Int32

Constructors

ResourceDescriptionIndex()

Initializes a new instance of the ResourceDescriptionIndex class with a default name.

public ResourceDescriptionIndex()

ResourceDescriptionIndex(Byte[], Int32)

Initializes a new instance of the ResourceDescriptionIndex class with the specified data and offset.

public ResourceDescriptionIndex(Byte[] data, int offset)

Parameters

data Byte[]
The byte array containing the chunk data.

offset Int32
The offset within the byte array where the chunk starts.

Methods

ToString()

Returns a string that represents the current object.

public string ToString()

Returns

String
A string that represents the current object.

Write(Byte[], Int32)

Writes the resource description index data to the specified byte array at the given offset.

public void Write(Byte[] data, int offset)

Parameters

data Byte[]
The byte array to write the data to.

offset Int32
The offset within the byte array where the data should be written.