home · contact · privacy
Unify Map struct common to server and client in src/common/map.h.
[plomrogue] / src / common / map.h
diff --git a/src/common/map.h b/src/common/map.h
new file mode 100644 (file)
index 0000000..8d454ca
--- /dev/null
@@ -0,0 +1,20 @@
+/* src/common/map.h
+ *
+ * Game map.
+ */
+
+#ifndef MAP_H
+#define MAP_H
+
+#include "yx_uint16.h" /* yx_uint16 struct */
+
+
+struct Map
+{
+    struct yx_uint16 size;   /* map's height/width in number of cells */
+    char * cells;            /* sequence of bytes encoding map cells */
+};
+
+
+
+#endif