4jcraft/Minecraft.Client/Platform/Common/Tutorial/UseItemTask.h
MatthewBeshay dfb0e3b03e refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
2026-03-30 16:25:52 +11:00

22 lines
669 B
C++

#pragma once
// using namespace std;
#include "TutorialTask.h"
class Level;
// 4J Stu - Tasks that involve placing a tile
class UseItemTask : public TutorialTask {
private:
const int itemId;
public:
UseItemTask(const int itemId, Tutorial* tutorial, int descriptionId,
bool enablePreCompletion = false,
std::vector<TutorialConstraint*>* inConstraints = nullptr,
bool bShowMinimumTime = false, bool bAllowFade = true,
bool bTaskReminders = true);
virtual bool isCompleted();
virtual void useItem(std::shared_ptr<ItemInstance> item,
bool bTestUseOnly = false);
};