From 3785d192f9248f1298bf162240808330cd0f9ce4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 13 Feb 2022 14:18:00 -0600 Subject: [PATCH] [nostalgia/geo] Add model to Vec2 --- src/nostalgia/geo/vec.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/nostalgia/geo/vec.hpp b/src/nostalgia/geo/vec.hpp index 9a01ab862..fc8117aab 100644 --- a/src/nostalgia/geo/vec.hpp +++ b/src/nostalgia/geo/vec.hpp @@ -8,7 +8,10 @@ #include #endif +#include #include +#include +#include #include #include #include @@ -19,6 +22,9 @@ struct Vec2 { using value_type = float; using size_type = std::size_t; + static constexpr auto TypeName = "net.drinkingtea.nostalgia.geo.Point"; + static constexpr auto TypeVersion = 1; + template struct iterator: public std::iterator { private: @@ -198,4 +204,9 @@ struct Vec2 { #endif }; +oxModelBegin(Vec2) + oxModelField(x) + oxModelField(y) +oxModelEnd() + } \ No newline at end of file