void requestNextScene() { if(context.createNew == true) { _net->sendPacketType(PacketTypes::REQUEST_NEW_LOBBY); printf("New lobby\n"); } else { _core->setActiveScene(new LobbyListMenu(_core, _interface, _net)); } }
void requestNextScene() { size_t i; char tempdata[25]; wcstombs_s(&i, tempdata, _interface->getElementWithId(GUI_ID_EDIT_NAME)->getText(), 24); std::string name = tempdata; _net->setUserName(name); _net->sendPacketType(PacketTypes::REQUEST_REGISTER_PLAYER, PROTOCOL_TCP); _sceneRequest = true; startTime = clock(); }