initial player stuff
This commit is contained in:
parent
4b60ece582
commit
5100d91a72
38 changed files with 1107 additions and 93 deletions
|
@ -25,7 +25,7 @@ target_link_libraries(perturabo wSocket)
|
|||
target_link_libraries(perturabo wDispatcher)
|
||||
target_link_libraries(perturabo utils)
|
||||
target_link_libraries(perturabo wModel)
|
||||
target_link_libraries(perturabo wServerUtils)
|
||||
target_link_libraries(perturabo wDatabase)
|
||||
target_link_libraries(perturabo wServerUtils)
|
||||
|
||||
install(TARGETS perturabo RUNTIME DESTINATION bin)
|
||||
|
|
|
@ -86,11 +86,11 @@ void Perturabo::start()
|
|||
server->listen(8082);
|
||||
|
||||
cout << "Registering models..." << endl;
|
||||
attributes->registerModel(dispatcher, server);
|
||||
commands->registerModel(dispatcher, server);
|
||||
attributes->getRegistered(connector);
|
||||
commands->getRegistered(connector);
|
||||
|
||||
for (; beg != end; ++beg) {
|
||||
beg->second->registerModel(dispatcher, server);
|
||||
beg->second->getRegistered(connector);
|
||||
}
|
||||
|
||||
cout << "Opening and indexing databases..." << endl;
|
||||
|
@ -115,11 +115,11 @@ void Perturabo::stop()
|
|||
commands->enableCommand(W::String(u"clearDatabase"), false);
|
||||
|
||||
for (; beg != end; ++beg) {
|
||||
beg->second->unregisterModel();
|
||||
beg->second->getUnregistered();
|
||||
}
|
||||
|
||||
commands->unregisterModel();
|
||||
attributes->unregisterModel();
|
||||
commands->getUnregistered();
|
||||
attributes->getUnregistered();
|
||||
server->stop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue