--- deliantra/server/include/traits.h 2006/09/16 22:24:12 1.4 +++ deliantra/server/include/traits.h 2006/12/14 05:09:32 1.5 @@ -1,6 +1,7 @@ #ifndef TRAITS_H__ #define TRAITS_H__ +struct client_socket; struct player; struct object; struct maptile; @@ -22,6 +23,7 @@ DT_DATA, // string + length DT_OBJECT, DT_MAP, + DT_SOCKET, DT_PLAYER, DT_ARCH, DT_PARTY, @@ -59,6 +61,11 @@ }; template<> +struct cftype { + static const data_type dt = DT_SOCKET; +}; + +template<> struct cftype { static const data_type dt = DT_PLAYER; };