X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftracktype.h;h=902a2f6ddd561df38ecb1c84dbdfbb0fb3d2c79b;hb=bd649cbc44e04f5e456ca19b7a32ebe479c130e1;hp=99989be664ae15e7ba3f14dd64be865b8da186e5;hpb=f409cd39a687900724d987c9db629cbff0dd49be;p=r2c2.git diff --git a/source/libmarklin/tracktype.h b/source/libmarklin/tracktype.h index 99989be..902a2f6 100644 --- a/source/libmarklin/tracktype.h +++ b/source/libmarklin/tracktype.h @@ -9,7 +9,7 @@ Distributed under the GPL #define LIBMARKLIN_TRACKTYPE_H_ #include -#include "endpoint.h" +#include "geometry.h" #include "trackpart.h" namespace Marklin { @@ -17,6 +17,15 @@ namespace Marklin { class TrackType { public: + struct Endpoint + { + Point pos; + float dir; // Direction outwards from the endpoint + unsigned paths; + + Endpoint(float, float, float, unsigned); + }; + class Loader: public Msp::DataFile::BasicLoader { public: