mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
31 lines
797 B
C++
31 lines
797 B
C++
#pragma once
|
|
|
|
#include "Pawn.h"
|
|
#include "FortWeapon.h"
|
|
#include "FortDecoItemDefinition.h"
|
|
|
|
class AFortPawn : public APawn
|
|
{
|
|
public:
|
|
AFortWeapon* EquipWeaponDefinition(UFortWeaponItemDefinition* WeaponData, const FGuid& ItemEntryGuid);
|
|
bool PickUpActor(AActor* PickupTarget, UFortDecoItemDefinition* PlacementDecoItemDefinition);
|
|
|
|
AFortWeapon*& GetCurrentWeapon()
|
|
{
|
|
static auto CurrentWeaponOffset = GetOffset("CurrentWeapon");
|
|
return Get<AFortWeapon*>(CurrentWeaponOffset);
|
|
}
|
|
|
|
bool IsDBNO()
|
|
{
|
|
static auto bIsDBNOFieldMask = GetFieldMask(GetProperty("bIsDBNO"));
|
|
static auto bIsDBNOOffset = GetOffset("bIsDBNO");
|
|
|
|
return ReadBitfieldValue(bIsDBNOOffset, bIsDBNOFieldMask);
|
|
}
|
|
|
|
void SetHealth(float NewHealth);
|
|
void SetShield(float NewShield);
|
|
|
|
static UClass* StaticClass();
|
|
}; |