![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Extra namespace encapsulates common vocabulary. More...
Functions | |
| template<CEngineSubsystem T> | |
| T * | 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. | |
| template<CGameInstanceSubsystem T> | |
| T * | 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. | |
| template<CLocalPlayerSubsystem T> | |
| T * | 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. | |
| template<CWorldSubsystem T> | |
| T * | 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. | |
| template<CSubsystem T, typename... Args> | |
| T & | 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. | |
| template<CSubsystem T, typename... Args> | |
| T * | 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. | |
| template<CSubsystem T> | |
| bool | ShouldCreate (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. | |
Extra namespace encapsulates common vocabulary.
| 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 65 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 135 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 153 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 79 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 172 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 193 of file Subsystems.h.
| bool Mcro::Subsystems::Subsystems::ShouldCreate | ( | 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 215 of file Subsystems.h.