mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
17 lines
411 B
C++
17 lines
411 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
|
|
#include "Map.h"
|
|
|
|
class UDataTable : public UObject
|
|
{
|
|
public:
|
|
template <typename RowDataType = uint8_t>
|
|
TMap<FName, RowDataType*>& GetRowMap()
|
|
{
|
|
static auto RowStructOffset = FindOffsetStruct("/Script/Engine.DataTable", "RowStruct");
|
|
|
|
return *(TMap<FName, RowDataType*>*)(__int64(this) + (RowStructOffset + sizeof(UObject*))); // because after rowstruct is rowmap
|
|
}
|
|
}; |