mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add app.get_content_sources, app.set_content_sources
This commit is contained in:
parent
c0c0352959
commit
614d5f4ae4
5 changed files with 55 additions and 10 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
#include "io/path.hpp"
|
||||
#include "ContentPack.hpp"
|
||||
|
||||
class Content;
|
||||
|
|
@ -13,10 +14,6 @@ class EnginePaths;
|
|||
class Input;
|
||||
struct Project;
|
||||
|
||||
namespace io {
|
||||
class path;
|
||||
}
|
||||
|
||||
class ContentControl {
|
||||
public:
|
||||
ContentControl(
|
||||
|
|
@ -46,6 +43,10 @@ public:
|
|||
const std::vector<ContentPack>& getAllContentPacks() const;
|
||||
|
||||
PacksManager& scan();
|
||||
|
||||
void setContentSources(std::vector<io::path> sources);
|
||||
void resetContentSources();
|
||||
const std::vector<io::path>& getContentSources() const;
|
||||
private:
|
||||
EnginePaths& paths;
|
||||
Input& input;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue