Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
732 B · 30 lines
C++
at main
123456789101112131415161718192021222324252627282930#include "stdafx.h"
#include <string>
#include "Minecraft.h"#include "Tutorial.h"
#include "..\Minecraft.World\EntityHorse.h"
#include "RideEntityTask.h"
RideEntityTask::RideEntityTask(const int eType, Tutorial *tutorial, int descriptionId, bool enablePreCompletion, vector<TutorialConstraint *> *inConstraints, bool bShowMinimumTime, bool bAllowFade, bool bTaskReminders) : TutorialTask( tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, bTaskReminders ), m_eType( eType ){}
bool RideEntityTask::isCompleted(){ return bIsCompleted;}
void RideEntityTask::onRideEntity(shared_ptr<Entity> entity){ if (entity->instanceof((eINSTANCEOF) m_eType)) { bIsCompleted = true; }}