RSDKModding / Sonic-Mania-Decompilation

A complete decompilation of Sonic Mania (2017)
Other
632 stars 116 forks source link

GameLink: Add/Use EntityBase struct #246

Closed Mefiresu closed 1 year ago

Mefiresu commented 1 year ago

This struct is used Engine-side as a generic Entity type that can hold the data for any game Entity. v5U added an extra void* field to it, making the ENTITY_SIZE macro incorrect.

Use EntityBase in some parts of the code that were using some kind of uint8 entity buffer array.

This reduces type cast alignment issues while also making the Mania code more compatible with v5U.