Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IDictionary

The IDictionary resource object interface.

A binary resource stores one or more individual text objects.


Table members

Methods


RegisterGlobally()

Check if the contained text objects should be registered globally with the containing package.

Boolean RegisterGlobally()

Returns
Boolean true if texts should be accessible from package scope.

GetNumberOfTexts()

Get the number of text objects contained in this resource.

Integer GetNumberOfTexts()

Returns
Integer The number of text objects.

GetText(index)

Get the text object at a given index.

Murl.Resource.IText GetText(Integer index)

Parameters
indexThe index in the range from 0 to GetNumberOfTexts()-1.
Returns
Murl.Resource.IText The text object, or null if index is out of range.

GetText(id)

Get the text object with a given id.

Murl.Resource.IText GetText(String id)

Parameters
idThe text ID to search for.
Returns
Murl.Resource.IText The text object, or null if the given ID was not found.