1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-10 12:47:44 +00:00
sapphire/src/world/mainGameServer.cpp

23 lines
421 B
C++
Raw Normal View History

2017-08-08 13:53:47 +02:00
#include <iostream>
#include "WorldServer.h"
2017-08-08 13:53:47 +02:00
#include <Util/CrashHandler.h>
2020-02-29 22:30:10 +11:00
#include <Service.h>
using namespace Sapphire;
using namespace Sapphire::World;
2018-03-09 00:06:44 +01:00
2020-02-29 22:30:10 +11:00
[[maybe_unused]]
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
{
auto pServer = std::make_shared< WorldServer >( "world.ini" );
2020-02-29 22:30:10 +11: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 );
return 0;
}