1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

set model parameters from CLI

This commit is contained in:
Zeno Rogue 2020-09-16 17:34:08 +02:00
parent 54e33f9151
commit 9aae9112bc

View File

@ -823,6 +823,14 @@ EX namespace models {
PHASEFROM(2); PHASEFROM(2);
shift_arg_formula(vpconf.model_transition); shift_arg_formula(vpconf.model_transition);
} }
else if(argis("-mparam")) {
PHASEFROM(2);
if(pmodel == mdCollignon) shift_arg_formula(vpconf.collignon_parameter);
else if(pmodel == mdMiller) shift_arg_formula(vpconf.miller_parameter);
else if(pmodel == mdLoximuthal) shift_arg_formula(vpconf.loximuthal_parameter);
else if(among(pmodel, mdAitoff, mdHammer, mdWinkelTripel)) shift_arg_formula(vpconf.aitoff_parameter);
if(pmodel == mdWinkelTripel) shift_arg_formula(vpconf.winkel_parameter);
}
else if(argis("-sang")) { else if(argis("-sang")) {
PHASEFROM(2); PHASEFROM(2);
shift_arg_formula(vpconf.spiral_angle); shift_arg_formula(vpconf.spiral_angle);