refactor: flatten app/ and util/ directory structure

This commit is contained in:
MatthewBeshay
2026-04-04 13:58:04 +11:00
committed by Tropical
parent 9c0dfd60d5
commit d814a78453
616 changed files with 1731 additions and 1747 deletions

View File

@@ -0,0 +1,30 @@
#include "XuiCraftingTask.h"
#include "app/common/Tutorial/Tutorial.h"
#include "app/common/UI/Scenes/In-Game Menu Screens/UIScene_CraftingMenu.h"
bool XuiCraftingTask::isCompleted() {
// This doesn't seem to work
// IUIScene_CraftingMenu *craftScene =
// reinterpret_cast<IUIScene_CraftingMenu *>(tutorial->getScene());
UIScene_CraftingMenu* craftScene =
reinterpret_cast<UIScene_CraftingMenu*>(tutorial->getScene());
bool completed = false;
switch (m_type) {
case e_Crafting_SelectGroup:
if (craftScene != nullptr &&
craftScene->getCurrentGroup() == m_group) {
completed = true;
}
break;
case e_Crafting_SelectItem:
if (craftScene != nullptr && craftScene->isItemSelected(m_item)) {
completed = true;
}
break;
}
return completed;
}