lua/wrappers/game/lua_game_object.cpp
/**
	 * Adds a tile type to the list of tile types that this GameObject
	 * can move freely on. Tile types can be added multiple times.
	 * 
	 * @param string tile_type_name The name of the type to add to the list.
	 * @returns am.GameObject This
	 */
Adds a tile type to the list of tile types that this GameObject
can move freely on. Tile types can be added multiple times.

@param string tile_type_name The name of the type to add to the list.
Adds a tile type to the list of tile types that this GameObject can move freely on . Tile types can be added multiple times . @param string tile_type_name The name of the type to add to the list .
int GameObject_add_passible_type(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		TileType *tileType = nullptr;
		if (getTileType(lua, 2, tileType))
		{
			obj->addPassibleType(tileType);
			lua_first(lua);
		}
		return LuaState::expectedArgs(lua, "add_passible_type", 2, "am.tile_type tile_type", "string tile_type_name");
	}
int GameObject_add_passible_type ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } TileType * tileType = nullptr ; if ( getTileType ( lua , 2 , tileType ) ) { obj -> addPassibleType ( tileType ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; }
Adds a tile type to the list of tile types that this GameObject
 can move freely on.
Adds a tile type to the list of tile types that this GameObject can move freely on .
/*if (lua_isstr(lua, 2))
		{
			base::Handle<TileType> type(Engine::getEngine()->getTileType(lua_tostring(lua, 2)));
			if (type)
			{
				obj->addPassibleType(type);
			}
			else
			{
				std::stringstream ss;
				ss << "Unknown tile type '";
				LuaState::printTypeValue(lua, 2, ss);
				ss << "' unable to add";
				LuaState::warning(lua, ss.str().c_str());
			}
			lua_first(lua);
		}
		base::Handle<TileType> type(castUData<TileType>(lua, 2));
		if (type)
		{
			obj->addPassibleType(type);
			lua_first(lua);
		}*/