mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-13 17:55:21 +03:00
feat(util): add operator>> for CDataStore to C3Vector
This commit is contained in:
2 files changed
+18
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
Reference in new issue
Block a user