[DiscordArchive] Or am I getting it wrong?
[DiscordArchive] Or am I getting it wrong?
Archived author: Skarn • Posted: 2018-02-03T08:22:35.429000+00:00
Original source
Or am I getting it wrong?
Archived author: Skarn • Posted: 2018-02-03T08:22:40.966000+00:00
Original source
As for me, M2Array really says it all about it, why making the structure?
Archived author: Adspartan • Posted: 2018-02-03T08:38:17.307000+00:00
Original source
```struct
{
uint16_t bone;
} bone_lookup[];```
Archived author: Adspartan • Posted: 2018-02-03T08:38:49.609000+00:00
Original source
notice the **[]**
Archived author: Skarn • Posted: 2018-02-03T08:38:59.227000+00:00
Original source
yeah
Archived author: Skarn • Posted: 2018-02-03T08:39:07.049000+00:00
Original source
but it is the same as M2Array
Archived author: Skarn • Posted: 2018-02-03T08:39:29.454000+00:00
Original source
M2Array implies data being referenced there
Archived author: Adspartan • Posted: 2018-02-03T08:40:08.707000+00:00
Original source
```template<typename T>
struct M2Array {
uint32_t size;
uint32_t offset; // pointer to T, relative to begin of m2 data block (i.e. MD21 chunk content or begin of file)
};```
Archived author: Adspartan • Posted: 2018-02-03T08:40:46.792000+00:00
Original source
M2Array points to a vector of T
Archived author: Skarn • Posted: 2018-02-03T08:40:46.922000+00:00
Original source
ah