| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <string> |
| 7 |
#include <vector> |
| 8 |
|
| 9 |
#include "UICommon/ResourcePack/ResourcePack.h" |
| 10 |
|
| 11 |
namespace ResourcePack |
| 12 |
{ |
| 13 |
bool Init(); |
| 14 |
|
| 15 |
ResourcePack* Add(const std::string& path, int offset = -1); |
| 16 |
bool Remove(ResourcePack& pack); |
| 17 |
void SetInstalled(const ResourcePack& pack, bool installed); |
| 18 |
bool IsInstalled(const ResourcePack& pack); |
| 19 |
|
| 20 |
std::vector<ResourcePack>& GetPacks(); |
| 21 |
|
| 22 |
std::vector<ResourcePack*> GetHigherPriorityPacks(const ResourcePack& pack); |
| 23 |
std::vector<ResourcePack*> GetLowerPriorityPacks(const ResourcePack& pack); |
| 24 |
} |