mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
availability checks configurable
This commit is contained in:
parent
5986f02025
commit
2527398a3e
@ -188,7 +188,10 @@ EX namespace models {
|
||||
/** mdRelPerspective and mdRelOrthogonal in hyperbolic space only make sense if it is actually a de Sitter visualization */
|
||||
EX bool desitter_projections;
|
||||
|
||||
EX vector<bool_reaction_t> avail_checkers;
|
||||
|
||||
EX bool model_available(eModel pm) {
|
||||
if(pm < isize(avail_checkers) && avail_checkers[pm]) return avail_checkers[pm]();
|
||||
if(mdinf[pm].flags & mf::technical) return false;
|
||||
if(gproduct) {
|
||||
if(pm == mdPerspective) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user