WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
100 stars 33 forks source link

Decode CurveData<T> with RawBuffer. #124

Closed poirierlouis closed 4 months ago

poirierlouis commented 4 months ago

Include getter/setter to modify data of a CurveData. No allocator implemented to create/destroy/resize number of points of a curve.

WIP, it needs more testing.

poirierlouis commented 4 months ago

Last amended commit includes [[nodiscard]].

psiberx commented 4 months ago
  1. I'd add curve output to Reflection::Dump().
  2. If unk40 is known to be RTTI type, then it's probably a valueType or curveType. Could check the unk40->name.ToString() and rename it.
poirierlouis commented 4 months ago

I'd add curve output to Reflection::Dump().

Is there an example about this? I have no idea how to do it/what it does.

  1. If unk40 is known to be RTTI type, then it's probably a valueType or curveType. Could check the unk40->name.ToString() and rename it.

Yes, I didn't rename it yet as it's only a guess for now. I'll test it tomorrow.

poirierlouis commented 4 months ago

Last amended commit:

poirierlouis commented 4 months ago

Last amended commit rename curveType (curveData:Float) to valueType (Float) to be explicit.