ObjectSheet

Implements a custom sprite sheet module with variable sprite sizes. Size should be ushort for TGA, and uint for PNG.

Constructors

this
this(ubyte[] source)

Serializes itself from a bytestream.

this
this(string _name, uint id)

Creates a new instance from scratch

Members

Functions

serialize
ubyte[] serialize()

Serializes itself to bytestream.

Properties

name
string name [@property getter]

Returns the name of the object

name
string name [@property setter]

Sets the name of the object if input's length is less or equal than 255

Static variables

IDENTIFIER_PNG
enum char[4] IDENTIFIER_PNG;

Identifier for PNG ancillary chunk

IDENTIFIER_TGA
enum ushort IDENTIFIER_TGA;

Identifier for TGA developer extension

Structs

Header
struct Header

Defines the header of an ObjectSheet in the bytestream

Index
struct Index(bool MemoryResident = true)

Defines a single index

Variables

_name
string _name;

Name with overflow protection

id
uint id;

ID of this sheet

objects
Index!(true)[] objects;

Stores each index as a separate entity.

Meta