restructure codebase according to vcproj filters

This commit is contained in:
Tropical
2026-03-30 09:50:58 -05:00
parent d5cf90c713
commit 451682693e
3015 changed files with 46858 additions and 54635 deletions

View File

@@ -0,0 +1,22 @@
#include "../../../../Minecraft.World/Header Files/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);
}
const wchar_t* TutorialMessage::getMessageForDisplay() {
if (!canDisplay()) return L"";
if (limitRepeats) ++timesShown;
return app.GetString(messageId);
}