lua/wrappers/game/lua_map.cpp
/**
	 * Creates a new map instance.
	 *
	 * @param string map_name The name of the map.
	 * @param integer width The width of the map in tiles.
	 * @param integer height The height of the map in tiles.
	 */
Creates a new map instance.
@param string map_name The name of the map.
@param integer width The width of the map in tiles.
@param integer height The height of the map in tiles.
Creates a new map instance . @param string map_name The name of the map . @param integer width The width of the map in tiles . @param integer height The height of the map in tiles .
int Map_ctor(lua_State *lua)
	{
		int args = lua_gettop(lua);
		if (args == 1 && lua_isstr(lua, 1))
		{
			Map *map = new Map(lua_tostring(lua, 1));
			wrapRefObject<Map>(lua, map);
			return 1;
		}
		else if (args == 3 && lua_isstr(lua, 1) && lua_isnum(lua, 2) && lua_isnum(lua, 3))
		{
			Map *map = new Map(lua_tostring(lua, 1), lua_tointeger(lua, 2), lua_tointeger(lua, 3));
			wrapRefObject<Map>(lua, map);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@new", 2, "string map_name", "string map_name, integer width, integer height");
	}
int Map_ctor ( lua_State * lua ) { int args = lua_gettop ( lua ) ; if ( args == 1 && lua_isstr ( lua , 1 ) ) { Map * map = new Map ( lua_tostring ( lua , 1 ) ) ; wrapRefObject < Map > ( lua , map ) ; return 1 ; } else if ( args == 3 && lua_isstr ( lua , 1 ) && lua_isnum ( lua , 2 ) && lua_isnum ( lua , 3 ) ) { Map * map = new Map ( lua_tostring ( lua , 1 ) , lua_tointeger ( lua , 2 ) , lua_tointeger ( lua , 3 ) ) ; wrapRefObject < Map > ( lua , map ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; }
Creates a new map instance.
Creates a new map instance .