ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/traits.h
(Generate patch)

Comparing deliantra/server/include/traits.h (file contents):
Revision 1.6 by root, Fri Dec 15 19:59:20 2006 UTC vs.
Revision 1.8 by root, Wed Dec 20 09:14:22 2006 UTC

1#ifndef TRAITS_H__ 1#ifndef TRAITS_H__
2#define TRAITS_H__ 2#define TRAITS_H__
3 3
4struct client_container;
4struct client; 5struct client;
5struct player; 6struct player;
6struct object; 7struct object;
7struct maptile; 8struct maptile;
8struct archetype; 9struct archetype;
21 DT_DOUBLE, 22 DT_DOUBLE,
22 DT_STRING, // 0-terminated string 23 DT_STRING, // 0-terminated string
23 DT_DATA, // string + length 24 DT_DATA, // string + length
24 DT_OBJECT, 25 DT_OBJECT,
25 DT_MAP, 26 DT_MAP,
26 DT_SOCKET, 27 DT_CLIENT,
27 DT_PLAYER, 28 DT_PLAYER,
28 DT_ARCH, 29 DT_ARCH,
29 DT_PARTY, 30 DT_PARTY,
30 DT_REGION, 31 DT_REGION,
31 32
60 static const data_type dt = DT_OBJECT; 61 static const data_type dt = DT_OBJECT;
61}; 62};
62 63
63template<> 64template<>
64struct cftype<client> { 65struct cftype<client> {
65 static const data_type dt = DT_SOCKET; 66 static const data_type dt = DT_CLIENT;
66}; 67};
67 68
68template<> 69template<>
69struct cftype<player> { 70struct cftype<player> {
70 static const data_type dt = DT_PLAYER; 71 static const data_type dt = DT_PLAYER;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines