Add GenericStructs for Players in Lobby via JSON

This commit is contained in:
Philip W 2023-12-06 22:24:59 +00:00
parent f20a6a1151
commit 10d39a80b6

View File

@ -0,0 +1,28 @@
#pragma once
#include "CoreMinimal.h"
#include "GenericStructs.generated.h"
USTRUCT(BlueprintType)
struct FPlayerInLobby
{
GENERATED_BODY()
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
FString Username;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
bool bIsOwner;
FPlayerInLobby(FString Username, const bool bIsOwner)
{
this->Username = Username;
this->bIsOwner = bIsOwner;
}
FPlayerInLobby()
{
this->Username = "";
this->bIsOwner = false;
}
};