Polyphase Game Engine
Loading...
Searching...
No Matches
AssetDir.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <string>
5
6#include "PolyphaseAPI.h"
7
8class Asset;
9class AssetDir;
10struct AssetStub;
11
13{
14public:
15 std::string mName;
16 std::string mPath;
17 std::vector<AssetStub*> mAssetStubs;
18 std::vector<AssetDir*> mChildDirs;
22
23#if EDITOR
24 std::vector<std::string> mLooseFiles; // Non-asset files (.css, etc.) shown in editor
25#endif
26
27 ~AssetDir();
28 AssetDir(const std::string& name,
29 const std::string& localPath,
30 AssetDir* parent);
31 AssetDir();
32
33 AssetDir* GetSubdirectory(const std::string& name);
34 AssetDir* CreateSubdirectory(const std::string& name);
35 void DeleteSubdirectory(const char* name);
36 bool RemoveAssetStub(AssetStub* stub);
37 void Purge();
38 void SortChildrenAlphabetically();
39};
Export macros for Polyphase Engine symbols.
#define POLYPHASE_API
Definition PolyphaseAPI.h:31
Definition AssetDir.h:13
std::vector< AssetStub * > mAssetStubs
Definition AssetDir.h:17
bool mAddonDir
Definition AssetDir.h:21
bool mEngineDir
Definition AssetDir.h:20
std::string mName
Definition AssetDir.h:15
std::string mPath
Definition AssetDir.h:16
std::vector< AssetDir * > mChildDirs
Definition AssetDir.h:18
AssetDir * mParentDir
Definition AssetDir.h:19
Definition Asset.h:125
Definition Asset.h:94