#include <string>
#include <sstream>
#include <glm/glm.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
Go to the source code of this file.
◆ deserialize()
Helper function to easily deserialize a string received over the network into a obj.
- Parameters
-
| data | String representation of a serialized obj recieved across the network. |
◆ serialize()
Helper function to easily serialize a packet/events's data into a string to send over the network.
- Parameters
-
| obj | object that you want to serialize to send across the network. This should not include any header information, it should strictly be a struct for packet data. |