1 | #ifndef TRAITS_H__ |
1 | #ifndef TRAITS_H__ |
2 | #define TRAITS_H__ |
2 | #define TRAITS_H__ |
3 | |
3 | |
4 | struct client_socket; |
4 | struct client; |
5 | struct player; |
5 | struct player; |
6 | struct object; |
6 | struct object; |
7 | struct maptile; |
7 | struct maptile; |
8 | struct archetype; |
8 | struct archetype; |
9 | struct region; |
9 | struct region; |
… | |
… | |
59 | struct cftype<object> { |
59 | struct cftype<object> { |
60 | static const data_type dt = DT_OBJECT; |
60 | static const data_type dt = DT_OBJECT; |
61 | }; |
61 | }; |
62 | |
62 | |
63 | template<> |
63 | template<> |
64 | struct cftype<client_socket> { |
64 | struct cftype<client> { |
65 | static const data_type dt = DT_SOCKET; |
65 | static const data_type dt = DT_SOCKET; |
66 | }; |
66 | }; |
67 | |
67 | |
68 | template<> |
68 | template<> |
69 | struct cftype<player> { |
69 | struct cftype<player> { |