Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
543 B · 23 lines
C++
at main
1234567891011121314151617181920212223#include "stdafx.h"#include "TutorialMessage.h"
TutorialMessage::TutorialMessage(int messageId, bool limitRepeats /*= false*/, unsigned char numRepeats /*= TUTORIAL_MESSAGE_DEFAULT_SHOW*/) : messageId( messageId ), limitRepeats( limitRepeats ), numRepeats( numRepeats ), timesShown( 0 ){}
bool TutorialMessage::canDisplay(){ return !limitRepeats || (timesShown < numRepeats);}
LPCWSTR TutorialMessage::getMessageForDisplay(){ if(!canDisplay()) return L"";
if(limitRepeats) ++timesShown;
return app.GetString( messageId );}