diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 22:01:09 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 22:01:09 +0200 |
commit | 52818f7c83ffb5143f798412ee8d4800fc9de7b7 (patch) | |
tree | 09616a695880f42bcfe2bb56ba614fa30c288796 /crawl-ref/source/l_libs.h | |
parent | 30beda4d0f59aa37ee9d33c67d52aba686d53978 (diff) | |
download | crawl-ref-52818f7c83ffb5143f798412ee8d4800fc9de7b7.tar.gz crawl-ref-52818f7c83ffb5143f798412ee8d4800fc9de7b7.zip |
Move library "item" from clua.cc to l_item.cc.
Diffstat (limited to 'crawl-ref/source/l_libs.h')
-rw-r--r-- | crawl-ref/source/l_libs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/l_libs.h b/crawl-ref/source/l_libs.h index 178f1f5201..e54480317d 100644 --- a/crawl-ref/source/l_libs.h +++ b/crawl-ref/source/l_libs.h @@ -13,6 +13,7 @@ */ void cluaopen_crawl(lua_State *ls); +void cluaopen_item(lua_State *ls); void cluaopen_monsters(lua_State *ls); void cluaopen_options(lua_State *ls); void cluaopen_you(lua_State *ls); @@ -67,6 +68,9 @@ void dluaopen_you(lua_State *ls); #define FEAT(f, pos) \ dungeon_feature_type f = check_lua_feature(ls, pos) +#define LUA_ITEM(name, n) \ + item_def *name = clua_check_item(ls, n); + #define LEVEL(lev, br, pos) \ const char *level_name = luaL_checkstring(ls, pos); \ level_area_type lev = str_to_level_area_type(level_name); \ @@ -94,5 +98,6 @@ int dgn_map_add_transform(lua_State *ls, unsigned int get_tile_idx(lua_State *ls, int arg); level_id dlua_level_id(lua_State *ls, int ndx); dungeon_feature_type check_lua_feature(lua_State *ls, int idx); +item_def *clua_check_item(lua_State *ls, int n); #endif |