X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Fmap_objects.h;h=52d87e1a2276101f265a92892cc834b8ef7e12b7;hb=cc4ed0c49279f08a053a3e3a9a4acba22283a01f;hp=f30b016468f3dcc9d66a5d1775d58ae54b77cf2d;hpb=5ae8d71f6b87c0cfc6b3ecf974f2cfbd6a611733;p=plomrogue
diff --git a/src/server/map_objects.h b/src/server/map_objects.h
index f30b016..52d87e1 100644
--- a/src/server/map_objects.h
+++ b/src/server/map_objects.h
@@ -8,7 +8,9 @@
#define MAP_OBJECTS_H
#include /* uint8_t */
+//#include /* FILE */
#include "../common/yx_uint8.h" /* yx_uint8 structs */
+//struct EntrySkeleton;
@@ -27,10 +29,10 @@ struct MapObj
struct MapObjDef
{
+ uint8_t id; /* map object definition identifier / sets .type */
struct MapObjDef * next;
char char_on_map; /* map object symbol to appear on map */
char * name; /* string to describe object in game log */
- uint8_t id; /* map object definition identifier / sets .type */
uint8_t corpse_id; /* type to change map object into upon destruction */
uint8_t lifepoints; /* default start value for map object's .lifepoints */
uint8_t consumable; /* can be eaten if !0, for so much hitpoint win */
@@ -38,8 +40,11 @@ struct MapObjDef
-/* Initialize map object definitions chain. */
-extern void init_map_object_defs();
+/* Read-in to "entry" multi-line entry from MapObjDef config "file", using
+ * pre-allocated "line", "linemax" and "context" as input for err_try_fgets().
+ */
+//extern void read_map_object_def(char * line, uint32_t linemax, char * context,
+// struct EntrySkeleton * entry, FILE * file);
/* Free map object definitions chain starting at "mod_start". */
extern void free_map_object_defs(struct MapObjDef * mod_start);