cyphesis/tests/stubs/server/stubServerRouting_custom.h
Erik Ogenvik 7ae19d5038 Use Singleton base class.
I.e. make sure that all objects have a defined life time. This requires
that we actually set up and tear down the singletons.
2018-04-25 20:15:29 +02:00

14 lines
604 B
C++

//Add custom implementations of stubbed functions here; this file won't be rewritten when re-generating stubs.
ServerRouting * ServerRouting::m_instance = nullptr;
#ifndef STUB_ServerRouting_ServerRouting
#define STUB_ServerRouting_ServerRouting
ServerRouting::ServerRouting(BaseWorld & wrld, const std::string & ruleset, const std::string & name, const std::string & id, long intId, const std::string & lId, long lIntId)
: Router(id, intId),
m_svrRuleset(ruleset), m_svrName(name),
m_numClients(0), m_world(wrld), m_lobby(*(Lobby*)0)
{
}
#endif //STUB_ServerRouting_ServerRouting