feat(object): add CClientMoveUpdate

This commit is contained in:
fallenoak 2026-01-12 20:34:21 -06:00
parent 8333530d65
commit 775320a7fc
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#include "object/client/CClientMoveUpdate.hpp"
CDataStore& operator>>(CDataStore& msg, CClientMoveUpdate& move) {
msg >> move.status;
msg.Get(move.float60);
msg.Get(move.float64);
msg.Get(move.float68);
msg.Get(move.float6C);
msg.Get(move.float70);
msg.Get(move.float74);
msg.Get(move.float78);
msg.Get(move.float7C);
msg.Get(move.float80);
if (move.status.moveFlags & 0x8000000) {
msg >> move.spline;
}
return msg;
}

View File

@ -0,0 +1,25 @@
#ifndef OBJECT_CLIENT_C_CLIENT_MOVE_UPDATE_HPP
#define OBJECT_CLIENT_C_CLIENT_MOVE_UPDATE_HPP
#include "object/movement/CMovementStatus.hpp"
#include "object/movement/CMoveSpline.hpp"
#include <common/datastore/CDataStore.hpp>
struct CClientMoveUpdate {
CMovementStatus status;
float float60;
float float64;
float float68;
float float6C;
float float70;
float float74;
float float78;
float float7C;
float float80;
// TODO
CMoveSpline spline;
};
CDataStore& operator>>(CDataStore& msg, CClientMoveUpdate& move);
#endif