PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
prefab_instance_component.h
1#pragma once
2
3#include "pixelbullet/filesystem/virtual_path.h"
4#include "pixelbullet/filesystem/virtual_path_serialization.h"
5#include "pixelbullet/serialization/node.h"
6
7namespace pixelbullet
8{
10{
11 VirtualPath prefab_path;
12};
13
14inline Node& operator<<(Node& node, const PrefabInstanceComponent& component)
15{
16 node["prefabPath"] << component.prefab_path;
17 return node;
18}
19
20inline const Node& operator>>(const Node& node, PrefabInstanceComponent& component)
21{
22 node["prefabPath"] >> component.prefab_path;
23 return node;
24}
25} // namespace pixelbullet
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:45
Definition virtual_path.h:10
Definition prefab_instance_component.h:10