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.9 by root, Thu Dec 21 01:33:50 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;
9struct mapspace;
8struct archetype; 10struct archetype;
9struct region; 11struct region;
10struct party; 12struct party;
11struct treasurelist; 13struct treasurelist;
12 14
21 DT_DOUBLE, 23 DT_DOUBLE,
22 DT_STRING, // 0-terminated string 24 DT_STRING, // 0-terminated string
23 DT_DATA, // string + length 25 DT_DATA, // string + length
24 DT_OBJECT, 26 DT_OBJECT,
25 DT_MAP, 27 DT_MAP,
26 DT_SOCKET, 28 DT_CLIENT,
27 DT_PLAYER, 29 DT_PLAYER,
28 DT_ARCH, 30 DT_ARCH,
29 DT_PARTY, 31 DT_PARTY,
30 DT_REGION, 32 DT_REGION,
31 33
60 static const data_type dt = DT_OBJECT; 62 static const data_type dt = DT_OBJECT;
61}; 63};
62 64
63template<> 65template<>
64struct cftype<client> { 66struct cftype<client> {
65 static const data_type dt = DT_SOCKET; 67 static const data_type dt = DT_CLIENT;
66}; 68};
67 69
68template<> 70template<>
69struct cftype<player> { 71struct cftype<player> {
70 static const data_type dt = DT_PLAYER; 72 static const data_type dt = DT_PLAYER;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines