Add GenericStructs for Players in Lobby via JSON
This commit is contained in:
parent
f20a6a1151
commit
10d39a80b6
28
CorruptedMemory/Source/CorruptedMemory/GenericStructs.h
Normal file
28
CorruptedMemory/Source/CorruptedMemory/GenericStructs.h
Normal 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;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user