Files
MinecraftConsoles/Minecraft.Client/Common/Tutorial/UseItemTask.h
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00

19 lines
554 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, vector<TutorialConstraint *> *inConstraints = NULL, bool bShowMinimumTime = false, bool bAllowFade = true, bool bTaskReminders = true );
virtual bool isCompleted();
virtual void useItem(shared_ptr<ItemInstance> item, bool bTestUseOnly=false);
};