Esempio n. 1
0
	void requestNextScene()
	{
		if(context.createNew == true) {
			_net->sendPacketType(PacketTypes::REQUEST_NEW_LOBBY);
			printf("New lobby\n");
		}
		else {
			_core->setActiveScene(new LobbyListMenu(_core, _interface, _net));
		}
	}
Esempio n. 2
0
	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();
	}