You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Splitted World Browser views into three independent windows, each window can be summoned from a hierarchy view or details view toolbar World composition can now be toggled through WorldSettings - bEnableWorldComposition. Once enabled persistent level will be treated as a world root. No more '?worldcompistion' parameter workarounds. 'Open World' command was removed, as levels saved with world composition enabled can be open through 'Open Level' command. Added bEnableWorldOriginRebasing parameter to WorldSettings, which contols whether world origin shifting should be used [CL 2072584 by Dmitriy Dyomin in Main branch]
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "ModuleInterface.h"
|
|
|
|
/**
|
|
* 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, const UWorld::InitializationValues IVS);
|
|
void OnWorldCleanup(UWorld* InWorld, bool bSessionEnded, bool bCleanupResources);
|
|
void OnWorldCompositionChanged(UWorld* InWorld);
|
|
|
|
private:
|
|
TWeakPtr<class FLevelCollectionModel> WorldModel;
|
|
TSharedPtr<class FStreamingLevelEdMode> EdModeStreamingLevel;
|
|
};
|