Files
UnrealEngineUWP/Engine/Source/Editor/WorldBrowser/Public/WorldBrowserModule.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

61 lines
1.4 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
class FLevelCollectionModel;
/**
* The module holding all of the UI related pieces for SubLevels management
*/
class FWorldBrowserModule : public IModuleInterface
{
public:
/**
* Called right after the module DLL has been loaded and the module object has been created
*/
virtual void StartupModule();
/**
* Called before the module is unloaded, right before the module object is destroyed.
*/
virtual void ShutdownModule();
/**
* Creates a levels hierarchy widget
*/
virtual TSharedRef<class SWidget> CreateWorldBrowserHierarchy();
/**
* Creates a levels details widget
*/
virtual TSharedRef<class SWidget> CreateWorldBrowserDetails();
/**
* Creates a levels composition widget
*/
virtual TSharedRef<class SWidget> CreateWorldBrowserComposition();
/**
* @return world model shared between all World Browser editors
*/
virtual TSharedPtr<class FLevelCollectionModel> SharedWorldModel(UWorld* InWorld);
/**
*
*/
DECLARE_EVENT_OneParam(FWorldBrowserModule, FOnBrowseWorld, UWorld*);
FOnBrowseWorld OnBrowseWorld;
private:
void OnWorldCreated(UWorld* InWorld);
void OnWorldDestroyed(UWorld* InWorld);
void OnWorldCompositionChanged(UWorld* InWorld);
private:
TWeakPtr<class FLevelCollectionModel> WorldModel;
};