2023-06-08 17:10:14 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "GameFramework/GameModeBase.h"
|
|
|
|
|
#include "enginewrapper.hpp"
|
|
|
|
|
#include "engineutil.hpp"
|
2023-06-09 14:36:47 -04:00
|
|
|
#include "IntegrationGameModeBase.generated.h"
|
2023-06-08 17:10:14 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
UCLASS()
|
2023-06-09 14:36:47 -04:00
|
|
|
class INTEGRATION_API AIntegrationGameModeBase : public AGameModeBase
|
2023-06-08 17:10:14 -04:00
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
|
|
public:
|
2023-06-09 14:36:47 -04:00
|
|
|
AIntegrationGameModeBase();
|
2023-06-08 17:10:14 -04:00
|
|
|
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;
|
|
|
|
|
};
|