UnrealImGui/Source/ImGui/Private/ImGuiDelegates.cpp
Sebastian d4ffe9443f Enforced IWYU-style PCH model:
- Removed explicit PCH.
- Fixed includes to compile for all supported engine versions, including non-unity builds.
- Configured build.cs to treat ImGui as an engine module and added stricter compilation rules.
2020-06-25 10:52:46 +01:00

38 lines
925 B
C++

// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
#include "ImGuiDelegates.h"
#include "ImGuiDelegatesContainer.h"
#include <Engine/World.h>
FSimpleMulticastDelegate& FImGuiDelegates::OnWorldEarlyDebug()
{
return OnWorldEarlyDebug(GWorld);
}
FSimpleMulticastDelegate& FImGuiDelegates::OnWorldEarlyDebug(UWorld* World)
{
return FImGuiDelegatesContainer::Get().OnWorldEarlyDebug(World);
}
FSimpleMulticastDelegate& FImGuiDelegates::OnMultiContextEarlyDebug()
{
return FImGuiDelegatesContainer::Get().OnMultiContextEarlyDebug();
}
FSimpleMulticastDelegate& FImGuiDelegates::OnWorldDebug()
{
return OnWorldDebug(GWorld);
}
FSimpleMulticastDelegate& FImGuiDelegates::OnWorldDebug(UWorld* World)
{
return FImGuiDelegatesContainer::Get().OnWorldDebug(World);
}
FSimpleMulticastDelegate& FImGuiDelegates::OnMultiContextDebug()
{
return FImGuiDelegatesContainer::Get().OnMultiContextDebug();
}