18#ifndef INCLUDED_SERIALIZATION_PATHFINDER
19#define INCLUDED_SERIALIZATION_PATHFINDER
46 serialize.NumberFixed_Unbounded(
"goal x", value.x);
47 serialize.NumberFixed_Unbounded(
"goal z", value.z);
48 serialize.NumberFixed_Unbounded(
"goal u x", value.u.X);
49 serialize.NumberFixed_Unbounded(
"goal u z", value.u.Y);
50 serialize.NumberFixed_Unbounded(
"goal v x", value.v.X);
51 serialize.NumberFixed_Unbounded(
"goal v z", value.v.Y);
52 serialize.NumberFixed_Unbounded(
"goal hw", value.hw);
53 serialize.NumberFixed_Unbounded(
"goal hh", value.hh);
54 serialize.NumberFixed_Unbounded(
"maxdist", value.maxdist);
Helper templates definitions for serializing/deserializing common objects.
void Serializer(S &serialize, const char *name, Args &&... args)
Definition: SerializeTemplates.h:51
Deserialization interface; see serialization overview.
Definition: IDeserializer.h:35
virtual void NumberFixed_Unbounded(const char *name, fixed &out)
Definition: IDeserializer.cpp:148
Serialization interface; see serialization overview.
Definition: ISerializer.h:121
void NumberFixed_Unbounded(const char *name, fixed value)
Serialize a number.
Definition: ISerializer.h:191
Pathfinder goal.
Definition: PathGoal.h:33
@ INVERTED_SQUARE
Definition: PathGoal.h:40
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:40
std::conditional_t< std::is_same_v< S, ISerializer & >, const T &, T & > qualify
Definition: SerializeTemplates.h:66
void operator()(S &serialize, const char *name, Serialize::qualify< S, PathGoal > value)
Definition: SerializedPathfinder.h:43
void operator()(ISerializer &serialize, const char *name, const Waypoint &value)
Definition: SerializedPathfinder.h:26
void operator()(IDeserializer &deserialize, const char *name, Waypoint &value)
Definition: SerializedPathfinder.h:32
Definition: SerializeTemplates.h:42
Definition: Pathfinding.h:58
entity_pos_t x
Definition: Pathfinding.h:59
entity_pos_t z
Definition: Pathfinding.h:59