You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb simon.therriault #jira UETOOL-4463 #preflight 623fc3e58073508cfc1fbc78 [CL 19527360 by George Rolfe in ue5-main branch]
28 lines
708 B
C++
28 lines
708 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Async/Future.h"
|
|
|
|
class UWebAPIDefinition;
|
|
|
|
enum class EWebAPIConversionResult : uint8
|
|
{
|
|
Failed = 0,
|
|
Succeeded = 1,
|
|
FailedWithErrors = 2,
|
|
FailedWithWarnings = 3
|
|
};
|
|
|
|
/** Interface for a provider of a WebAPI Schema */
|
|
class WEBAPIEDITOR_API IWebAPIProviderInterface
|
|
: public TSharedFromThis<IWebAPIProviderInterface>
|
|
{
|
|
public:
|
|
virtual ~IWebAPIProviderInterface() = default;
|
|
|
|
/** Convert and modify the WebAPISchema for the given Definition. Returns true if successful. */
|
|
virtual TFuture<EWebAPIConversionResult> ConvertToWebAPISchema(const TWeakObjectPtr<UWebAPIDefinition>& InDefinition) = 0;
|
|
};
|