Files
GabsPuNs-Project_Zenith_Main/Minecraft.Client/Common/Tutorial/LookAtEntityHint.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

24 lines
636 B
C++

#include "Tutorial.h"
#include "LookAtEntityHint.h"
LookAtEntityHint::LookAtEntityHint(eTutorial_Hint id, Tutorial *tutorial, int descriptionId, int titleId, eINSTANCEOF type)
: TutorialHint(id, tutorial, descriptionId, e_Hint_LookAtEntity)
{
m_type = type;
m_titleId = titleId;
}
bool LookAtEntityHint::onLookAtEntity(eINSTANCEOF type)
{
if(m_type == type)
{
// Display hint
Tutorial::PopupMessageDetails *message = new Tutorial::PopupMessageDetails();
message->m_messageId = m_descriptionId;
message->m_titleId = m_titleId;
message->m_delay = true;
return m_tutorial->setMessage(this, message);
}
return false;
}