Skip to content

Commit

Permalink
Modified dino data and item to add easier handling
Browse files Browse the repository at this point in the history
Pelayori committed Nov 24, 2023
1 parent ed3f6ea commit cfd806e
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions AsaApi/Core/Public/API/ARK/Inventory.h
Original file line number Diff line number Diff line change
@@ -289,6 +289,7 @@ struct UPrimalItem : UObject
bool& bUseBPOnLocalUseField() { return *GetNativePointerField<bool*>(this, "UPrimalItem.bUseBPOnLocalUse"); }
unsigned int& AssociatedDinoID1Field() { return *GetNativePointerField<unsigned int*>(this, "UPrimalItem.AssociatedDinoID1"); }
unsigned int& AssociatedDinoID2Field() { return *GetNativePointerField<unsigned int*>(this, "UPrimalItem.AssociatedDinoID2"); }
unsigned char& ItemQualityIndexField() { return *GetNativePointerField<unsigned char*>(this, "UPrimalItem.ItemQualityIndex"); }

// Bitfields

18 changes: 18 additions & 0 deletions AsaApi/Core/Public/API/ARK/Other.h
Original file line number Diff line number Diff line change
@@ -561,6 +561,12 @@ struct BattleyePlayerInfo

struct FARKDinoData
{
UClass* DinoClass;
TArray<unsigned char, TSizedDefaultAllocator<32> > DinoData;
FString DinoNameInMap;
FString DinoName;
bool bNetInfoFromClient;

// Fields

UClass*& DinoClassField() { return *GetNativePointerField<UClass**>(this, "FARKDinoData.DinoClass"); }
@@ -2349,6 +2355,7 @@ struct FConfigCacheIni

struct FCustomItemByteArray
{
TArray<unsigned char> Bytes;
// Fields

TArray<unsigned char, TSizedDefaultAllocator<32> >& BytesField() { return *GetNativePointerField<TArray<unsigned char, TSizedDefaultAllocator<32> >*>(this, "FCustomItemByteArray.Bytes"); }
@@ -2363,6 +2370,7 @@ struct FCustomItemByteArray

struct FCustomItemByteArrays
{
TArray<FCustomItemByteArray> ByteArrays;
// Fields

TArray<FCustomItemByteArray, TSizedDefaultAllocator<32> >& ByteArraysField() { return *GetNativePointerField<TArray<FCustomItemByteArray, TSizedDefaultAllocator<32> >*>(this, "FCustomItemByteArrays.ByteArrays"); }
@@ -2378,6 +2386,7 @@ struct FCustomItemByteArrays

struct FCustomItemDoubles
{
TArray<double> Doubles;
// Fields

TArray<double, TSizedDefaultAllocator<32> >& DoublesField() { return *GetNativePointerField<TArray<double, TSizedDefaultAllocator<32> >*>(this, "FCustomItemDoubles.Doubles"); }
@@ -2394,6 +2403,15 @@ struct FCustomItemDoubles

struct FCustomItemData
{
FName CustomDataName;
TArray<FString, TSizedDefaultAllocator<32> > CustomDataStrings;
TArray<float, TSizedDefaultAllocator<32> > CustomDataFloats;
TArray<UObject*, TSizedDefaultAllocator<32> > CustomDataObjects;
TArray<UClass*, TSizedDefaultAllocator<32> > CustomDataClasses;
TArray<FName, TSizedDefaultAllocator<32> > CustomDataNames;
FCustomItemByteArrays CustomDataBytes;
FCustomItemDoubles CustomDataDoubles;

// Fields

FName& CustomDataNameField() { return *GetNativePointerField<FName*>(this, "FCustomItemData.CustomDataName"); }

0 comments on commit cfd806e

Please sign in to comment.