17 lines
472 B
C
17 lines
472 B
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Templates/UniquePtr.h"
|
|
|
|
// The following works in the header, make sure that you include 'HAL/IConsoleManager.h' in the cpp!
|
|
struct IConsoleCommand;
|
|
|
|
struct FConsoleCommandUnregister
|
|
{
|
|
void operator()(IConsoleCommand* ConsoleCommandPtr) const;
|
|
};
|
|
|
|
/** Experimental wrapper around a registered IConsoleCommand */
|
|
using FConsoleCommandPtr = TUniquePtr<IConsoleCommand, FConsoleCommandUnregister>;
|