mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 18:15:33 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#include "../../../../../Minecraft.World/Header Files/stdafx.h"
|
||||
#include "../../../../../Minecraft.World/net/minecraft/world/item/ItemInstance.h"
|
||||
#include "../../UI/UI.h"
|
||||
#include "../Tutorial.h"
|
||||
#include "XuiCraftingTask.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;
|
||||
}
|
||||
Reference in New Issue
Block a user