Skip to content

Commit

Permalink
SDK: Add FProperty::get_data<T> (Fix CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Nov 13, 2023
1 parent 83b08c2 commit b476356
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared/sdk/FProperty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class FProperty : public FField {
return *(int32_t*)((uintptr_t)this + s_offset_offset);
}

template<typename T>
T* get_data(sdk::UObject* object) const {
return (T*)((uintptr_t)object + get_offset());
}

// Given xyz props from FVector, find the offset which matches up with all of them
static void bruteforce_fproperty_offset(FProperty* x_prop, FProperty* y_prop, FProperty* z_prop);

Expand Down

0 comments on commit b476356

Please sign in to comment.