-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (20 loc) · 775 Bytes
/
main.cpp
File metadata and controls
25 lines (20 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Engine.hpp"
#include "Engine/entry_point.hpp"
#include "Process/BuildProcess.hpp"
namespace Engine {
class AssetBuilderApplication : public Application {
public:
explicit AssetBuilderApplication(const ProjectDescriptor& projectDescriptor, uint32 argumentCount, char8** argumentValues) :
Application(projectDescriptor)
{
setConsoleArguments(argumentCount, argumentValues);
registerProcess<BuildProcess>(getConsoleArguments());
}
};
Application* createApplication(uint32 argumentCount, char8** argumentValues) {
ProjectDescriptor projectDescriptor{};
projectDescriptor.type = ProjectType::BUILD;
projectDescriptor.name = "Asset Builder";
return new AssetBuilderApplication(projectDescriptor, argumentCount, argumentValues);
}
}