mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-24 03:36:56 +00:00
exclude unused GameMode implementations, format Platform/Common/Tutorial
This commit is contained in:
@@ -4,22 +4,20 @@
|
||||
#include "../../Minecraft.World/Items/ItemInstance.h"
|
||||
#include "UseItemTask.h"
|
||||
|
||||
UseItemTask::UseItemTask(const int itemId, Tutorial *tutorial, int descriptionId,
|
||||
bool enablePreCompletion, std::vector<TutorialConstraint *> *inConstraints, bool bShowMinimumTime, bool bAllowFade, bool bTaskReminders)
|
||||
: TutorialTask( tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, bTaskReminders ),
|
||||
itemId( itemId )
|
||||
{
|
||||
}
|
||||
UseItemTask::UseItemTask(const int itemId, Tutorial* tutorial,
|
||||
int descriptionId, bool enablePreCompletion,
|
||||
std::vector<TutorialConstraint*>* inConstraints,
|
||||
bool bShowMinimumTime, bool bAllowFade,
|
||||
bool bTaskReminders)
|
||||
: TutorialTask(tutorial, descriptionId, enablePreCompletion, inConstraints,
|
||||
bShowMinimumTime, bAllowFade, bTaskReminders),
|
||||
itemId(itemId) {}
|
||||
|
||||
bool UseItemTask::isCompleted()
|
||||
{
|
||||
return bIsCompleted;
|
||||
}
|
||||
bool UseItemTask::isCompleted() { return bIsCompleted; }
|
||||
|
||||
void UseItemTask::useItem(std::shared_ptr<ItemInstance> item,bool bTestUseOnly)
|
||||
{
|
||||
if(bTestUseOnly) return;
|
||||
void UseItemTask::useItem(std::shared_ptr<ItemInstance> item,
|
||||
bool bTestUseOnly) {
|
||||
if (bTestUseOnly) return;
|
||||
|
||||
if( item->id == itemId )
|
||||
bIsCompleted = true;
|
||||
if (item->id == itemId) bIsCompleted = true;
|
||||
}
|
||||
Reference in New Issue
Block a user