View on GitHub

IFTools

A collection of tools for Interactive Fiction

ResourceEntry

Namespace: Casasoft.IF.GBlorbLib

Represents a resource entry in the GBlorb library.

public class ResourceEntry

Inheritance ObjectResourceEntry
Attributes NullableContextAttribute, NullableAttribute

Fields

Type

Gets or sets the type of the resource.

public string Type;

Number

Gets or sets the number of the resource.

public int Number;

Start

Gets or sets the start position of the resource.

public int Start;

Constructors

ResourceEntry()

Initializes a new instance of the ResourceEntry class with default values.

public ResourceEntry()

ResourceEntry(String)

Initializes a new instance of the ResourceEntry class with the specified type.

public ResourceEntry(string type)

Parameters

type String
The type of the resource.

ResourceEntry(Byte[], Int32)

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

public ResourceEntry(Byte[] data, int offset)

Parameters

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

offset Int32
The offset in the byte array where the resource data 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 entry 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 in the byte array where the data should be written.