1
0
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:
Zeno Rogue
2020-08-02 12:53:19 +02:00
parent f7adc64101
commit a66136625d
2 changed files with 15 additions and 5 deletions

View File

@@ -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;