lua/wrappers/game/lua_game_object.cpp
int GameObject_description(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}

		if (lua_gettop(lua) == 1)
		{
			lua_pushstring(lua, obj->getDescription().c_str());
			return 1;
		}
		else if (lua_isstr(lua, 2))
		{
			const char *description = lua_tostring(lua, 2);
			if (description)
			{
				obj->setDescription(description);
			}
			lua_first(lua);
		}
		return LuaState::expectedArgs(lua, "description", "string description");
	}
/**
	 * Sets the description of the GameObject.
	 *
	 * @param string description The description to set the GameObject.
	 * @returns am.GameObject This.
	 */
Sets the description of the GameObject.
@param string description The description to set the GameObject.
Sets the description of the GameObject . @param string description The description to set the GameObject .
int GameObject_description(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		if (lua_gettop(lua) == 1)
		{
			lua_pushstring(lua, obj->getDescription().c_str());
			return 1;
		}
		else if (lua_isstr(lua, 2))
		{
			const char *description = lua_tostring(lua, 2);
			if (description)
			{
				obj->setDescription(description);
			}
			lua_first(lua);
		}
		return LuaState::expectedArgs(lua, "description", "string description");
	}
int GameObject_description ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } if ( lua_gettop ( lua ) == 1 ) { lua_pushstring ( lua , obj -> getDescription ( ) . c_str ( ) ) ; return 1 ; } else if ( lua_isstr ( lua , 2 ) ) { const char * description = lua_tostring ( lua , 2 ) ; if ( description ) { obj -> setDescription ( description ) ; } lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
Sets the description of the GameObject.
Sets the description of the GameObject .