Refactored dynamic cast to do internal error checking. Refactored all inventory and button slot update functions in menu components so they no longer require virtual dispatch when all we require is some passing of lamba functions to update inventories.

This commit is contained in:
2023-12-27 20:40:01 -06:00
parent f2e3405b5b
commit bd066ee787
22 changed files with 430 additions and 217 deletions
-2
View File
@@ -191,8 +191,6 @@ vf2d MenuComponent::GetPos(){
return rect.pos;
}
void MenuComponent::OnInventorySlotsUpdate(ITCategory cat){}
std::string MenuComponent::GetLabel(){
return label;
}