35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "Engine/DataAsset.h"
|
||
|
|
#include "Engine/DeveloperSettings.h"
|
||
|
|
#include "ProjectSettings.generated.h"
|
||
|
|
|
||
|
|
UCLASS(BlueprintType)
|
||
|
|
class INTEGRATION_API UlxServerSelection : public UPrimaryDataAsset
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
|
||
|
|
public:
|
||
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Server")
|
||
|
|
FString Description;
|
||
|
|
|
||
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Server")
|
||
|
|
FString Host;
|
||
|
|
};
|
||
|
|
|
||
|
|
UCLASS(Config=EditorPerProjectUserSettings, DefaultConfig, meta=(DisplayName="Server Settings"))
|
||
|
|
class INTEGRATION_API UlxProjectSettings : public UDeveloperSettings
|
||
|
|
{
|
||
|
|
GENERATED_BODY()
|
||
|
|
|
||
|
|
public:
|
||
|
|
virtual FName GetContainerName() const override { return TEXT("Editor"); }
|
||
|
|
virtual FName GetCategoryName() const override { return TEXT("Luprex"); }
|
||
|
|
virtual FName GetSectionName() const override { return TEXT("Server"); }
|
||
|
|
|
||
|
|
UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category="Server",
|
||
|
|
meta=(AllowedClasses="/Script/Integration.lxServerSelection"))
|
||
|
|
TSoftObjectPtr<UlxServerSelection> ActiveServer;
|
||
|
|
};
|