mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
28 lines
593 B
C++
28 lines
593 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 UpdateSize(const FVector& Scale)
|
|
{
|
|
static auto UpdateSizeFn = FindObject<UFunction>("/Script/FortniteGame.FortVolume.UpdateSize");
|
|
this->ProcessEvent(UpdateSizeFn, (FVector*)&Scale);
|
|
}
|
|
}; |