1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

hook in generateCanvas

This commit is contained in:
Zeno Rogue 2019-09-08 12:24:50 +02:00
parent 1621b0b556
commit 3ca08cff9a

View File

@ -1523,7 +1523,12 @@ EX namespace patterns {
return ep.parse();
}
EX hookset<int(cell*)> *hooks_generate_canvas;
EX int generateCanvas(cell *c) {
int i = callhandlers(-1, hooks_generate_canvas, c);
if(i != -1) return i;
switch(whichCanvas) {
#if CAP_CRYSTAL
case 'K':