Files
UnrealEngineUWP/Engine/Source/Editor/Documentation/Public/DocumentationSettings.h
derek truong bdccfed617 [UEFN] Support for static (e.g. config) and dynamic (e.g. explicit code registrations) documentation url redirects
#rb rex.hill
#rb jamie.dale
#preflight 64710d8c430db30bda51c079

[CL 25655345 by derek truong in ue5-main branch]
2023-05-26 18:24:46 -04:00

50 lines
1001 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "DocumentationRedirect.h"
#include "Engine/DeveloperSettings.h"
#include "IDocumentation.h"
#include "DocumentationSettings.generated.h"
USTRUCT()
struct FDocumentationBaseUrl
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY()
FString Id;
UPROPERTY()
FString Url;
FDocumentationBaseUrl() {};
FDocumentationBaseUrl(FString const& InId, FString const& InUrl)
: Id(InId), Url(InUrl)
{};
/** Returns true if either the ID or URL is unset. */
bool IsEmpty() const
{
return Id.IsEmpty() || Url.IsEmpty();
}
};
UCLASS(config=Editor)
class UDocumentationSettings : public UDeveloperSettings
{
GENERATED_BODY()
public:
// Array of base URLs for documentation links that are loaded on startup
UPROPERTY(Config)
TArray<FDocumentationBaseUrl> DocumentationBaseUrls;
// Array of static documentation redirects registered on startup
UPROPERTY(Config)
TArray<FDocumentationRedirect> DocumentationRedirects;
};