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-02 21:23:49 -05:00
|
|
|
int main(int argc, char* argv[])
|
2024-08-02 19:50:48 -05:00
|
|
|
{
|
2024-08-02 21:23:49 -05:00
|
|
|
std::vector<std::string> args{argv + 1, argv + argc};
|
|
|
|
for (auto it = args.begin(); it != args.end(); it++) {
|
|
|
|
if (it->compare("--no-gui") == 0) {
|
|
|
|
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:34:14 -05:00
|
|
|
} else if (it->compare("--bot") == 0) {
|
|
|
|
g_pEngine->state.m_bIsBotControlled = true;
|
|
|
|
std::cout << "[LOG - Main] Bot control enabled" << std::endl;
|
|
|
|
|
2024-08-02 21:23:49 -05:00
|
|
|
} else {
|
|
|
|
std::cerr << "[ERROR] Argument option not found, exiting..." << std::endl;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
2024-08-02 19:50:48 -05:00
|
|
|
g_pEngine = std::make_unique<GameEngine>();
|
|
|
|
g_pEngine->Start();
|
|
|
|
return 0;
|
|
|
|
}
|