From 4cd1957231605e976c5cf001eddea80d5e49272f Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 30 Jan 2012 22:16:40 +0100 Subject: Use a full user data object for MapObject references Based on a templated helper class, MapObject references in Lua scripts are now full user data objects. Using the '__index' member of their metatable, a library is associated with it so that member functions can be called directly on the object. Reviewed-by: Yohann Ferreira Reviewed-by: Erik Schilling --- src/scripting/luautil.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index a752142..b7680c6 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -116,8 +116,3 @@ void push(lua_State *s, double val) { lua_pushnumber(s, val); } - -void push(lua_State *s, MapObject *val) -{ - lua_pushlightuserdata(s, val); -} -- cgit