Merge branch 'master' of git://github.com/BTAxis/naev into testmission
[naev.git] / src / nlua_space.c
blobd13ad04914d931e2a4144020342e6eca6551c599
1 /*
2 * See Licensing and Copyright notice in naev.h
3 */
5 /**
6 * @file nlua_space.c
8 * @brief Handles the Lua space bindings.
10 * These bindings control the planets and systems.
13 #include "nlua_space.h"
15 #include "naev.h"
17 #include "lauxlib.h"
19 #include "log.h"
20 #include "nlua.h"
21 #include "nluadef.h"
22 #include "nlua_planet.h"
23 #include "nlua_system.h"
26 /**
27 * @brief Loads the space library.
29 * @param L State to load space library into.
30 * @param readonly Load read only functions?
31 * @return 0 on success.
33 int nlua_loadSpace( lua_State *L, int readonly )
35 nlua_loadPlanet( L, readonly );
36 nlua_loadSystem( L, readonly );
38 return 0;