Content

Content is a basic content construct.

Constructors

this
this(TypeId type)

Constructs content type from data.

this
this(TypeId type, string name)

Constructs content type from data.

this
this(ubyte[] data)

Constructs content type from data.

Members

Functions

Compile
ubyte[] Compile()

Returns an ubyte array of the compiled representation of the content.

Convert
void Convert(ubyte[] data)

Converts input bytes into this type of content.

TypeID
TypeId TypeID()

ubyte representation of the type.

Variables

Name
string Name;

The name of the content.

Type
ubyte Type;

The type id of the content file.

data
ubyte[] data;

<Protected> data is the byte data the content is made out of.

Meta