PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
transform_parent_component.h
1#pragma once
2
3#include "pixelbullet/scene/entity_id.h"
4
5namespace pixelbullet
6{
8{
9 EntityId parent = EntityId::Invalid();
10};
11
12inline Node& operator<<(Node& node, const TransformParentComponent& component)
13{
14 node["parent"] << component.parent;
15 return node;
16}
17
18inline const Node& operator>>(const Node& node, TransformParentComponent& component)
19{
20 node["parent"] >> component.parent;
21 return node;
22}
23} // namespace pixelbullet
Definition entity_id.h:11
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:45
Definition transform_parent_component.h:8