lua/wrappers/game/lua_door.cpp
/**
	 * @static
	 * Looks up an door in the current game engine with the given game id.
	 *
	 * @param string game_id The game id to look up.
	 * @returns am.door The found door or nil.
	 */
@static
Looks up an door in the current game engine with the given game id.

@param string game_id The game id to look up.
@returns am.door The found door or nil.
@static Looks up an door in the current game engine with the given game id . @param string game_id The game id to look up . @returns am . door The found door or nil .
int Door_find(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Door *door = dynamic_cast<Door *>(Engine::getEngine()->getGameObject(lua_tostring(lua, 1)));
			if (door)
			{
				wrapRefObject<Door>(lua, door);
				return 1;
			}
			lua_pushnil(lua);
			return 1;
		}
		return LuaState::expectedArgs(lua, "@find", "string game_id");
	}
int Door_find ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Door * door = dynamic_cast < Door * > ( Engine :: getEngine ( ) -> getGameObject ( lua_tostring ( lua , 1 ) ) ) ; if ( door ) { wrapRefObject < Door > ( lua , door ) ; return 1 ; } lua_pushnil ( lua ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Looks up an door in the current game engine with the given game id.
@static Looks up an door in the current game engine with the given game id .