diff --git a/CorruptedMemory/Source/CorruptedMemory/GenericStructs.h b/CorruptedMemory/Source/CorruptedMemory/GenericStructs.h new file mode 100644 index 0000000..74dc5f1 --- /dev/null +++ b/CorruptedMemory/Source/CorruptedMemory/GenericStructs.h @@ -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; + } +};