3 #include "object-enchant/object-ego.h"
4 #include "system/angband.h"
9 enum class FixedArtifactId : short;
10 enum parse_error_type : int;
13 FEAT_IDX feature; /* Terrain feature */
14 MONSTER_IDX monster; /* Monster */
15 OBJECT_IDX object; /* Object */
16 EgoType ego; /* Ego-Item */
17 FixedArtifactId artifact; /* Artifact */
19 BIT_FLAGS cave_info; /* Flags for CAVE_MARK, CAVE_GLOW, CAVE_ICKY, CAVE_ROOM */
20 int16_t special; /* Reserved for special terrain info */
21 int random; /* Number of the random effect */
24 extern dungeon_grid letter[255];
26 struct angband_header;
29 using Parser = std::function<errr(std::string_view, angband_header *)>;
30 std::tuple<errr, int> init_info_txt(FILE *fp, char *buf, angband_header *head, Parser parse_info_txt_line);
31 parse_error_type parse_line_feature(FloorType *floor_ptr, char *buf);
32 parse_error_type parse_line_building(char *buf);