mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
34
dependencies/reboot/Project Reboot 3.0/FortVolume.h
vendored
Normal file
34
dependencies/reboot/Project Reboot 3.0/FortVolume.h
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
#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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user