Files
integration/Source/Integration/IntegrationGameModeBase.h
2023-06-09 14:36:47 -04:00

42 lines
917 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "enginewrapper.hpp"
#include "engineutil.hpp"
#include "IntegrationGameModeBase.generated.h"
/**
*
*/
UCLASS()
class INTEGRATION_API AIntegrationGameModeBase : public AGameModeBase
{
GENERATED_BODY()
public:
AIntegrationGameModeBase();
virtual void BeginPlay() override;
virtual void Tick(float) override;
inline bool luprex_initialized() {
return Luprex.play_initialize != nullptr;
}
// Set the entire contents of the console output box.
UFUNCTION(BlueprintImplementableEvent)
void ConsoleSetOutput(const FString& text);
UFUNCTION(BlueprintCallable)
void ConsoleSendInput(const FString& text);
void HandleConsoleOutput();
// Refresh the console output.
engineutil::ConsoleOutput ConsoleOutput;
static EngineWrapper Luprex;
float EngineSeconds;
};