1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-09 20:27:45 +00:00
sapphire/src/world/mainGameServer.cpp

29 lines
493 B
C++
Raw Normal View History

2017-08-08 13:53:47 +02:00
#include <iostream>
2018-11-20 21:32:13 +01:00
#include "ServerMgr.h"
2018-03-09 00:06:44 +01:00
#include <Framework.h>
2017-08-08 13:53:47 +02:00
#include <Config/ConfigMgr.h>
Sapphire::Framework g_fw;
using namespace Sapphire;
using namespace Sapphire::World;
2018-03-09 00:06:44 +01:00
bool setupFramework()
{
2018-11-20 21:32:13 +01:00
auto pServer = std::make_shared< ServerMgr >( "config.ini" );
g_fw.set< ServerMgr >( pServer );
return true;
2018-03-09 00:06:44 +01:00
}
2017-08-08 13:53:47 +02:00
int main( int32_t argc, char* argv[] )
2017-08-08 13:53:47 +02:00
{
if( !setupFramework() )
return 0; // too fucking bad...
2018-03-09 00:06:44 +01:00
2018-11-20 21:32:13 +01:00
g_fw.get< ServerMgr >()->run( argc, argv );
return 0;
}