Moai SDK  1.5 revision 1 (MoaiEdition)
MOAITextBundle Class Reference

Inherits MOAILuaObject.

List of all members.

Function List

  load
  lookup

Function Documentation

Load a text bundle from a .mo file.


function load ( MOAITextBundle self, MOAIDataBuffer buffer )
Parameters:
self ( MOAITextBundle )
buffer ( MOAIDataBuffer ) A MOAIDataBuffer containing the text bundle.
Returns:
size ( number )
Note:

function load ( MOAITextBundle self, string filename )
Parameters:
self ( MOAITextBundle )
filename ( string ) The filename to load.
Returns:
size ( number )
Note:

Look up a string in the bundle (defaulting to the lookup string itself). In the case of defaulting, a false value is returned as the second value (useful for falling back to less-specific bundles if desirable).


function lookup ( MOAITextBundle self, string key )
Parameters:
self ( MOAITextBundle )
key ( string ) A text string to use as a "key"
Returns:
value ( string ), found ( boolean )