PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
virtual_path_serialization.h
1#pragma once
2
3#include "pixelbullet/filesystem/virtual_path.h"
4#include "pixelbullet/serialization/node.h"
5
6namespace pixelbullet
7{
8inline const Node& operator>>(const Node& node, VirtualPath& path)
9{
10 path = VirtualPath(node.GetValue());
11 return node;
12}
13
14inline Node& operator<<(Node& node, const VirtualPath& path)
15{
16 return node << path.LogicalPath();
17}
18} // namespace pixelbullet