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

Comparing deliantra/server/include/face.h (file contents):
Revision 1.41 by root, Fri Nov 9 00:11:49 2012 UTC vs.
Revision 1.42 by root, Sun Nov 11 04:29:11 2012 UTC

27#include <tr1/unordered_map> 27#include <tr1/unordered_map>
28 28
29#define CHKSUM_MAXLEN 15 29#define CHKSUM_MAXLEN 15
30#define MAX_FACES 65535 // we reserve face #65535 30#define MAX_FACES 65535 // we reserve face #65535
31 31
32typedef uint16 faceidx;
33
34extern faceidx blank_face, empty_face, magicmouth_face; 32extern faceidx blank_face, empty_face, magicmouth_face;
35 33
36struct facedata 34struct facedata
37{ 35{
38 refcnt_buf data; 36 uint32_t size;
37 uint32_t fofs; // file offste in facedatax
39 uint8 chksum[CHKSUM_MAXLEN]; 38 uint8 chksum[CHKSUM_MAXLEN];
40 uint8 chksum_len; 39 uint8 chksum_len;
41 40
42 facedata () 41 facedata ()
43 : chksum_len (0) 42 : size (0), fofs (0), chksum_len (0)
44 { } 43 { }
45}; 44};
46 45
47/* New face structure - this enforces the notion that data is face by 46/* New face structure - this enforces the notion that data is face by
48 * face only - you can not change the color of an item - you need to instead 47 * face only - you can not change the color of an item - you need to instead

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines