Files
UnrealEngineUWP/Engine/Source/Editor/TimeManagementEditor/Private/TimeManagementEditorModule.cpp
Ben Marsh 9655b03674 Trigger a link error whenever a module is missing a valid IMPLEMENT_MODULE macro on Windows.
The IMPLEMENT_MODULE macro now defines an empty function called IMPLEMENT_MODULE_{ModuleName}, to which we force a reference to via the linker command line. This behavior can be disabled on a per-module basis by setting bRequiresImplementModule = false from a .build.cs file.

#rb none

[CL 4827582 by Ben Marsh in Main branch]
2019-01-28 22:59:56 -05:00

27 lines
606 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
#include "STimecodeProviderTab.h"
/**
* Time Management Editor module
*/
class FTimeManagementEditorModule : public IModuleInterface
{
public:
//~ IModuleInterface interface
virtual void StartupModule() override
{
STimecodeProviderTab::RegisterNomadTabSpawner();
}
virtual void ShutdownModule() override
{
STimecodeProviderTab::UnregisterNomadTabSpawner();
}
};
IMPLEMENT_MODULE(FTimeManagementEditorModule, TimeManagementEditor);