mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
feat(object): add CMovementStatus
This commit is contained in:
2 files changed
+71
No files matched your search
@@ -0,0 +1,39 @@
|
||||
#include "object/movement/CMovementStatus.hpp"
|
||||
#include "util/DataStore.hpp"
|
||||
|
||||
CDataStore& operator>>(CDataStore& msg, CMovementStatus& move) {
|
||||
msg.Get(move.moveFlags);
|
||||
msg.Get(move.uint14);
|
||||
msg.Get(move.uint0);
|
||||
|
||||
msg >> move.position18;
|
||||
msg.Get(move.facing34);
|
||||
|
||||
if (move.moveFlags & 0x200) {
|
||||
// TODO
|
||||
} else {
|
||||
move.transport = 0;
|
||||
// TODO
|
||||
}
|
||||
|
||||
if ((move.moveFlags & (0x200000 | 0x2000000)) || (move.uint14 & 0x20)) {
|
||||
msg.Get(move.float38);
|
||||
} else {
|
||||
move.float38 = 0.0f;
|
||||
}
|
||||
|
||||
msg.Get(move.uint3C);
|
||||
|
||||
if (move.moveFlags & 0x1000) {
|
||||
msg.Get(move.float40);
|
||||
msg.Get(move.float44);
|
||||
msg.Get(move.float48);
|
||||
msg.Get(move.float4C);
|
||||
}
|
||||
|
||||
if (move.moveFlags & 0x4000000) {
|
||||
msg.Get(move.float50);
|
||||
}
|
||||
|
||||
return msg;
|
||||
}
|
||||
Reference in new issue
Block a user