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

Function getSizeInline

library/modules/Maps.cpp:260–270  ·  view source on GitHub ↗

getter for map size in blocks

Source from the content-addressed store, hash-verified

258
259// getter for map size in blocks
260inline void getSizeInline (int32_t &x, int32_t &y, int32_t &z)
261{
262 if (!Maps::IsValid())
263 {
264 x = y = z = 0;
265 return;
266 }
267 x = world->map.x_count_block;
268 y = world->map.y_count_block;
269 z = world->map.z_count_block;
270}
271void Maps::getSize (int32_t &x, int32_t &y, int32_t &z)
272{
273 getSizeInline(x, y, z);

Callers 2

getSizeMethod · 0.85
getTileSizeInlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected