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.value());
11 return node;
12}
13
14inline Node& operator<<(Node& node, const VirtualPath& path)
15{
16 return node << path.logical_path();
17}
18} // namespace pixelbullet
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:49
Definition virtual_path.h:10