| 2549 | } |
| 2550 | |
| 2551 | void map_def::read_index(reader& inf) |
| 2552 | { |
| 2553 | unmarshallString4(inf, name); |
| 2554 | unmarshallString4(inf, place_loaded_from.filename); |
| 2555 | place_loaded_from.lineno = unmarshallInt(inf); |
| 2556 | orient = static_cast<map_section_type>(unmarshallShort(inf)); |
| 2557 | // XXX: Hack. See the comment in l-dgn.cc. |
| 2558 | border_fill_type = |
| 2559 | static_cast<dungeon_feature_type>(unmarshallShort(inf)); |
| 2560 | |
| 2561 | _chance = range_chance_t::read(inf, _unmarshall_map_chance); |
| 2562 | _weight = range_weight_t::read(inf, unmarshallInt); |
| 2563 | cache_offset = unmarshallInt(inf); |
| 2564 | string read_tags; |
| 2565 | unmarshallString4(inf, read_tags); |
| 2566 | set_tags(read_tags); |
| 2567 | place.read(inf); |
| 2568 | depths.read(inf); |
| 2569 | prelude.read(inf); |
| 2570 | index_only = true; |
| 2571 | } |
| 2572 | |
| 2573 | void map_def::set_file(const string &s) |
| 2574 | { |
no test coverage detected