mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 15:36:07 +00:00
Notably also adds some metadata files for NixOS * add support for linux clang cross compiles * add linux clang instructions * un-capitalize Mob.horse.* * update the description in flake.nix --------- Co-authored-by: Loki <lokirautio@gmail.com>
30 lines
744 B
C++
30 lines
744 B
C++
#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(static_cast<eINSTANCEOF>(m_eType)))
|
|
{
|
|
bIsCompleted = true;
|
|
}
|
|
} |