Game engine now handles damage types but Ineed to refine the state machines so some of them can take additional data.

This commit is contained in:
Zed A. Shaw 2024-09-12 01:25:23 -04:00
parent 9e6c05eccd
commit 4b2ed2951e
3 changed files with 35 additions and 17 deletions

View file

@ -91,7 +91,7 @@ void Builder::building(BuildEvent ev) {
if(m.match) {
gui.output(format("HIT WITH {} @ {}:{}:{} {}", m.type, m.file_name, m.lnumber, m.col, m.message));
game.event(GameEvent::HIT);
game.event(GameEvent::HIT, m.type);
}
state(READING);
}