You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira None #rb None #preflight 62571ff4667d4516641a6122 [CL 19744610 by Phillip Kavan in ue5-main branch]
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "KismetCompiledFunctionContext.h"
|
|
#include "KismetCompiler.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// IKismetCompilerBackend
|
|
|
|
class IKismetCompilerBackend
|
|
{
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// FKismetVMBackend
|
|
|
|
class FKismetCompilerVMBackend : public IKismetCompilerBackend
|
|
{
|
|
public:
|
|
typedef TMap<FBlueprintCompiledStatement*, CodeSkipSizeType> TStatementToSkipSizeMap;
|
|
|
|
protected:
|
|
UBlueprint* Blueprint;
|
|
UEdGraphSchema_K2* Schema;
|
|
FCompilerResultsLog& MessageLog;
|
|
FKismetCompilerContext& CompilerContext;
|
|
|
|
TStatementToSkipSizeMap UbergraphStatementLabelMap;
|
|
public:
|
|
FKismetCompilerVMBackend(UBlueprint* InBlueprint, UEdGraphSchema_K2* InSchema, FKismetCompilerContext& InContext)
|
|
: Blueprint(InBlueprint)
|
|
, Schema(InSchema)
|
|
, MessageLog(InContext.MessageLog)
|
|
, CompilerContext(InContext)
|
|
{
|
|
}
|
|
|
|
void GenerateCodeFromClass(UClass* SourceClass, TIndirectArray<FKismetFunctionContext>& Functions, bool bGenerateStubsOnly=false);
|
|
|
|
protected:
|
|
/** Builds both the header declaration and body implementation of a function */
|
|
void ConstructFunction(FKismetFunctionContext& FunctionContext, bool bIsUbergraph, bool bGenerateStubOnly);
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|