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:
57
dependencies/reboot/Project Reboot 3.0/FortAthenaMutator_GiveItemsAtGamePhaseStep.h
vendored
Normal file
57
dependencies/reboot/Project Reboot 3.0/FortAthenaMutator_GiveItemsAtGamePhaseStep.h
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
#pragma once
|
||||
|
||||
#include "Actor.h"
|
||||
#include "CurveTable.h"
|
||||
#include "GameplayAbilityTypes.h"
|
||||
#include "FortWorldItemDefinition.h"
|
||||
#include "Stack.h"
|
||||
#include "FortAthenaMutator.h"
|
||||
|
||||
struct FItemsToGive
|
||||
{
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/FortniteGame.ItemsToGive");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
static int GetStructSize() { return GetStruct()->GetPropertiesSize(); }
|
||||
|
||||
UFortWorldItemDefinition*& GetItemToDrop()
|
||||
{
|
||||
static auto ItemToDropOffset = FindOffsetStruct("/Script/FortniteGame.ItemsToGive", "ItemToDrop");
|
||||
return *(UFortWorldItemDefinition**)(__int64(this) + ItemToDropOffset);
|
||||
}
|
||||
|
||||
FScalableFloat& GetNumberToGive()
|
||||
{
|
||||
static auto NumberToGiveOffset = FindOffsetStruct("/Script/FortniteGame.ItemsToGive", "NumberToGive");
|
||||
return *(FScalableFloat*)(__int64(this) + NumberToGiveOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class AFortAthenaMutator_GiveItemsAtGamePhaseStep : public AFortAthenaMutator
|
||||
{
|
||||
public:
|
||||
static inline void (*OnGamePhaseStepChangedOriginal)(UObject* Context, FFrame& Stack, void* Ret);
|
||||
|
||||
uint8_t& GetPhaseToGiveItems()
|
||||
{
|
||||
static auto PhaseToGiveItemsOffset = GetOffset("PhaseToGiveItems");
|
||||
return Get<uint8_t>(PhaseToGiveItemsOffset);
|
||||
}
|
||||
|
||||
TArray<FItemsToGive>& GetItemsToGive()
|
||||
{
|
||||
static auto ItemsToGiveOffset = GetOffset("ItemsToGive");
|
||||
return Get<TArray<FItemsToGive>>(ItemsToGiveOffset);
|
||||
}
|
||||
|
||||
static void OnGamePhaseStepChangedHook(UObject* Context, FFrame& Stack, void* Ret);
|
||||
|
||||
static UClass* StaticClass()
|
||||
{
|
||||
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortAthenaMutator_GiveItemsAtGamePhaseStep");
|
||||
return Class;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user