the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include <string>
4
5#include "Minecraft.h"
6#include "Tutorial.h"
7
8#include "..\Minecraft.World\EntityHorse.h"
9
10#include "RideEntityTask.h"
11
12RideEntityTask::RideEntityTask(const int eType, Tutorial *tutorial, int descriptionId,
13 bool enablePreCompletion, vector<TutorialConstraint *> *inConstraints, bool bShowMinimumTime, bool bAllowFade, bool bTaskReminders)
14 : TutorialTask( tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, bTaskReminders ),
15 m_eType( eType )
16{
17}
18
19bool RideEntityTask::isCompleted()
20{
21 return bIsCompleted;
22}
23
24void RideEntityTask::onRideEntity(shared_ptr<Entity> entity)
25{
26 if (entity->instanceof((eINSTANCEOF) m_eType))
27 {
28 bIsCompleted = true;
29 }
30}