]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/vehicletype.cpp
Allow rotating the body object of a vehicle
[r2c2.git] / source / libr2c2 / vehicletype.cpp
index 720b922a183a911bef72f9b916243a0bc1d9a63e..2da44cc992f340f7c73e7f44e104fc4285327078 100644 (file)
@@ -13,7 +13,8 @@ VehicleType::VehicleType(const ArticleNumber &an):
        swap_direction(false),
        length(0),
        width(0),
-       height(0)
+       height(0),
+       rotate_object(false)
 { }
 
 unsigned VehicleType::get_max_function() const
@@ -115,6 +116,7 @@ VehicleType::Loader::Loader(VehicleType &vt):
        add("name",       &VehicleType::name);
        add("object",     &VehicleType::object);
        add("rod",        &Loader::rod);
+       add("rotate_object", &VehicleType::rotate_object);
        add("swap_direction", &VehicleType::swap_direction);
        add("width",      &Loader::width);
 }