the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 25 lines 656 B view raw
1#include "stdafx.h" 2#include "Tutorial.h" 3#include "LookAtEntityHint.h" 4 5 6LookAtEntityHint::LookAtEntityHint(eTutorial_Hint id, Tutorial *tutorial, int descriptionId, int titleId, eINSTANCEOF type) 7 : TutorialHint(id, tutorial, descriptionId, e_Hint_LookAtEntity) 8{ 9 m_type = type; 10 m_titleId = titleId; 11} 12 13bool LookAtEntityHint::onLookAtEntity(eINSTANCEOF type) 14{ 15 if(m_type == type) 16 { 17 // Display hint 18 Tutorial::PopupMessageDetails *message = new Tutorial::PopupMessageDetails(); 19 message->m_messageId = m_descriptionId; 20 message->m_titleId = m_titleId; 21 message->m_delay = true; 22 return m_tutorial->setMessage(this, message); 23 } 24 return false; 25}