This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/gui/game/Favorite.h
Tamás Bálint Misius 4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00

22 lines
475 B
C++

#pragma once
#include "common/String.h"
#include "common/ExplicitSingleton.h"
#include <vector>
class Favorite : public ExplicitSingleton<Favorite>
{
std::vector<ByteString> favoritesList;
public:
Favorite();
std::vector<ByteString> GetFavoritesList();
bool IsFavorite(ByteString identifier);
bool AnyFavorites();
void AddFavorite(ByteString identifier);
void RemoveFavorite(ByteString identifier);
void SaveFavoritesToPrefs();
void LoadFavoritesFromPrefs();
};