mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-27 21:58:13 +00:00
ray:: CLI options
This commit is contained in:
parent
fc9e2391dc
commit
5c884dbfc1
@ -636,5 +636,39 @@ EX void configure() {
|
|||||||
dialog::display();
|
dialog::display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_COMMANDLINE
|
||||||
|
int readArgs() {
|
||||||
|
using namespace arg;
|
||||||
|
|
||||||
|
if(0) ;
|
||||||
|
else if(argis("-ray-do")) {
|
||||||
|
PHASEFROM(2);
|
||||||
|
want_use = 2;
|
||||||
|
}
|
||||||
|
else if(argis("-ray-dont")) {
|
||||||
|
PHASEFROM(2);
|
||||||
|
want_use = 0;
|
||||||
|
}
|
||||||
|
else if(argis("-ray-smart")) {
|
||||||
|
PHASEFROM(2);
|
||||||
|
want_use = 1;
|
||||||
|
}
|
||||||
|
else if(argis("-ray-cells")) {
|
||||||
|
PHASEFROM(2); shift();
|
||||||
|
rays_generate = true;
|
||||||
|
max_cells = argi();
|
||||||
|
}
|
||||||
|
else if(argis("-ray-cells-no")) {
|
||||||
|
PHASEFROM(2); shift();
|
||||||
|
rays_generate = false;
|
||||||
|
max_cells = argi();
|
||||||
|
}
|
||||||
|
else return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto hook = addHook(hooks_args, 100, readArgs);
|
||||||
|
#endif
|
||||||
|
|
||||||
EX }
|
EX }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user