1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 22:36:02 +00:00

rogueviz:: used args::add and made hypcity and hypocycloid enablable

This commit is contained in:
Zeno Rogue
2021-03-31 03:18:36 +02:00
parent ceb79290ae
commit 8a836fd1ea
10 changed files with 44 additions and 111 deletions

View File

@@ -105,21 +105,7 @@ namespace tree {
storeall();
}
#if CAP_COMMANDLINE
int readArgs() {
using namespace arg;
if(0) ;
else if(argis("-tree")) {
PHASE(3); shift(); tree::read(args());
}
else return 1;
return 0;
}
int ah = addHook(hooks_args, 120, readArgs)
int ah = arg::add3("-tree", [] { tree::read(arg::shift_args()); })
+ addHook(pres::hooks_build_rvtour, 120, [] (string s, vector<tour::slide>& v) {
if(s != "data") return;
using namespace pres;
@@ -142,7 +128,6 @@ int ah = addHook(hooks_args, 120, readArgs)
})}
);
});
#endif
}
}