SQCSimulator2023/SQCSim-srv/main.cpp

13 lines
266 B
C++
Raw Normal View History

2023-09-24 08:45:40 -04:00
#include "server.h"
int main() {
2023-10-29 14:54:36 -04:00
std::unique_ptr<Server> server = std::make_unique<Server>();
2023-09-24 08:45:40 -04:00
if (server->Init() == 0)
2023-12-09 12:02:04 -05:00
while (server->Ready() == 0) {
2023-09-24 08:45:40 -04:00
server->Run();
2023-12-09 12:02:04 -05:00
if (!server->NewGameRequested())
break;
server->Cleanup();
}
server->DeInit();
2023-09-24 08:45:40 -04:00
}