mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "FortItemDefinition.h"
|
|
|
|
class UFortWorldItemDefinition : public UFortItemDefinition
|
|
{
|
|
public:
|
|
bool CanBeDropped()
|
|
{
|
|
static auto bCanBeDroppedOffset = GetOffset("bCanBeDropped");
|
|
static auto bCanBeDroppedFieldMask = GetFieldMask(GetProperty("bCanBeDropped"));
|
|
return ReadBitfieldValue(bCanBeDroppedOffset, bCanBeDroppedFieldMask);
|
|
}
|
|
|
|
bool ShouldDropOnDeath()
|
|
{
|
|
static auto bDropOnDeathOffset = GetOffset("bDropOnDeath");
|
|
static auto bDropOnDeathFieldMask = GetFieldMask(GetProperty("bDropOnDeath"));
|
|
return ReadBitfieldValue(bDropOnDeathOffset, bDropOnDeathFieldMask);
|
|
}
|
|
|
|
bool ShouldPersistWhenFinalStackEmpty()
|
|
{
|
|
static auto bPersistInInventoryWhenFinalStackEmptyOffset = GetOffset("bPersistInInventoryWhenFinalStackEmpty", false);
|
|
|
|
if (bPersistInInventoryWhenFinalStackEmptyOffset == -1)
|
|
return false;
|
|
|
|
static auto bPersistInInventoryWhenFinalStackEmptyFieldMask = GetFieldMask(GetProperty("bPersistInInventoryWhenFinalStackEmpty"));
|
|
return ReadBitfieldValue(bPersistInInventoryWhenFinalStackEmptyOffset, bPersistInInventoryWhenFinalStackEmptyFieldMask);
|
|
}
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortWorldItemDefinition");
|
|
return Class;
|
|
}
|
|
}; |