Newer
Older
SkyFrontier-Project-IADE-UE4-3D / Source / SkyFrontier / Private / MyButtonHost.cpp
@Genexuz Genexuz on 6 Dec 2022 396 bytes idk matchmaking
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #include "MyButtonHost.h"
  3. UMyButtonHost::UMyButtonHost()
  4. {
  5. OnClicked.AddDynamic(this, &UMyButtonHost::OnClick);
  6. }
  7. void UMyButtonHost::SetSessionInfo(FString sname, TCPClient *tclient)
  8. {
  9. sessionName = sname; tcpClient = tclient;
  10. }
  11. void UMyButtonHost::OnClick()
  12. {
  13. tcpClient->CreateNewGameSession(sessionName);
  14. }