refactor: flatten app/ and util/ directory structure

This commit is contained in:
MatthewBeshay authored and Tropical committed 2026-04-06 20:32:24 -05:00
1 parent 9c0dfd60d5
commit d814a78453
616 files changed
+1731 -1747

No files matched your search

@@ -0,0 +1,27 @@
#include "RideEntityTask.h"
#include <memory>
#include "app/common/Tutorial/Tasks/TutorialTask.h"
#include "java/Class.h"
#include "minecraft/world/entity/Entity.h"
class Tutorial;
class TutorialConstraint;
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;
}
}