3#include "pixelbullet/serialization/node.h"
12 float dwell_seconds = 0.0f;
19 node[
"enabled"] << component.enabled;
20 node[
"dwellSeconds"] << component.dwell_seconds;
24inline const Node& operator>>(
const Node& node, PatrolWaypointComponent& component)
26 if (node.HasProperty(
"enabled"))
28 node[
"enabled"] >> component.enabled;
32 component.enabled =
true;
35 if (node.HasProperty(
"dwellSeconds"))
37 node[
"dwellSeconds"] >> component.dwell_seconds;
41 component.dwell_seconds = 0.0f;
44 component.dwell_seconds = std::max(component.dwell_seconds, 0.0f);
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:45
Definition patrol_waypoint_component.h:10