aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/sezunit.h
blob: 6b0a99ee54cd63b81cd7450b1b155958eefcf755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __sezunit_h__
#define __sezunit_h__


/*#include "Gyro.h"*/


struct sezheader {
             array<1,2,char> initials;     /* should be "TT" */
             word gamecode;
             word revision; /* as 3- or 4-digit code (eg v1.00 = 100) */
             longint chains; /* number of scroll chains */
             longint size; /* total size of all chains */
};



#ifdef __sezunit_implementation__
#undef EXTERN
#define EXTERN
#endif

EXTERN array<0,1999,char> chain; /* This chain */
EXTERN word chainsize; /* Length of "chain" */
EXTERN byte sezerror; /* Error code */
EXTERN sezheader sezhead;
#undef EXTERN
#define EXTERN extern


     /* Error codes for "sezerror" */
const integer sezok = 0;
const integer sezgunkyfile = 1;
const integer sezhacked = 2;


void sez_setup();

void getchain(longint number);


#endif