aboutsummaryrefslogtreecommitdiff
path: root/src/script/common/c_converter.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-19 21:42:40 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-19 21:42:40 -0400
commit3d4244cc75b7e75565476032851fbd30d5cd9306 (patch)
tree9d1e7ad8b44d93d62a559f62bcc97639f6759037 /src/script/common/c_converter.h
parent687d969c9c50be98597ee9f383280517f1f8cd97 (diff)
downloadminetest-3d4244cc75b7e75565476032851fbd30d5cd9306.tar.gz
minetest-3d4244cc75b7e75565476032851fbd30d5cd9306.tar.bz2
minetest-3d4244cc75b7e75565476032851fbd30d5cd9306.zip
Add 'persistence' alias for Lua noiseparams and validate more vector parameters
Diffstat (limited to 'src/script/common/c_converter.h')
-rw-r--r--src/script/common/c_converter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/common/c_converter.h b/src/script/common/c_converter.h
index fdcd0c8fc..1d5be6971 100644
--- a/src/script/common/c_converter.h
+++ b/src/script/common/c_converter.h
@@ -53,6 +53,10 @@ size_t getstringlistfield(lua_State *L, int table,
std::vector<std::string> *result);
bool getintfield(lua_State *L, int table,
const char *fieldname, int &result);
+bool getintfield(lua_State *L, int table,
+ const char *fieldname, u16 &result);
+bool getintfield(lua_State *L, int table,
+ const char *fieldname, u32 &result);
void read_groups(lua_State *L, int index,
std::map<std::string, int> &result);
bool getboolfield(lua_State *L, int table,
@@ -72,6 +76,8 @@ void setboolfield(lua_State *L, int table,
v3f checkFloatPos (lua_State *L, int index);
+v2f check_v2f (lua_State *L, int index);
+v2s16 check_v2s16 (lua_State *L, int index);
v3f check_v3f (lua_State *L, int index);
v3s16 check_v3s16 (lua_State *L, int index);