View on GitHub

IFTools

A collection of tools for Interactive Fiction

FrontispiceChunk

Namespace: Casasoft.IF.GBlorbLib

Represents a frontispice chunk in a GBlorb file.

public class FrontispiceChunk : Chunk, IChunk

Inheritance ObjectChunkFrontispiceChunk
Implements IChunk
Attributes NullableContextAttribute, NullableAttribute

Properties

ResourceNumber

Gets or sets the resource number of the frontispice.

public int ResourceNumber { get; set; }

Property Value

Int32

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

FrontispiceChunk()

Initializes a new instance of the FrontispiceChunk class with the default name “Fspc”.

public FrontispiceChunk()

FrontispiceChunk(Int32)

Initializes a new instance of the FrontispiceChunk class with the specified resource reference.

public FrontispiceChunk(int res)

Parameters

res Int32
The resource of the frontispice.

FrontispiceChunk(Byte[], Int32)

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

public FrontispiceChunk(Byte[] data, int offset)

Parameters

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

offset Int32
The offset within the byte array where the frontispice data starts.

Methods

ToString()

Returns a string that represents the current frontispice.

public string ToString()

Returns

String
A string that represents the current frontispice.

Export(String)

Exports the frontispice data to the specified file.

public void Export(string filename)

Parameters

filename String
The name of the file to export the frontispice data to.

Write(Byte[], Int32)

Writes the frontispice 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 frontispice data to.

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