]> git.tdb.fi Git - r2c2.git/blob - source/3d/typemap.h
84a3eeb9b070d3b1170dfea20533e8ccfd376cf3
[r2c2.git] / source / 3d / typemap.h
1 #ifndef R2C2_3D_TYPEMAP_H_
2 #define R2C2_3D_TYPEMAP_H_
3
4 #include <msp/core/meta.h>
5 #include "signal.h"
6 #include "track.h"
7 #include "vehicle.h"
8
9 namespace R2C2 {
10
11 template<typename T>
12 struct TypeMap3D;
13
14 template<typename T>
15 struct TypeMap3D<const T>: TypeMap3D<T>
16 { };
17
18 template<> struct TypeMap3D<Signal> { typedef Signal3D Type3D; };
19 template<> struct TypeMap3D<Track> { typedef Track3D Type3D; };
20 template<> struct TypeMap3D<Vehicle> { typedef Vehicle3D Type3D; };
21
22 } // namespace R2C2
23
24 #endif