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);
33 char *getLocalLevelTemplateFilename();
34 char *getGlobalLevelTemplateFilename();
36 void LoadLevelFromFilename(struct LevelInfo *, char *);
38 void LoadLevelTemplate(int);
39 void LoadLevelInfoOnly(int);
41 void SaveLevelTemplate();
42 void SaveNativeLevel(struct LevelInfo *);
43 void DumpLevel(struct LevelInfo *);
44 boolean SaveLevelChecked(int);
46 void CopyNativeLevel_RND_to_Native(struct LevelInfo *);
47 void CopyNativeLevel_Native_to_RND(struct LevelInfo *);
49 void LoadTapeFromFilename(char *);
51 void LoadSolutionTape(int);
53 void DumpTape(struct TapeInfo *);
54 boolean SaveTapeChecked(int);
55 boolean SaveTapeChecked_LevelSolved(int);
60 void LoadSetupFromFilename(char *);
64 void LoadSetup_AutoSetup();
65 void SaveSetup_AutoSetup();
67 void LoadSetup_EditorCascade();
68 void SaveSetup_EditorCascade();
70 void SaveSetup_AddGameControllerMapping(char *);
72 void setHideSetupEntry(void *);
73 boolean hideSetupEntry(void *);
75 void LoadCustomElementDescriptions();
76 void InitMenuDesignSettings_Static();
77 void LoadMenuDesignSettings();
78 void LoadMenuDesignSettings_AfterGraphics();
79 void LoadUserDefinedEditorElementList(int **, int *);
81 void LoadHelpAnimInfo();
82 void LoadHelpTextInfo();
85 void CreateLevelSketchImages();
86 void CreateCustomElementImages(char *);