added support for amoeba settings in BD engine to level editor
[rocksndiamonds.git] / src / game_bd / bd_c64import.h
index a130c4b7dd2d432a0ac50ea0a430998b1d112098..979b4254875b2d3c59a151ff28cc2d9f701cb0f2 100644 (file)
 #ifndef BD_CAVEIMPORT_H
 #define BD_CAVEIMPORT_H
 
-#include <glib.h>
-
 #include "bd_cave.h"
 
 
 extern const char gd_bd_internal_chars[];
 extern const GdElement gd_crazylight_import_table[];
 
-/* file formats */
+// file formats
 typedef enum _gd_cavefile_format
 {
-  GD_FORMAT_UNKNOWN,    /* unknown format */
-  GD_FORMAT_BD1,        /* boulder dash 1 */
-  GD_FORMAT_BD1_ATARI,  /* boulder dash 1 atari version */
-  GD_FORMAT_DC1,        /* boulder dash 1, deluxe caves 1 extension -
-                          non-sloped brick wall. */
-  GD_FORMAT_BD2,        /* boulder dash 2 with rockford's extensions */
-  GD_FORMAT_BD2_ATARI,  /* boulder dash 2, atari version */
-  GD_FORMAT_PLC,        /* peter liepa construction kit */
-  GD_FORMAT_PLC_ATARI,  /* peter liepa construction kit, atari version */
-  GD_FORMAT_DLB,        /* no one's delight boulder dash */
-  GD_FORMAT_CRLI,       /* crazy light construction kit */
-  GD_FORMAT_CRDR_7,     /* crazy dream 7 */
-  GD_FORMAT_CRDR_9,     /* crazy dream 9 - is a crli caveset with hardcoded mazes */
-  GD_FORMAT_FIRSTB,     /* first boulder */
+  GD_FORMAT_UNKNOWN,    // unknown format
+  GD_FORMAT_BD1,        // boulder dash 1
+  GD_FORMAT_BD1_ATARI,  // boulder dash 1 atari version
+  GD_FORMAT_DC1,        // boulder dash 1, deluxe caves 1 extension - non-sloped brick wall
+  GD_FORMAT_BD2,        // boulder dash 2 with rockford's extensions
+  GD_FORMAT_BD2_ATARI,  // boulder dash 2, atari version
+  GD_FORMAT_PLC,        // peter liepa construction kit
+  GD_FORMAT_PLC_ATARI,  // peter liepa construction kit, atari version
+  GD_FORMAT_DLB,        // no one's delight boulder dash
+  GD_FORMAT_CRLI,       // crazy light construction kit
+  GD_FORMAT_CRDR_7,     // crazy dream 7
+  GD_FORMAT_CRDR_9,     // crazy dream 9 - is a crli caveset with hardcoded mazes
+  GD_FORMAT_FIRSTB,     // first boulder
 } GdCavefileFormat;
 
-/* engines */
+// engines
 typedef enum _gd_engine
 {
   GD_ENGINE_BD1,
@@ -53,13 +50,13 @@ typedef enum _gd_engine
   GD_ENGINE_1STB,
   GD_ENGINE_CRDR7,
   GD_ENGINE_CRLI,
-  GD_ENGINE_INVALID,    /* fake */
+  GD_ENGINE_INVALID,    // fake
 } GdEngine;
 
 extern const char *gd_engines[];
 
-GdCavefileFormat gd_caveset_imported_get_format(const guint8 *buf);
-List* gd_caveset_import_from_buffer (const guint8 *buf, gsize length);
+GdCavefileFormat gd_caveset_imported_get_format(const unsigned char *buf);
+List* gd_caveset_import_from_buffer (const unsigned char *buf, size_t length);
 
 void gd_cave_set_engine_defaults(GdCave *cave, GdEngine engine);
 GdEngine gd_cave_get_engine_from_string(const char *param);