if (hitbox.size() != 4) throw std::runtime_error("hitbox must specify exactly 4 coordinates");
action->x_offset = hitbox[0];
action->y_offset = hitbox[1];
action->hitbox_w = hitbox[2];
action->hitbox_h = hitbox[3];
}
if (hitbox.size() != 4) throw std::runtime_error("hitbox must specify exactly 4 coordinates");
action->x_offset = hitbox[0];
action->y_offset = hitbox[1];
action->hitbox_w = hitbox[2];
action->hitbox_h = hitbox[3];
}