2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "TutorialTask.h"
|
2026-04-14 16:47:37 -05:00
|
|
|
#include "../../../Minecraft.World/Recipy.h"
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
class XuiCraftingTask : public TutorialTask
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
enum eCraftingTaskType
|
|
|
|
|
{
|
|
|
|
|
e_Crafting_SelectGroup,
|
|
|
|
|
e_Crafting_SelectItem,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Select group
|
2026-03-08 19:08:36 -04:00
|
|
|
XuiCraftingTask(Tutorial *tutorial, int descriptionId, Recipy::_eGroupType groupToSelect, bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = nullptr,
|
2026-03-01 12:16:08 +08:00
|
|
|
bool bShowMinimumTime=false, bool bAllowFade=true, bool m_bTaskReminders=true )
|
|
|
|
|
: TutorialTask(tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, m_bTaskReminders ),
|
|
|
|
|
m_group(groupToSelect),
|
|
|
|
|
m_type( e_Crafting_SelectGroup )
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
// Select Item
|
2026-03-08 19:08:36 -04:00
|
|
|
XuiCraftingTask(Tutorial *tutorial, int descriptionId, int itemId, bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = nullptr,
|
2026-03-01 12:16:08 +08:00
|
|
|
bool bShowMinimumTime=false, bool bAllowFade=true, bool m_bTaskReminders=true )
|
|
|
|
|
: TutorialTask(tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, m_bTaskReminders ),
|
|
|
|
|
m_item(itemId),
|
|
|
|
|
m_type( e_Crafting_SelectItem )
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
virtual bool isCompleted();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
eCraftingTaskType m_type;
|
|
|
|
|
Recipy::_eGroupType m_group;
|
|
|
|
|
int m_item;
|
|
|
|
|
};
|