mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-23 21:42:20 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user