mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-14 03:32:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
36
dependencies/reboot/Project Reboot 3.0/Level.cpp
vendored
Normal file
36
dependencies/reboot/Project Reboot 3.0/Level.cpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "Level.h"
|
||||
|
||||
UWorld*& ULevel::GetOwningWorld()
|
||||
{
|
||||
static auto OwningWorldOffset = GetOffset("OwningWorld");
|
||||
return Get<UWorld*>(OwningWorldOffset);
|
||||
}
|
||||
|
||||
bool ULevel::HasVisibilityChangeRequestPending()
|
||||
{
|
||||
// I believe implementation on this changes depending on the version
|
||||
|
||||
auto OwningWorld = GetOwningWorld();
|
||||
|
||||
if (!OwningWorld)
|
||||
return false;
|
||||
|
||||
static auto CurrentLevelPendingVisibilityOffset = OwningWorld->GetOffset("CurrentLevelPendingVisibility");
|
||||
auto CurrentLevelPendingVisibility = OwningWorld->Get<ULevel*>(CurrentLevelPendingVisibilityOffset);
|
||||
|
||||
static auto CurrentLevelPendingInvisibilityOffset= OwningWorld->GetOffset("CurrentLevelPendingInvisibility");
|
||||
auto CurrentLevelPendingInvisibility = OwningWorld->Get<ULevel*>(CurrentLevelPendingInvisibilityOffset);
|
||||
|
||||
return this == CurrentLevelPendingVisibility || this == CurrentLevelPendingInvisibility;
|
||||
}
|
||||
|
||||
AWorldSettings* ULevel::GetWorldSettings(bool bChecked) const
|
||||
{
|
||||
if (bChecked)
|
||||
{
|
||||
// checkf(WorldSettings != nullptr, TEXT("%s"), *GetPathName());
|
||||
}
|
||||
|
||||
static auto WorldSettingsOffset = GetOffset("WorldSettings");
|
||||
return Get<AWorldSettings*>(WorldSettingsOffset);
|
||||
}
|
||||
Reference in New Issue
Block a user