ScummVM API documentation
names.h
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5 */
6
7#ifndef LINGODEC_NAMES_H
8#define LINGODEC_NAMES_H
9
10#include "common/array.h"
11#include "common/stablemap.h"
12
13namespace Common {
14class SeekableReadStream;
15class String;
16}
17
18namespace LingoDec {
19
20/* StandardNames */
21
22namespace StandardNames {
23extern const char *const opcodeNamesS[];
24extern const char *const opcodeNamesM[];
25extern const char *const binaryOpNames[];
26extern const char *const chunkTypeNames[];
27extern const char *const putTypeNames[];
28
29extern const char *const moviePropertyNames[];
30extern const char *const whenEventNames[];
31extern const char *const menuPropertyNames[];
32extern const char *const menuItemPropertyNames[];
33extern const char *const soundPropertyNames[];
34extern const char *const spritePropertyNames[];
35extern const char *const animationPropertyNames[];
36extern const char *const animation2PropertyNames[];
37extern const char *const memberPropertyNames[];
38
39Common::String getOpcodeName(byte id);
40}
41
42/* ScriptNames */
43
45 int32 unknown0 = 0;
46 int32 unknown1 = 0;
47 uint32 len1 = 0;
48 uint32 len2 = 0;
49 uint16 namesOffset = 0;
50 uint16 namesCount = 0;
52
53 unsigned int version;
54
55 ScriptNames(unsigned int version_) : version(version_) {}
56 void read(Common::SeekableReadStream &stream);
57 bool validName(int id) const;
58 Common::String getName(int id) const;
59};
60
61} // namespace LingoDec
62
63#endif // LINGODEC_NAMES_H
Definition: stream.h:745
Definition: str.h:59
Definition: algorithm.h:29
Definition: names.h:44