add on_player_set entity component event

This commit is contained in:
MihailRis 2026-07-18 19:09:43 +03:00
parent 8d7fab1f2f
commit e4a11f182e
9 changed files with 29 additions and 15 deletions

View file

@ -81,7 +81,7 @@ void Player::updateEntity() {
}
}
Hitbox* Player::getHitbox() {
Hitbox* Player::getHitbox() const {
if (auto entity = level.entities->get(eid)) {
return &entity->getRigidbody().hitbox;
}