You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Core: Added FAutoConsoleCommandWithWorldArgsAndOutputDevice wrapper to pair with FConsoleCommandWithWorldArgsAndOutputDeviceDelegate
#ROBOMERGE-OWNER: ryan.vance #ROBOMERGE-AUTHOR: michael.noland #ROBOMERGE-SOURCE: CL 7620638 via CL 7625963 via CL 7626121 #ROBOMERGE-BOT: DEVVR (Main -> Dev-VR) (v385-7708028) [CL 7760506 by michael noland in Dev-VR branch]
This commit is contained in:
@@ -1234,8 +1234,27 @@ public:
|
||||
: FAutoConsoleObject(IConsoleManager::Get().RegisterConsoleCommand(Name, Help, Command, Flags))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Autoregistering console command with world, args, an output device
|
||||
*/
|
||||
class CORE_API FAutoConsoleCommandWithWorldArgsAndOutputDevice : private FAutoConsoleObject
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Register a console command that takes an output device
|
||||
*
|
||||
* @param Name The name of this command (must not be nullptr)
|
||||
* @param Help Help text for this command
|
||||
* @param Command The user function to call when this command is executed
|
||||
* @param Flags Optional flags bitmask
|
||||
*/
|
||||
FAutoConsoleCommandWithWorldArgsAndOutputDevice(const TCHAR* Name, const TCHAR* Help, const FConsoleCommandWithWorldArgsAndOutputDeviceDelegate& Command, uint32 Flags = ECVF_Default)
|
||||
: FAutoConsoleObject(IConsoleManager::Get().RegisterConsoleCommand(Name, Help, Command, Flags))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user