mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
34 lines
838 B
C++
34 lines
838 B
C++
#pragma once
|
|
|
|
#include "BuildingActor.h"
|
|
|
|
enum class EVolumeState : uint8_t
|
|
{
|
|
Uninitialized = 0,
|
|
ReadOnly = 1,
|
|
Initializing = 2,
|
|
Ready = 3,
|
|
EVolumeState_MAX = 4
|
|
};
|
|
|
|
class AFortVolume : public ABuildingActor // ABuildingGameplayActor
|
|
{
|
|
public:
|
|
EVolumeState& GetVolumeState()
|
|
{
|
|
static auto VolumeStateOffset = GetOffset("VolumeState");
|
|
return Get<EVolumeState>(VolumeStateOffset);
|
|
}
|
|
|
|
void SetCurrentPlayset(class UFortPlaysetItemDefinition* NewPlayset)
|
|
{
|
|
static auto SetCurrentPlaysetFn = FindObject<UFunction>("/Script/FortniteGame.FortVolume.SetCurrentPlayset");
|
|
this->ProcessEvent(SetCurrentPlaysetFn, &NewPlayset);
|
|
}
|
|
|
|
void UpdateSize(const FVector& Scale)
|
|
{
|
|
static auto UpdateSizeFn = FindObject<UFunction>("/Script/FortniteGame.FortVolume.UpdateSize");
|
|
this->ProcessEvent(UpdateSizeFn, (FVector*)&Scale);
|
|
}
|
|
}; |