MCRO
C++23 utilities for Unreal Engine.
|
Functions | |
template<CEngineSubsystem T> | |
T * | Get () |
template<CGameInstanceSubsystem T> | |
T * | Get (const UObject *worldContextObject=nullptr, EGameInstanceFallback fallback=EGameInstanceFallback::UseGameViewport, EGetWorldErrorMode errorMode=EGetWorldErrorMode::LogAndReturnNull) |
template<CLocalPlayerSubsystem T> | |
T * | Get (const UObject *worldContext) |
template<CWorldSubsystem T> | |
T * | Get (const UObject *worldContext, EGetWorldErrorMode errorMode=EGetWorldErrorMode::LogAndReturnNull) |
template<CSubsystem T, typename... Args> | |
T & | GetChecked (Args... args) |
template<CSubsystem T, typename... Args> | |
T * | GetEnsured (Args... args) |
template<CSubsystem T> | |
bool | ShouldCreateSubsystem (UObject *outer) |
T * Mcro::Subsystems::Subsystems::Get | ( | ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem.
T | UEngineSubsystem derivative |
Definition at line 55 of file Subsystems.h.
T * Mcro::Subsystems::Subsystems::Get | ( | const UObject * | worldContext | ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem.
T | ULocalPlayerSubsystem derivative |
Definition at line 123 of file Subsystems.h.
T * Mcro::Subsystems::Subsystems::Get | ( | const UObject * | worldContext, |
EGetWorldErrorMode | errorMode = EGetWorldErrorMode::LogAndReturnNull ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem.
T | UWorldSubsystem derivative |
Definition at line 140 of file Subsystems.h.
T * Mcro::Subsystems::Subsystems::Get | ( | const UObject * | worldContextObject = nullptr, |
EGameInstanceFallback | fallback = EGameInstanceFallback::UseGameViewport, | ||
EGetWorldErrorMode | errorMode = EGetWorldErrorMode::LogAndReturnNull ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem.
T | UGameInstanceSubsystem derivative |
Definition at line 68 of file Subsystems.h.
T & Mcro::Subsystems::Subsystems::GetChecked | ( | Args... | args | ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem. This is a checked version so if any steps fail to produce the target subsystem the program may crash.
T | type of the subsystem |
Definition at line 158 of file Subsystems.h.
T * Mcro::Subsystems::Subsystems::GetEnsured | ( | Args... | args | ) |
Helper for getting a subsystem, the internal boilerplate will be chosen based on the type of subsystem T inherits from. Required arguments may vary depending on the type of subsystem. This is an ensured version so if any steps fail to produce the target subsystem an ensure may be hit.
T | type of the subsystem |
Definition at line 178 of file Subsystems.h.
bool Mcro::Subsystems::Subsystems::ShouldCreateSubsystem | ( | UObject * | outer | ) |
Helper for checking if some other subsystem should be created. Useful when you want to make a subsystem which should only be created if some other subsystem should be also created.
T | type of the subsystem |
outer | be sure to pass outer argument which type aligns with checked subsystem outer. This may fail for example if you pass game instance as outer to check for world subsystem existence as ShouldCreateSubsystem of that subsystem may expect the outer to be World. |
Definition at line 199 of file Subsystems.h.