--- deliantra/server/include/traits.h 2006/12/21 01:33:50 1.9 +++ deliantra/server/include/traits.h 2006/12/25 11:25:49 1.10 @@ -23,6 +23,7 @@ DT_DOUBLE, DT_STRING, // 0-terminated string DT_DATA, // string + length + DT_ATTACHABLE, // will go DT_OBJECT, DT_MAP, DT_CLIENT, @@ -34,68 +35,5 @@ NUM_DATA_TYPES }; -template -struct cftype { }; - -template<> -struct cftype { - static const data_type dt = DT_INT; -}; - -template<> -struct cftype { - static const data_type dt = DT_INT64; -}; - -template<> -struct cftype { - static const data_type dt = DT_DOUBLE; -}; - -template<> -struct cftype { - static const data_type dt = DT_STRING; -}; - -template<> -struct cftype { - static const data_type dt = DT_OBJECT; -}; - -template<> -struct cftype { - static const data_type dt = DT_CLIENT; -}; - -template<> -struct cftype { - static const data_type dt = DT_PLAYER; -}; - -template<> -struct cftype { - static const data_type dt = DT_MAP; -}; - -template<> -struct cftype { - static const data_type dt = DT_ARCH; -}; - -template<> -struct cftype { - static const data_type dt = DT_PARTY; -}; - -template<> -struct cftype { - static const data_type dt = DT_REGION; -}; - -template<> -struct cftype { - static const data_type dt = DT_REGION; -}; - #endif