BakkesMod Programming Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GameWrapper

View Implementation


GameWrapper(const GameWrapper &other)


Parameter Type Description
other GameWrapper

GameWrapper 
operator=(GameWrapper rhs)


Parameter Type Description
rhs GameWrapper

~GameWrapper()



bool 
IsInGame()



bool 
IsInOnlineGame()



bool 
IsInFreeplay()



bool 
IsInReplay()



bool 
IsInCustomTraining()



bool 
IsSpectatingInOnlineGame()



bool 
IsPaused()



bool 
IsUsingEpicVersion()



bool 
IsUsingSteamVersion()



int 
GetSteamVersion()



std::string 
GetPsyBuildID()



ServerWrapper 
GetCurrentGameState()



ServerWrapper 
GetOnlineGame()



ServerWrapper 
GetGameEventAsServer()



ReplayServerWrapper 
GetGameEventAsReplay()



MMRWrapper 
GetMMRWrapper()



CarWrapper 
GetLocalCar()



CameraWrapper 
GetCamera()



EngineTAWrapper 
GetEngine()



PluginManagerWrapper 
GetPluginManager()



GuiManagerWrapper 
GetGUIManager()



PlayerControllerWrapper 
GetPlayerController()



ItemsWrapper 
GetItemsWrapper()



LoadoutSaveWrapper 
GetUserLoadoutSave() const



MatchmakingWrapper 
GetMatchmakingWrapper()



SettingsWrapper 
GetSettings()



ReplayManagerWrapper 
GetReplayManagerWrapper() const



MapListWrapper 
GetMapListWrapper() const



ModalWrapper 
CreateModal(const std::string &title)


Parameter Type Description
title const std::string &

TextInputModalWrapper 
CreateTextInputModal(const std::string &title)


Parameter Type Description
title const std::string &

void 
OverrideParams(void *src, size_t memsize)


Parameter Type Description
src void *
memsize size_t

void 
SetTimeout(std::function< void(GameWrapper *)> theLambda, float time)


Parameter Type Description
theLambda GameWrapper
time float

void 
Execute(std::function< void(GameWrapper *)> theLambda)


Parameter Type Description
theLambda GameWrapper

void 
RegisterDrawable(std::function< void(CanvasWrapper)> callback)


Parameter Type Description
callback CanvasWrapper

void 
UnregisterDrawables()



std::string 
GetFNameByIndex(int index)


Parameter Type Description
index int

int 
GetFNameIndexByString(std::string name)


Parameter Type Description
name std::string

void 
HookEvent(std::string eventName, std::function< void(std::string eventName)> callback)


Parameter Type Description
eventName std::string
callback std::function< void(std::string eventName)>

void 
UnhookEvent(std::string eventName)


Parameter Type Description
eventName std::string

void 
HookEventPost(std::string eventName, std::function< void(std::string eventName)> callback)


Parameter Type Description
eventName std::string
callback std::function< void(std::string eventName)>

void 
UnhookEventPost(std::string eventName)


Parameter Type Description
eventName std::string

void 
LogToChatbox(std::string text, std::string sender=“BAKKESMOD”)


Parameter Type Description
text std::string
sender std::string

void 
LoadToastTexture(std::string name, std::wstring path)


Parameter Type Description
name std::string
path std::wstring

void 
Toast(std::string title, std::string text, std::string texture=“default”, float timeout=3.5f, uint8_t toastType=0, float width=290.f, float height=60.f)


Parameter Type Description
title std::string
text std::string
texture std::string
timeout float
toastType uint8_t
width float
height float

bool 
IsKeyPressed(int keyName)


Parameter Type Description
keyName int

int 
IsCursorVisible()



void 
ExecuteUnrealCommand(std::string command)


Parameter Type Description
command std::string

std::string 
GetRandomMap()



std::string 
GetCurrentMap()



unsigned long long 
GetSteamID()



std::string 
GetEpicID()



UniqueIDWrapper 
GetUniqueID()



UnrealStringWrapper 
GetPlayerName()



ClubDetailsWrapper 
GetLocalClub()



SequenceWrapper 
GetMainSequence()



GfxDataTrainingWrapper 
GetGfxTrainingData() const





void 
SetBotLoadout(PriWrapper &bot_pri, const struct BotLoadoutData &loadout_data)


Parameter Type Description
bot_pri PriWrapper
loadout_data BotLoadoutData

Vector2 
GetScreenSize()



float 
GetDisplayScale()



float 
GetInterfaceScale()



float 
GetSafeZoneRatio()



float 
GetUIScale()



unsigned int 
GetbMetric()



UnrealStringWrapper 
GetUILanguage()



bool 
GetbColorBlind()



std::wstring 
GetBakkesModPathW()



std::wstring 
GetDataFolderW()



int 
GetBakkesModVersion()



void 
PlayReplay(const std::wstring &path)


Parameter Type Description
path const std::wstring &

void 
PlayReplayFromTime(const std::wstring &path, float time)


Parameter Type Description
path const std::wstring &
time float

void 
HookEventWithCaller(std::string eventName, std::function< void(T caller, void *params, std::string eventName)> callback)


Parameter Type Description
eventName std::string
callback std::function< void(T caller, void *params, std::string eventName)>

void 
HookEventWithCallerPost(std::string eventName, std::function< void(T caller, void *params, std::string eventName)> callback)


Parameter Type Description
eventName std::string
callback std::function< void(T caller, void *params, std::string eventName)>