mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Add project files.
This commit is contained in:
33
Project Reboot 3.0/FortItem.h
Normal file
33
Project Reboot 3.0/FortItem.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "NetSerialization.h"
|
||||
#include "Class.h"
|
||||
|
||||
#include "reboot.h"
|
||||
|
||||
struct FFortItemEntry : FFastArraySerializerItem
|
||||
{
|
||||
FGuid& GetItemGuid()
|
||||
{
|
||||
static auto ItemGuidOffset = FindOffsetStruct("/Script/FortniteGame.FortItemEntry", "ItemGuid");
|
||||
return *(FGuid*)(__int64(this) + ItemGuidOffset);
|
||||
}
|
||||
|
||||
UObject*& GetItemDefinition()
|
||||
{
|
||||
static auto ItemDefinitionOffset = FindOffsetStruct("/Script/FortniteGame.FortItemEntry", "ItemDefinition");
|
||||
return *(UObject**)(__int64(this) + ItemDefinitionOffset);
|
||||
}
|
||||
};
|
||||
|
||||
class UFortItem : public UObject
|
||||
{
|
||||
public:
|
||||
FFortItemEntry* GetItemEntry()
|
||||
{
|
||||
static auto ItemEntryOffset = this->GetOffset("ItemEntry");
|
||||
return &Get<FFortItemEntry>(ItemEntryOffset);
|
||||
}
|
||||
|
||||
void SetOwningControllerForTemporaryItem(UObject* Controller);
|
||||
};
|
||||
Reference in New Issue
Block a user