lua/wrappers/game/lua_game.cpp
/**
	 * Looks for a game object with the given game object id, returns nil if a 
	 * game object could not be found.
	 * 
	 * @param string gameObjectId The game object id to look up.
	 * @returns am.game_object The found game object, or nil.
	 */
Looks for a game object with the given game object id, returns nil if a
game object could not be found.

@param string gameObjectId The game object id to look up.
@returns am.game_object The found game object, or nil.
Looks for a game object with the given game object id returns nil if a game object could not be found . @param string gameObjectId The game object id to look up . @returns am . game_object The found game object or nil .
int Game_get_game_object(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				GameObject *obj = game->getGameObject(lua_tostring(lua, 2));
				wrapGameObject(lua, obj);
				return 1;
			}
			return LuaState::expectedArgs(lua, "game_object", "string game_id");
		}
		return LuaState::expectedContext(lua, "game_object", "am.game");
	}
int Game_get_game_object ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { GameObject * obj = game -> getGameObject ( lua_tostring ( lua , 2 ) ) ; wrapGameObject ( lua , obj ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Looks for a game object with the given game object id, returns nil if a
 game object could not be found.
Looks for a game object with the given game object id returns nil if a game object could not be found .