lua/wrappers/game/lua_game_object.cpp
/**
	 * Sets the GameObjects game id, this is used to refer to this
	 * GameObject from the game engine. Should be unique.
	 * @param string game_id The GameObjects unique game id.
	 * @returns boolean True if the game id change was successful or if
	 * game id was the same as the given game_id. False indicates that
	 * either there is no current game engine or there is another
	 * game object with the same game id.
	 */
Sets the GameObjects game id, this is used to refer to this
GameObject from the game engine. Should be unique.
@param string game_id The GameObjects unique game id.
@returns boolean True if the game id change was successful or if
game id was the same as the given game_id. False indicates that
either there is no current game engine or there is another
game object with the same game id.
Sets the GameObjects game id this is used to refer to this GameObject from the game engine . Should be unique . @param string game_id The GameObjects unique game id . @returns boolean True if the game id change was successful or if game id was the same as the given game_id . False indicates that either there is no current game engine or there is another game object with the same game id .
int GameObject_game_id(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		if (lua_gettop(lua) == 1)
		{
			lua_pushstring(lua, obj->getGameId());
			return 1;
		}
		else if (lua_isstr(lua, 2))
		{
			lua_pushboolean(lua, obj->setGameId(lua_tostring(lua, 2)));
			return 1;
		}
		return LuaState::expectedArgs(lua, "id", "string id");
	}
int GameObject_game_id ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , obj -> getGameId ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { lua_pushboolean ( lua , obj -> setGameId ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
Sets the GameObjects game id, this is used to refer to this
 GameObject from the game engine.
Sets the GameObjects game id this is used to refer to this GameObject from the game engine .