Files
Reboot-Launcher/dependencies/reboot/Project Reboot 3.0/FortVolumeManager.cpp
Alessandro Autiero b41e22adeb <feat: New project structure>
<feat: New release>
2023-09-02 15:34:15 +02:00

14 lines
559 B
C++

#include "FortVolumeManager.h"
AFortVolume* AFortVolumeManager::SpawnVolumeHook(AFortVolumeManager* VolumeManager, UClass* VolumeActor, UFortPlaysetItemDefinition* Playset, FVector Location, FRotator Rotation)
{
// They inlined SetPlayset idk why
static auto VolumeObjectsOffset = VolumeManager->GetOffset("VolumeObjects");
auto& VolumeObjects = VolumeManager->Get<TArray<AFortVolume*>>(VolumeObjectsOffset);
LOG_INFO(LogDev, "SpawnVolumeHook!");
auto ret = SpawnVolumeOriginal(VolumeManager, VolumeActor, Playset, Location, Rotation);
return ret;
}