1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
18 #define LEVEL_PACKED_START 100
19 #define PACKED_LEVELS(x) (LEVEL_PACKED_START + x)
21 #define LEVEL_FILE_TYPE_RND_PACKED PACKED_LEVELS(LEVEL_FILE_TYPE_RND)
22 #define LEVEL_FILE_TYPE_EM_PACKED PACKED_LEVELS(LEVEL_FILE_TYPE_EM)
24 #define IS_SINGLE_LEVEL_FILE(x) (x < LEVEL_PACKED_START)
25 #define IS_PACKED_LEVEL_FILE(x) (x > LEVEL_PACKED_START)
28 void setElementChangePages(struct ElementInfo *, int);
29 void setElementChangeInfoToDefaults(struct ElementChangeInfo *);
30 void copyElementInfo(struct ElementInfo *, struct ElementInfo *);
32 char *getDefaultLevelFilename(int);
34 void LoadLevelFromFilename(struct LevelInfo *, char *);
36 void LoadLevelTemplate(int);
37 void LoadLevelInfoOnly(int);
39 void SaveLevelTemplate();
40 void SaveNativeLevel(struct LevelInfo *);
41 void DumpLevel(struct LevelInfo *);
42 boolean SaveLevelChecked(int);
44 void CopyNativeLevel_RND_to_Native(struct LevelInfo *);
45 void CopyNativeLevel_Native_to_RND(struct LevelInfo *);
47 void LoadTapeFromFilename(char *);
49 void LoadSolutionTape(int);
51 void DumpTape(struct TapeInfo *);
52 boolean SaveTapeChecked(int);
57 void LoadSetupFromFilename(char *);
61 void LoadSetup_EditorCascade();
62 void SaveSetup_EditorCascade();
64 void LoadCustomElementDescriptions();
65 void InitMenuDesignSettings_Static();
66 void LoadMenuDesignSettings();
67 void LoadUserDefinedEditorElementList(int **, int *);
69 void LoadHelpAnimInfo();
70 void LoadHelpTextInfo();
73 void CreateLevelSketchImages();
74 void CreateCustomElementImages(char *);