lua/wrappers/game/lua_game.cpp
/**
	 * Deregisters a game object with the game instance.
	 *
	 * @param am.game_object game_object The game object to deregister.
	 * @returns am.game This
	 */
Deregisters a game object with the game instance.
@param am.game_object game_object The game object to deregister.
Deregisters a game object with the game instance . @param am . game_object game_object The game object to deregister .
int Game_deregister_game_object(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			GameObject *obj = getGameObject(lua, 2);
			if (obj)
			{
				game->deregisterGameObject(obj);
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "deregister_game_object", "am.game_object game_object");
		}
		return LuaState::expectedContext(lua, "deregister_game_object", "am.game");
	}
int Game_deregister_game_object ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { GameObject * obj = getGameObject ( lua , 2 ) ; if ( obj ) { game -> deregisterGameObject ( obj ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Deregisters a game object with the game instance.
Deregisters a game object with the game instance .