mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 02:17:40 +00:00
save/load arb geometry
This commit is contained in:
@@ -461,6 +461,7 @@ EX namespace mapstream {
|
||||
#if CAP_ARCM
|
||||
if(geometry == gArchimedean) f.write(arcm::current.symbol);
|
||||
#endif
|
||||
if(geometry == gArbitrary) f.write(arb::current.filename);
|
||||
if(geometry == gNil) {
|
||||
f.write(S7);
|
||||
f.write(nilv::nilperiod);
|
||||
@@ -543,6 +544,12 @@ EX namespace mapstream {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if(geometry == gArbitrary) {
|
||||
string s;
|
||||
f.read(s);
|
||||
arb::run(s);
|
||||
stop_game();
|
||||
}
|
||||
#if CAP_ARCM
|
||||
if(geometry == gArchimedean) {
|
||||
string& symbol = arcm::current.symbol;
|
||||
|
||||
Reference in New Issue
Block a user