lua/wrappers/game/lua_game.cpp
int Game_add_game_object_to_map(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			GameObject *obj = getGameObject(lua, 2);
			if (obj)
			{
				lua_pushboolean(lua, game->addGameObjectToMap(obj));
				return 1;
			}
			return LuaState::expectedArgs(lua, "add_game_object_to_map", 2, "am.game_object game_object", "string game_id");
		}
		return LuaState::expectedContext(lua, "add_game_object_to_map", "am.game");
	}
/**
	 * Adds a game object to the currently active map.
	 *
	 * @param string gameObjectId The game object id of the game object to add.
	 * @returns boolean True if the game object was successfully added.
	 *  False indicates that either the current map is nil.
	 */
Adds a game object to the currently active map.
@param string gameObjectId The game object id of the game object to add.
@returns boolean True if the game object was successfully added.
False indicates that either the current map is nil.
Adds a game object to the currently active map . @param string gameObjectId The game object id of the game object to add . @returns boolean True if the game object was successfully added . False indicates that either the current map is nil .
int Game_add_game_object_to_map(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			GameObject *obj = getGameObject(lua, 2);
			if (obj)
			{
				lua_pushboolean(lua, game->addGameObjectToMap(obj));
				return 1;
			}
			return LuaState::expectedArgs(lua, "add_game_object_to_map", 2, "am.game_object game_object", "string game_id");
		}
		return LuaState::expectedContext(lua, "add_game_object_to_map", "am.game");
	}
int Game_add_game_object_to_map ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { GameObject * obj = getGameObject ( lua , 2 ) ; if ( obj ) { lua_pushboolean ( lua , game -> addGameObjectToMap ( obj ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds a game object to the currently active map.
Adds a game object to the currently active map .