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
|
|
|
}
|