2024-08-02 19:50:48 -05:00
|
|
|
#include "gamestate.hpp"
|
|
|
|
#include <memory>
|
2024-08-02 21:23:49 -05:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <iostream>
|
2024-08-02 19:50:48 -05:00
|
|
|
|
2024-08-03 18:40:38 -05:00
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
std::vector<std::string> args(argv, argv + argc);
|
|
|
|
g_pEngine = std::make_unique<GameEngine>();
|
|
|
|
for (int i = 1; i < args.size(); ++i) {
|
|
|
|
if (args[i].compare("--no-gui") == 0) {
|
2024-08-02 21:23:49 -05:00
|
|
|
g_pEngine->state.m_bNoDisplay = true;
|
2024-08-03 01:26:10 -05:00
|
|
|
std::cout << "[LOG - Main] Disabling display" << std::endl;
|
2024-08-03 18:40:38 -05:00
|
|
|
} else if (args[i].compare("--bot") == 0) {
|
2024-08-03 18:34:14 -05:00
|
|
|
g_pEngine->state.m_bIsBotControlled = true;
|
|
|
|
std::cout << "[LOG - Main] Bot control enabled" << std::endl;
|
2024-08-02 21:23:49 -05:00
|
|
|
} else {
|
2024-08-03 18:40:38 -05:00
|
|
|
std::cerr << "[ERROR] Argument " << args[i].c_str() << "not found, exiting..." << std::endl;
|
2024-08-02 21:23:49 -05:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
2024-08-02 19:50:48 -05:00
|
|
|
g_pEngine->Start();
|
|
|
|
return 0;
|
|
|
|
}
|