function 2 "sfx";
function 3 "whst";
+ gauge 16.5;
length 154;
width 38;
height 53;
function 5 "whst";
maximum_speed 0.255;
+ gauge 16.5;
length 160;
width 37;
height 50.5;
function 2 "telex";
maximum_speed 0.255;
+ gauge 16.5;
length 144;
width 33;
height 33;
function 0 "light";
maximum_speed 0.447;
+ gauge 16.5;
length 218;
width 34;
height 43;
function 0 "light";
maximum_speed 0.287;
+ gauge 16.5;
length 212;
width 34;
height 45;
function 5 "whstl";
maximum_speed 0.383;
+ gauge 16.5;
length 180;
width 35;
height 44;
swap_direction true;
maximum_speed 0.639;
+ gauge 16.5;
length 219;
width 35;
height 49;
function 3 "whstl";
maximum_speed 0.383;
+ gauge 16.5;
length 268;
width 33;
height 44;
function 3 "whstl";
maximum_speed 0.319;
+ gauge 16.5;
length 224;
width 35;
height 47;
function 3 "whstl";
maximum_speed 0.160;
+ gauge 16.5;
length 203;
width 35;
height 49;
ObjectType(an),
locomotive(false),
swap_direction(false),
+ gauge(1.524),
length(0),
width(0),
height(0),
add("axle", &Loader::axle);
add("bogie", &Loader::bogie);
add("function", &Loader::function);
+ add("gauge", &Loader::gauge);
add("height", &Loader::height);
add("length", &Loader::length);
add("locomotive", &VehicleType::locomotive);
obj.functions[i] = f;
}
+void VehicleType::Loader::gauge(float g)
+{
+ obj.gauge = g/1000;
+}
+
void VehicleType::Loader::height(float h)
{
obj.height = h/1000;
void axle();
void bogie();
void function(unsigned, const std::string &);
+ void gauge(float);
void height(float);
void length(float);
void mirror_rods();
bool locomotive;
FunctionMap functions;
bool swap_direction;
+ float gauge;
float length;
float width;
float height;
unsigned get_max_function() const;
const FunctionMap &get_functions() const { return functions; }
bool get_swap_direction() const { return swap_direction; }
+ float get_gauge() const { return gauge; }
float get_length() const { return length; }
float get_width() const { return width; }
float get_height() const { return height; }
{
name "Saar Railroad Gmhs 54";
+ gauge 16.5;
length 116;
width 33;
height 47;
{
name "BR 50 tender";
+ gauge 16.5;
length 96;
width 35;
height 47;
{
name "Z";
+ gauge 16.5;
length 114;
width 32;
height 48;
{
name "Zas";
+ gauge 16.5;
length 180;
width 34;
height 47;
{
name "Omm 52";
+ gauge 16.5;
length 116;
width 34;
height 33;
{
name "Rs 684";
+ gauge 16.5;
length 229;
width 34;
height 29;
{
name "BTr 10";
+ gauge 16.5;
length 112;
width 34;
height 34;
{
name "B4üw 38 \"Schürzenwagen\"";
+ gauge 16.5;
length 244;
width 34;
height 45;
{
name "BR 23 tender";
+ gauge 16.5;
length 92;
width 34;
height 46;
{
name "B4nzb 64 \"Silberling\"";
+ gauge 16.5;
length 282;
width 30;
height 46;
{
name "Sgns 691";
+ gauge 16.5;
length 228;
width 30;
height 15;
{
name "Fals-u 176";
+ gauge 16.5;
length 134;
width 36;
height 45;
{
name "Kklm 505";
+ gauge 16.5;
length 115;
width 33;
height 21;
{
name "Gs 210";
+ gauge 16.5;
length 115;
width 33;
height 47;
{
name "Rlmmso 56";
+ gauge 16.5;
length 157;
width 31;
height 21;
{
name "Pwg 14";
+ gauge 16.5;
length 98;
width 31;
height 43;
{
name "Railway crane";
+ gauge 16.5;
length 83;
width 32;
height 16;
{
name "Eaos 106";
+ gauge 16.5;
length 160;
width 35;
height 38;
// XXX The power car is really in the middle, but that configuration isn't supported yet
name "BR 421 S-bahn";
+ gauge 16.5;
length 238;
width 33;
height 44;
// XXX Better solution would be to allow flipping of vehicles
name "BR 420 S-bahn";
+ gauge 16.5;
length 268;
width 33;
height 44;