1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-20 20:09:43 +00:00

handlers for createStep and newmap

This commit is contained in:
Zeno Rogue
2018-11-30 14:37:59 +01:00
parent ce996c82fe
commit bf7bb61d35
4 changed files with 11 additions and 3 deletions

View File

@@ -1165,11 +1165,15 @@ euc_pointer euclideanAtCreate(int vec) {
return ep;
}
hookset<hrmap*()> *hooks_newmap;
// initializer (also inits origin from heptagon.cpp)
void initcells() {
DEBB(DF_INIT, (debugfile,"initcells\n"));
if(archimedean) currentmap = arcm::new_map();
hrmap* res = callhandlers((hrmap*)nullptr, hooks_newmap);
if(res) currentmap = res;
else if(archimedean) currentmap = arcm::new_map();
else if(fulltorus) currentmap = new hrmap_torus;
else if(euclid) currentmap = new hrmap_euclidean;
else if(sphere) currentmap = new hrmap_spherical;