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:
michael noland
2019-08-05 11:45:53 -04:00

View File

@@ -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))
{
}
};
/**