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:
parent
9e6c05eccd
commit
4b2ed2951e
3 changed files with 35 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue