mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-05 16:04:07 +00:00
hr::span exported
This commit is contained in:
parent
78ddda1b4f
commit
37575bcdaf
@ -45,6 +45,7 @@ EX bool hide_player() {
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HDR
|
||||||
template<class T>
|
template<class T>
|
||||||
class span {
|
class span {
|
||||||
T *begin_ = nullptr;
|
T *begin_ = nullptr;
|
||||||
@ -62,6 +63,7 @@ hr::span<const shiftmatrix> span_at(const Map& map, const Key& key) {
|
|||||||
auto it = map.find(key);
|
auto it = map.find(key);
|
||||||
return (it == map.end()) ? hr::span<const shiftmatrix>() : hr::span<const shiftmatrix>(it->second.data(), it->second.size());
|
return (it == map.end()) ? hr::span<const shiftmatrix>() : hr::span<const shiftmatrix>(it->second.data(), it->second.size());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
EX hookset<bool(int sym, int uni)> hooks_handleKey;
|
EX hookset<bool(int sym, int uni)> hooks_handleKey;
|
||||||
EX hookset<bool(cell *c, const shiftmatrix& V)> hooks_drawcell;
|
EX hookset<bool(cell *c, const shiftmatrix& V)> hooks_drawcell;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user