]> git.tdb.fi Git - r2c2.git/blobdiff - tracks.dat
Move track appearance properties into a separate class
[r2c2.git] / tracks.dat
index 9c6bda87d19c7f1ee0cc2db46e376e9f0f6c0058..40cf1cae7d1f6a9ac14e486afd50212f9a26fbc9 100644 (file)
@@ -1,31 +1,35 @@
 scale 1 87;
 gauge 16.5;
-rail_profile
-{
-       point 1.5 0.0;
-       smooth_point 1.5 0.3;
-       smooth_point 0.8 0.4;
-       smooth_point 0.8 1.4;
-       smooth_point 1.0 1.6;
-       smooth_point 1.0 2.1;
-       smooth_point 0.8 2.3;
-       smooth_point 0.2 2.3;
-       smooth_point 0.0 2.1;
-       smooth_point 0.0 1.6;
-       smooth_point 0.2 1.4;
-       smooth_point 0.2 0.4;
-       smooth_point -0.5 0.3;
-       point -0.5 0.0;
-};
-ballast_profile
-{
-       point 20.0 0.0;
-       point 14.0 8.0;
-       point -14.0 8.0;
-       point -20.0 0.0;
-};
-
-track_technique "track.technique";
+
+track_appearance
+{
+       rail_profile
+       {
+               point 1.5 0.0;
+               smooth_point 1.5 0.3;
+               smooth_point 0.8 0.4;
+               smooth_point 0.8 1.4;
+               smooth_point 1.0 1.6;
+               smooth_point 1.0 2.1;
+               smooth_point 0.8 2.3;
+               smooth_point 0.2 2.3;
+               smooth_point 0.0 2.1;
+               smooth_point 0.0 1.6;
+               smooth_point 0.2 1.4;
+               smooth_point 0.2 0.4;
+               smooth_point -0.5 0.3;
+               point -0.5 0.0;
+       };
+       ballast_profile
+       {
+               point 20.0 0.0;
+               point 14.0 8.0;
+               point -14.0 8.0;
+               point -20.0 0.0;
+       };
+
+       technique "track.technique";
+};
 
 // Straight