Monstrofil / replays_unpack

51 stars 19 forks source link

Implementing PlayerPosition Packet #15

Closed KeithDeRuiter closed 2 years ago

KeithDeRuiter commented 2 years ago

Added support for the PlayerPosition packet for World of Warships. This change parses and sets the position and yaw/pitch/roll values on a PlayerPosition packet, and sets those fields on the corresponding entity in the battle controller. If a second entity ID is provided instead of a full position, then the logic sets the primary entity's position equal to the "linked" entity's position (e.g. set the Avatar's position equal to the position of its linked Vehicle). This change also includes a minor update to the WoWs example to import the WoWs network packets instead of the WoT ones. Closes #14

Monstrofil commented 2 years ago

I've added a little change that removes "[0]" all over the code and do that in PacketPosition now.

Overall looks fine, merged.