XLua |
The XLua object is an object for embedding lua code in your applications. MMF events can call lua functions, pass parameters, and receive return values. Lua scripts have the same capability with calling MMF events. The XLua object also has a substantial MMF Interface for directly querying and modifying game objects and state without the overhead of using the call stack and MMF's event execution.
The XLua object has a key difference from other Lua objects in that the object itself is just a viewport that can be bound to any of multiple global lua states. This allows you to both share state between frames, switch between multiple states, or have several XLua objects each operating in an independent state. XLua also supports extensions via C modules, which allows new functionality to be added during runtime, or direct communication with other MMF extensions whose authors have written or supported a C module that interacts with their extension.
The XLua object is inspired by the Lua+ object by Jamie McLaughlin.
Copyright 2010 Justin Aquadro