Simple quick way to do different attacks that play different shaders.

This commit is contained in:
Zed A. Shaw 2025-04-23 12:32:28 -04:00
parent 58981fd8ed
commit bf8a2dc0c5
10 changed files with 25 additions and 18 deletions

View file

@ -79,7 +79,7 @@ namespace gui {
using enum Event;
switch(ev) {
case TICK: {
System::combat($level);
System::combat($level, $temp_attack_id);
run_systems();
state(State::IN_COMBAT);
} break;
@ -400,6 +400,8 @@ namespace gui {
dbc::log("YOU NEED TO IMPLEMENT THIS!!!!!");
break;
case eGUI::ATTACK:
$temp_attack_id = std::any_cast<int>(data);
fmt::println("ATTACK with action={}", $temp_attack_id);
event(Event::ATTACK);
break;
case eGUI::STAIRS_DOWN: