void Network::OnServerConnected() { serverConnection_->SetConnectPending(false); LOGINFO("Connected to server"); // Send the identity map now VectorBuffer msg; msg.WriteVariantMap(serverConnection_->GetIdentity()); serverConnection_->SendMessage(MSG_IDENTITY, true, true, msg); SendEvent(E_SERVERCONNECTED); }