Engine/Scripting/LuaBind.cpp
void __LuaBind ( lua_State* L )
{
	lua_pushcfunction(L, import);
	lua_setglobal(L, "import");
	lua_pushcfunction(L, VEC_new);
	lua_setglobal(L, "vec");
	lua_cpcall(L, luaopen_component, NULL);
	luaL_newmetatable(L, "Apollo.vec2");
	luaL_register(L, NULL, registryObjectVector);
	luaL_register(L, "input", registryInput);
	luaL_register(L, "xml", registryXML);
	luaL_register(L, "mode_manager", registryModeManager);
    luaL_register(L, "resource_manager", registryResourceManager);
    luaL_register(L, "graphics", registryGraphics);
    luaL_register(L, "sound", registrySound);
	luaL_register(L, "preferences", registryPreferences);
	luaL_register(L, "net_server", registryNetServer);
	luaL_register(L, "window", registryWindowManager);
    luaL_register(L, "xnet", registryXnet);
}
/**
 * @page all_lua_bindings All LuaBind Registries
 * This page contains information about all Lua registries, along with links to
 * the pages describing them.
 * 
 * @ref lua_xml \n
 * This registry currently only contains one function (load). It is used to load
 * XML data from files.
 * 
 * @ref lua_mode_manager \n
 * This small registry contains functions for dealing with modes. Modes are the
 * states in which Lua runs, containing functions triggered by certain states of
 * Apollo (like mouse movement, keyboard presses, etc).
 * 
 * @ref lua_resource_manager \n
 * This small registry contains a few simple tools for manipulating files.
 * 
 * @ref lua_graphics \n
 * This registry contains all drawing mechanisms for Lua, along with some
 * drawing manipulation functions.
 * 
 * @ref lua_sound \n
 * This registry contains all music control mechanisms for Lua, along with a
 * function for playing sound effects.
 * 
 * @ref lua_net_client \n
 * This registry contains functions related to playing on a multiplayer server.
 * 
 * @ref lua_net_server \n
 * This registry contains functions related to hosting a multiplayer server.
 * 
 * @ref lua_preferences \n
 * This registry currently only contains one function, used for retrieving
 * preferences.
 * 
 * @ref lua_window \n
 * This registry controls aspects of the window (mostly those controlled
 * directly by SDL, such as window size, fullscreen status, and even if the
 * mouse is displaying on the screen).
 * preferences.
 */
@page all_lua_bindings All LuaBind Registries
This page contains information about all Lua registries, along with links to
the pages describing them.

@ref lua_xml \n
This registry currently only contains one function (load). It is used to load
XML data from files.

@ref lua_mode_manager \n
This small registry contains functions for dealing with modes. Modes are the
states in which Lua runs, containing functions triggered by certain states of
Apollo (like mouse movement, keyboard presses, etc).

@ref lua_resource_manager \n
This small registry contains a few simple tools for manipulating files.

@ref lua_graphics \n
This registry contains all drawing mechanisms for Lua, along with some
drawing manipulation functions.

@ref lua_sound \n
This registry contains all music control mechanisms for Lua, along with a
function for playing sound effects.

@ref lua_net_client \n
This registry contains functions related to playing on a multiplayer server.

@ref lua_net_server \n
This registry contains functions related to hosting a multiplayer server.

@ref lua_preferences \n
This registry currently only contains one function, used for retrieving
preferences.

@ref lua_window \n
This registry controls aspects of the window (mostly those controlled
directly by SDL, such as window size, fullscreen status, and even if the
mouse is displaying on the screen).
preferences.
@page all_lua_bindings All LuaBind Registries This page contains information about all Lua registries along with links to the pages describing them . @ref lua_xml \ n This registry currently only contains one function ( load ) . It is used to load XML data from files . @ref lua_mode_manager \ n This small registry contains functions for dealing with modes . Modes are the states in which Lua runs containing functions triggered by certain states of Apollo ( like mouse movement keyboard presses etc ) . @ref lua_resource_manager \ n This small registry contains a few simple tools for manipulating files . @ref lua_graphics \ n This registry contains all drawing mechanisms for Lua along with some drawing manipulation functions . @ref lua_sound \ n This registry contains all music control mechanisms for Lua along with a function for playing sound effects . @ref lua_net_client \ n This registry contains functions related to playing on a multiplayer server . @ref lua_net_server \ n This registry contains functions related to hosting a multiplayer server . @ref lua_preferences \ n This registry currently only contains one function used for retrieving preferences . @ref lua_window \ n This registry controls aspects of the window ( mostly those controlled directly by SDL such as window size fullscreen status and even if the mouse is displaying on the screen ) . preferences .
void __LuaBind ( lua_State* L )
{
	lua_pushcfunction(L, import);
	lua_setglobal(L, "import");
	lua_pushcfunction(L, VEC_new);
	lua_setglobal(L, "vec");
	lua_cpcall(L, luaopen_component, NULL);
	luaL_newmetatable(L, "Apollo.vec2");
	luaL_register(L, NULL, registryObjectVector);
	luaL_register(L, "input", registryInput);
	luaL_register(L, "xml", registryXML);
	luaL_register(L, "mode_manager", registryModeManager);
    luaL_register(L, "resource_manager", registryResourceManager);
    luaL_register(L, "graphics", registryGraphics);
    luaL_register(L, "sound", registrySound);
	luaL_register(L, "preferences", registryPreferences);
	luaL_register(L, "net_server", registryNetServer);
	luaL_register(L, "window", registryWindowManager);
    luaL_register(L, "xnet", registryXnet);
}
void __LuaBind ( lua_State * L ) { lua_pushcfunction ( L , import ) ; lua_setglobal ( L , " " ) ; lua_pushcfunction ( L , VEC_new ) ; lua_setglobal ( L , " " ) ; lua_cpcall ( L , luaopen_component , NULL ) ; luaL_newmetatable ( L , " " ) ; luaL_register ( L , NULL , registryObjectVector ) ; luaL_register ( L , " " , registryInput ) ; luaL_register ( L , " " , registryXML ) ; luaL_register ( L , " " , registryModeManager ) ; luaL_register ( L , " " , registryResourceManager ) ; luaL_register ( L , " " , registryGraphics ) ; luaL_register ( L , " " , registrySound ) ; luaL_register ( L , " " , registryPreferences ) ; luaL_register ( L , " " , registryNetServer ) ; luaL_register ( L , " " , registryWindowManager ) ; luaL_register ( L , " " , registryXnet ) ; }
@page all_lua_bindings All LuaBind Registries
 This page contains information about all Lua registries, along with links to
 the pages describing them.
@page all_lua_bindings All LuaBind Registries This page contains information about all Lua registries along with links to the pages describing them .