22 #ifndef MEDIASTATION_CONTEXT_H 23 #define MEDIASTATION_CONTEXT_H 25 #include "common/str.h" 26 #include "common/path.h" 27 #include "common/hashmap.h" 28 #include "graphics/palette.h" 30 #include "mediastation/datafile.h" 31 #include "mediastation/asset.h" 32 #include "mediastation/mediascript/function.h" 36 enum ContextParametersSectionType {
37 kContextParametersEmptySection = 0x0000,
38 kContextParametersVariable = 0x0014,
39 kContextParametersName = 0x0bb9,
40 kContextParametersFileNumber = 0x0011,
41 kContextParametersBytecode = 0x0017
44 enum ContextSectionType {
45 kContextEmptySection = 0x0000,
46 kContextOldStyleSection = 0x000d,
47 kContextParametersSection = 0x000e,
48 kContextPaletteSection = 0x05aa,
49 kContextUnkAtEndSection = 0x0010,
50 kContextAssetHeaderSection = 0x0011,
51 kContextPoohSection = 0x057a,
52 kContextAssetLinkSection = 0x0013,
53 kContextFunctionSection = 0x0031
67 Screen *_screenAsset =
nullptr;
69 Asset *getAssetById(uint assetId);
70 Asset *getAssetByChunkReference(uint chunkReference);
71 Function *getFunctionById(uint functionId);
86 void readOldStyleHeaderSections(
Subfile &subfile,
Chunk &chunk);
87 void readNewStyleHeaderSections(
Subfile &subfile,
Chunk &chunk);
89 bool readHeaderSection(
Chunk &chunk);
90 void readCreateContextData(
Chunk &chunk);
92 void readCreateVariableData(
Chunk &chunk);
94 void readAssetInFirstSubfile(
Chunk &chunk);
95 void readAssetFromLaterSubfile(
Subfile &subfile);
Definition: atari-screen.h:58
Simple class for handling a palette data.
Definition: palette.h:55