mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 23:05:55 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include "../../../../../Minecraft.World/Header Files/stdafx.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "../../../../net/minecraft/client/Minecraft.h"
|
||||
#include "../Tutorial.h"
|
||||
|
||||
#include "../../../../../Minecraft.World/net/minecraft/world/entity/animal/EntityHorse.h"
|
||||
|
||||
#include "RideEntityTask.h"
|
||||
|
||||
RideEntityTask::RideEntityTask(const int eType, Tutorial* tutorial,
|
||||
int descriptionId, bool enablePreCompletion,
|
||||
std::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(std::shared_ptr<Entity> entity) {
|
||||
if (entity->instanceof((eINSTANCEOF)m_eType)) {
|
||||
bIsCompleted = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user