lua/wrappers/game/lua_game.cpp
/**
	 * Attemps to load the game from a save file.
	 *
	 * @param string save_name The name of the save file to load.
	 * @returns integer A 1 for success, or 0 for error.
	 */
Attemps to load the game from a save file.
@param string save_name The name of the save file to load.
@returns integer A 1 for success, or 0 for error.
Attemps to load the game from a save file . @param string save_name The name of the save file to load . @returns integer A 1 for success or 0 for error .
int Game_load_game(lua_State *lua)
	{
		Game *game = castUData<Game>(lua, 1);
		if (game)
		{
			if (lua_isstr(lua, 2))
			{
				lua_pushinteger(lua, game->loadGame(lua_tostring(lua, 2)));
				return 1;
			}
			return LuaState::expectedArgs(lua, "load_game", "string save_name");
		}
		return LuaState::expectedContext(lua, "load_game", "am.game");
	}
int Game_load_game ( lua_State * lua ) { Game * game = castUData < Game > ( lua , 1 ) ; if ( game ) { if ( lua_isstr ( lua , 2 ) ) { lua_pushinteger ( lua , game -> loadGame ( lua_tostring ( lua , 2 ) ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Attemps to load the game from a save file.
Attemps to load the game from a save file .