Files
UnrealEngineUWP/Engine/Source/Developer/AssetTools/Private/AssetToolsModule.cpp
2014-03-14 14:13:41 -04:00

36 lines
687 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "AssetToolsPrivatePCH.h"
#include "AssetToolsModule.h"
#include "AssetToolsConsoleCommands.h"
IMPLEMENT_MODULE( FAssetToolsModule, AssetTools );
DEFINE_LOG_CATEGORY(LogAssetTools);
void FAssetToolsModule::StartupModule()
{
AssetTools = new FAssetTools();
ConsoleCommands = new FAssetToolsConsoleCommands(*this);
}
void FAssetToolsModule::ShutdownModule()
{
if (AssetTools != NULL)
{
delete AssetTools;
AssetTools = NULL;
}
if (ConsoleCommands != NULL)
{
delete ConsoleCommands;
ConsoleCommands = NULL;
}
}
IAssetTools& FAssetToolsModule::Get() const
{
check(AssetTools);
return *AssetTools;
}