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.4 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.5 by root, Thu Dec 14 05:09:32 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines