You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- FBPTerminal::InlineGeneratedParameter added - the result of the function is directly used as input parameter, it's not stroed in a lical variable - FKismetFunctionContext::InlineGeneratedParameter - MathExpressionHandler - compile (to out intermediate representation) a subgraph using "reverse polish notation" approach - Math Expression node is not longer expanded - VMBackend supports InlineGeneratedParameter and InlineGeneratedParameter #codereview Nick.Whiting, Mike.Beach [CL 2587365 by Maciej Mroz in Main branch]
30 lines
965 B
C++
30 lines
965 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "KismetCompiler.h"
|
|
|
|
struct FBlueprintCompiledStatement;
|
|
class UK2Node_MathExpression;
|
|
struct FKismetFunctionContext;
|
|
|
|
class FKCHandler_MathExpression : public FNodeHandlingFunctor
|
|
{
|
|
FBlueprintCompiledStatement* GenerateFunctionRPN(UEdGraphNode* CurrentNode
|
|
, FKismetFunctionContext& Context
|
|
, UK2Node_MathExpression& MENode
|
|
, FBPTerminal* ResultTerm
|
|
, TMap<UEdGraphPin*, UEdGraphPin*>& InnerToOuterInput);
|
|
|
|
public:
|
|
FKCHandler_MathExpression(FKismetCompilerContext& InCompilerContext)
|
|
: FNodeHandlingFunctor(InCompilerContext)
|
|
{}
|
|
|
|
virtual void RegisterNets(FKismetFunctionContext& Context, UEdGraphNode* InNode) override;
|
|
virtual void RegisterNet(FKismetFunctionContext& Context, UEdGraphPin* Net) override;
|
|
virtual void Compile(FKismetFunctionContext& Context, UEdGraphNode* Node) override;
|
|
|
|
static bool CanBeCalledByMathExpression(const UFunction* Function);
|
|
};
|