ScummVM API documentation
scn.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TINSEL_SCN_H // prevent multiple includes
23#define TINSEL_SCN_H
24
25#include "tinsel/dw.h"
26
27namespace Tinsel {
28
29// chunk identifier numbers
30
31// V2 chunks
32
33#define CHUNK_STRING 0x33340001L // same in V1 and V2
34#define CHUNK_BITMAP 0x33340002L // same in V1 and V2
35#define CHUNK_CHARPTR 0x33340003L // not used!
36#define CHUNK_CHARMATRIX 0x33340004L // not used!
37#define CHUNK_PALETTE 0x33340005L // not used!
38#define CHUNK_IMAGE 0x33340006L // not used!
39#define CHUNK_ANI_FRAME 0x33340007L // not used!
40#define CHUNK_FILM 0x33340008L // not used!
41#define CHUNK_FONT 0x33340009L // not used!
42#define CHUNK_PCODE 0x3334000AL
43#define CHUNK_ENTRANCE 0x3334000BL // not used!
44#define CHUNK_POLYGONS 0x3334000CL // not used!
45#define CHUNK_ACTORS 0x3334000DL // not used!
46
47#define CHUNK_PROCESSES 0x3334000EL // Tinsel 2 only
48
49// Following chunk Ids should be decremented by 1 for Tinsel 1
50#define CHUNK_SCENE 0x3334000FL
51#define CHUNK_TOTAL_ACTORS 0x33340010L
52#define CHUNK_TOTAL_GLOBALS 0x33340011L
53#define CHUNK_TOTAL_OBJECTS 0x33340012L
54#define CHUNK_OBJECTS 0x33340013L
55#define CHUNK_MIDI 0x33340014L // not used!
56#define CHUNK_SAMPLE 0x33340015L // not used!
57#define CHUNK_TOTAL_POLY 0x33340016L
58
59// Following chunks are Tinsel 2 only
60#define CHUNK_NUM_PROCESSES 0x33340017L // Master scene only
61#define CHUNK_MASTER_SCRIPT 0x33340018L
62#define CHUNK_CDPLAY_FILENUM 0x33340019L
63#define CHUNK_CDPLAY_HANDLE 0x3334001AL
64#define CHUNK_CDPLAY_FILENAME 0x3334001BL
65#define CHUNK_MUSIC_FILENAME 0x3334001CL
66#define CHUNK_MUSIC_SCRIPT 0x3334001DL
67#define CHUNK_MUSIC_SEGMENT 0x3334001EL
68#define CHUNK_SCENE_HOPPER 0x3334001FL // Hopper file only
69#define CHUNK_SCENE_HOPPER2 0x33340030L // Hopper file only
70#define CHUNK_TIME_STAMPS 0x33340020L
71
72// This single chunk is common to all Tinsel versions
73#define CHUNK_MBSTRING 0x33340022L
74
75// Used in Discworld Noir
76#define CHUNK_GAME 0x33340031L
77
78// This is a base, subsequent numbers may also get used
79#define CHUNK_GRAB_NAME 0x33340100L
80
81byte *FindChunk(SCNHANDLE handle, uint32 chunk);
82
83} // End of namespace Tinsel
84
85#endif /* TINSEL_SCN_H */
Definition: actors.h:36
uint32 SCNHANDLE
Definition: dw.h:31