Conditions XLua Conditions

Condition Subgroups

The main conditions of interest in XLua are the triggered events that signal errors, print requests, or function invocations.

On Error

Triggered Event

Runs when an error is reported either by the object, or by the lua code being run.

Parameters

None.

On Print

Triggered Event

Runs when the lua print function is used.

Parameters

None.

On Function

Triggered Event

Runs when lua code calls an MMF function in the default function group.

Parameters

String Function name

MMF Interface Enabled

Deprecated

Returns true if the MMF Interface has been enabled.

Parameters

None.

WIN Interface Enabled

Deprecated

Returns true if the WIN Interface has been enabled.

Parameters

None.

Bound to Lua State

Returns true if the XLua object is currently bound to any valid Lua state.

Parameters

None.

Copyright 2010 Justin Aquadro