home · contact · privacy
Individual map objects are now identified by unique numbers stored in the savefiles...
[plomrogue] / src / map_objects.h
index bddd5ffc5f96e655180bcb4ad1b0f9e0d8c42a29..2307fb51fe776bb09f52e816b7294be86554dd49 100644 (file)
@@ -30,6 +30,7 @@ struct Player
 struct MapObj
 {
     void * next;
+    uint8_t id;           /* Unique identifier of individual map object. */
     char type;            /* Map object type identifier (see MapObjDef.id). */
     struct yx_uint16 pos; /* Coordinate of object on map. */
 };