mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
ray:: rmap_get_by_id and rmap_get_id_of
This commit is contained in:
parent
00c71c5212
commit
3dde8d805a
@ -2415,6 +2415,14 @@ struct raycast_map {
|
||||
unique_ptr<raycast_map> rmap;
|
||||
EX bool reset_rmap = false;
|
||||
|
||||
EX cell* rmap_get_by_id(int id) {
|
||||
return rmap->lst[id];
|
||||
}
|
||||
|
||||
EX int rmap_get_id_of(cell *c) {
|
||||
return rmap->ids[c];
|
||||
}
|
||||
|
||||
EX void reset_raycaster() {
|
||||
our_raycaster = nullptr;
|
||||
reset_rmap = true;
|
||||
|
Loading…
Reference in New Issue
Block a user