MCPcopy Create free account
hub / github.com/DFHack/dfhack / cache_tiles

Function cache_tiles

plugins/reveal.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static void cache_tiles(const df::coord_path & tiles) {
149 size_t num_tiles = tiles.size();
150 for (size_t idx = 0; idx < num_tiles; ++idx) {
151 df::coord pos = tiles[idx];
152 pos.x >>= 4;
153 pos.y >>= 4;
154 trigger_cache.insert(pos);
155 }
156}
157
158static void initialize_trigger_cache() {
159 for (auto & horror : world->event.encased_horrors)

Callers 1

initialize_trigger_cacheFunction · 0.85

Calls 2

sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected