Refactoring of player management and integration with the main window rendering

This commit is contained in:
Sylvain Schneider
2026-07-27 23:49:09 +02:00
parent cbe165aa85
commit ee6981bda3
34 changed files with 1122 additions and 181 deletions

View File

@@ -27,6 +27,11 @@ struct FPos
{
float x = 0.0f;
float y = 0.0f;
[[nodiscard]] bool isInBox(const FPos &boxPos, const FSize &boxSize) const
{
return x >= boxPos.x && y >= boxPos.y && x < boxPos.x + boxSize.w && y < boxPos.y + boxSize.h;
}
};
//--------------------------------------------------------------
} // namespace quokka_gfx