// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Templates/SharedPointer.h" #include "UObject/Object.h" #include "OutputLogMenuContext.generated.h" class SConsoleInputBox; class SOutputLog; UCLASS() class UConsoleInputBoxMenuContext : public UObject { GENERATED_BODY() public: void Init(const TSharedRef& InConsoleInputBox) { WeakConsoleInputBox = InConsoleInputBox; } TSharedPtr GetConsoleInputBox() const { return WeakConsoleInputBox.Pin(); } private: TWeakPtr WeakConsoleInputBox; }; UCLASS() class UOutputLogMenuContext : public UObject { GENERATED_BODY() public: void Init(const TSharedRef& InOutputLog) { WeakOutputLog = InOutputLog; } TSharedPtr GetOutputLog() const { return WeakOutputLog.Pin(); } private: TWeakPtr WeakOutputLog; };