28 lines
648 B
C++
28 lines
648 B
C++
#pragma once
|
|
#include <spdlog/spdlog.h>
|
|
#include <atomic>
|
|
|
|
inline std::atomic_bool g_Console_Enabled { false };
|
|
|
|
namespace SDK {
|
|
class UEngine;
|
|
class UObject;
|
|
class UWorld;
|
|
class APawn;
|
|
class UGameplayStatics;
|
|
class UConsole;
|
|
class UInputSettings;
|
|
class UKismetStringLibrary;
|
|
class UGameInstance;
|
|
class ULocalPlayer;
|
|
class APlayerController;
|
|
}
|
|
// Unreal Engine functions
|
|
/**
|
|
* @brief Gets the current player Pawn from the world.
|
|
* @param world Optional UWorld pointer.
|
|
* @return Player Pawn or nullptr.
|
|
*/
|
|
SDK::APawn* GetPawnFromWorld(SDK::UWorld* world = nullptr);
|
|
|
|
void ReactivateDevConsole(std::shared_ptr<spdlog::logger> logger); |