src/cmd_helper.h
changeset 8128 6856dfdd65f7
parent 8113 31b7784db761
child 9111 48ce04029fe4
equal deleted inserted replaced
8127:a20f557b7081 8128:6856dfdd65f7
     6 #include "direction_type.h"
     6 #include "direction_type.h"
     7 #include "road_type.h"
     7 #include "road_type.h"
     8 
     8 
     9 
     9 
    10 template<uint N> static inline void ExtractValid();
    10 template<uint N> static inline void ExtractValid();
    11 template<> static inline void ExtractValid<1>() {}
    11 template<> inline void ExtractValid<1>() {}
    12 
    12 
    13 
    13 
    14 template<typename T> struct ExtractBits;
    14 template<typename T> struct ExtractBits;
    15 template<> struct ExtractBits<Axis>          { static const uint Count =  1; };
    15 template<> struct ExtractBits<Axis>          { static const uint Count =  1; };
    16 template<> struct ExtractBits<DiagDirection> { static const uint Count =  2; };
    16 template<> struct ExtractBits<DiagDirection> { static const uint Count =  2; };