the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "TutorialMessage.h"
3
4TutorialMessage::TutorialMessage(int messageId, bool limitRepeats /*= false*/, unsigned char numRepeats /*= TUTORIAL_MESSAGE_DEFAULT_SHOW*/)
5 : messageId( messageId ), limitRepeats( limitRepeats ), numRepeats( numRepeats ), timesShown( 0 )
6{
7}
8
9bool TutorialMessage::canDisplay()
10{
11 return !limitRepeats || (timesShown < numRepeats);
12}
13
14LPCWSTR TutorialMessage::getMessageForDisplay()
15{
16 if(!canDisplay())
17 return L"";
18
19 if(limitRepeats)
20 ++timesShown;
21
22 return app.GetString( messageId );
23}