2017-08-08 13:53:47 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
#include "WorldServer.h"
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2019-03-26 23:17:57 +11:00
|
|
|
#include <Util/CrashHandler.h>
|
2020-02-29 22:30:10 +11:00
|
|
|
#include <Service.h>
|
2019-03-26 23:17:57 +11:00
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
using namespace Sapphire;
|
2018-12-01 00:27:16 +11:00
|
|
|
using namespace Sapphire::World;
|
2018-03-09 00:06:44 +01:00
|
|
|
|
2020-02-29 22:30:10 +11:00
|
|
|
[[maybe_unused]]
|
2019-03-26 23:17:57 +11:00
|
|
|
Common::Util::CrashHandler crashHandler;
|
|
|
|
|
2018-12-23 13:26:33 +01:00
|
|
|
int main( int32_t argc, char* argv[] )
|
2018-03-09 00:06:44 +01:00
|
|
|
{
|
2021-11-27 00:53:57 +01:00
|
|
|
auto pServer = std::make_shared< WorldServer >( "world.ini" );
|
2020-02-29 22:30:10 +11:00
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
Common::Service< WorldServer >::set( pServer );
|
2020-02-29 22:30:10 +11:00
|
|
|
|
2018-12-23 13:26:33 +01:00
|
|
|
pServer->run( argc, argv );
|
2018-08-29 21:40:59 +02:00
|
|
|
return 0;
|
2018-03-09 10:19:38 +01:00
|
|
|
}
|