mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(util): add operator>> for CDataStore to C3Vector
This commit is contained in:
parent
63a51faa48
commit
59b0cfc80d
9
src/util/DataStore.cpp
Normal file
9
src/util/DataStore.cpp
Normal 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
9
src/util/DataStore.hpp
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user