lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Removes a game object from the game engine. This is just 
	 * shorthand for removing the game object from the current game.
	 * @param am.game_object game_object The game object to remove.
	 */
@static
Removes a game object from the game engine. This is just
shorthand for removing the game object from the current game.
@param am.game_object game_object The game object to remove.
@static Removes a game object from the game engine . This is just shorthand for removing the game object from the current game . @param am . game_object game_object The game object to remove .
int Engine_deregister_game_object(lua_State *lua)
	{
		if (lua_isstr(lua, 1))
		{
			Engine::getEngine()->deregisterGameObject(lua_tostring(lua, 1));
			return 0;
		}
		GameObject *obj = getGameObject(lua, 1);
		if (obj)
		{
			Engine::getEngine()->deregisterGameObject(obj);
			return 0;
		}
		return LuaState::expectedArgs(lua, "@deregister_game_object", 2, "string gameId", "am.game_object game_object");
	}
int Engine_deregister_game_object ( lua_State * lua ) { if ( lua_isstr ( lua , 1 ) ) { Engine :: getEngine ( ) -> deregisterGameObject ( lua_tostring ( lua , 1 ) ) ; return 0 ; } GameObject * obj = getGameObject ( lua , 1 ) ; if ( obj ) { Engine :: getEngine ( ) -> deregisterGameObject ( obj ) ; return 0 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; }
@static
 Removes a game object from the game engine.
@static Removes a game object from the game engine .