feat(util): add operator>> for CDataStore to C3Vector

This commit is contained in:
fallenoak 2026-01-09 20:22:09 -06:00
parent 63a51faa48
commit 59b0cfc80d
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 18 additions and 0 deletions

9
src/util/DataStore.cpp Normal file
View File

@ -0,0 +1,9 @@
#include "util/DataStore.hpp"
CDataStore& operator>>(CDataStore& msg, C3Vector& vector) {
msg.Get(vector.x);
msg.Get(vector.y);
msg.Get(vector.z);
return msg;
}

9
src/util/DataStore.hpp Normal file
View File

@ -0,0 +1,9 @@
#ifndef UTIL_DATA_STORE_HPP
#define UTIL_DATA_STORE_HPP
#include <common/DataStore.hpp>
#include <tempest/Vector.hpp>
CDataStore& operator>>(CDataStore& msg, C3Vector& vector);
#endif