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

This commit is contained in:
fallenoak committed 2026-01-09 20:22:09 -06:00
1 parent 63a51faa48
commit 59b0cfc80d
2 files changed
+18

No files matched your search

+9
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
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