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
8
class
Asset
;
9
class
AssetDir
;
10
struct
AssetStub
;
11
12
class
POLYPHASE_API
AssetDir
13
{
14
public
:
15
std::string
mName
;
16
std::string
mPath
;
17
std::vector<AssetStub*>
mAssetStubs
;
18
std::vector<AssetDir*>
mChildDirs
;
19
AssetDir
*
mParentDir
;
20
bool
mEngineDir
;
21
bool
mAddonDir
;
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
};
PolyphaseAPI.h
Export macros for Polyphase Engine symbols.
POLYPHASE_API
#define POLYPHASE_API
Definition
PolyphaseAPI.h:31
AssetDir
Definition
AssetDir.h:13
AssetDir::mAssetStubs
std::vector< AssetStub * > mAssetStubs
Definition
AssetDir.h:17
AssetDir::mAddonDir
bool mAddonDir
Definition
AssetDir.h:21
AssetDir::mEngineDir
bool mEngineDir
Definition
AssetDir.h:20
AssetDir::mName
std::string mName
Definition
AssetDir.h:15
AssetDir::mPath
std::string mPath
Definition
AssetDir.h:16
AssetDir::mChildDirs
std::vector< AssetDir * > mChildDirs
Definition
AssetDir.h:18
AssetDir::mParentDir
AssetDir * mParentDir
Definition
AssetDir.h:19
Asset
Definition
Asset.h:125
AssetStub
Definition
Asset.h:94
Engine
Source
Engine
AssetDir.h
Generated by
1.9.8