diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-11 17:37:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-11-11 17:37:57 +0000 |
commit | 5e25d79beef19c39537b0f15982a175fec45bb3e (patch) | |
tree | 011cdd78c661757bab03cfd8ede11e6a58047968 /game/vehicles/railVehicle.h | |
parent | Add BufferedLocation method for getting the rotation only transform (diff) | |
download | ilt-5e25d79beef19c39537b0f15982a175fec45bb3e.tar.bz2 ilt-5e25d79beef19c39537b0f15982a175fec45bb3e.tar.xz ilt-5e25d79beef19c39537b0f15982a175fec45bb3e.zip |
Refactor BufferedLocationT to use a callback
Simplifies customisation in the face of multiple fields
Diffstat (limited to 'game/vehicles/railVehicle.h')
-rw-r--r-- | game/vehicles/railVehicle.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/game/vehicles/railVehicle.h b/game/vehicles/railVehicle.h index e034852..20d1ea1 100644 --- a/game/vehicles/railVehicle.h +++ b/game/vehicles/railVehicle.h @@ -21,9 +21,8 @@ public: RailVehicleClassPtr rvClass; using LV = RailVehicleClass::LocationVertex; - using BLocation = BufferedLocationT<glm::mat4 LV::*, RailVehicleClass::Instance &>; - BLocation location; - std::array<BLocation, 2> bogies; + BufferedLocationUpdater location; + std::array<BufferedLocationUpdater, 2> bogies; }; using RailVehiclePtr = std::unique_ptr<RailVehicle>; |