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

Method get_tile

library/modules/Screen.cpp:697–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697Pen PenArray::get_tile(unsigned int x, unsigned int y)
698{
699 if (x < dimx && y < dimy)
700 return buffer[(y * dimx) + x];
701 return Pen(0, 0, 0, 0, false);
702}
703
704void PenArray::set_tile(unsigned int x, unsigned int y, Screen::Pen pen)
705{

Callers 2

dfhack_penarray_get_tileFunction · 0.80
do_transformFunction · 0.80

Calls 1

PenClass · 0.50

Tested by

no test coverage detected