MCPcopy Create free account
hub / github.com/crawl/crawl / read_index

Method read_index

crawl-ref/source/mapdef.cc:2551–2571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2549}
2550
2551void 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
2573void map_def::set_file(const string &s)
2574{

Callers 2

_load_map_indexFunction · 0.80
unmarshall_mapdefFunction · 0.80

Calls 5

unmarshallString4Function · 0.85
unmarshallIntFunction · 0.85
unmarshallShortFunction · 0.85
readFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected