summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetWorldMapVisited.cpp
blob: e8360ed21767411d906a3c403513a8a7ba9cf869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "SetWorldMapVisited.h"

#include <ship/utils/StringHelper.h>
#include "Globals.h"

SetWorldMapVisited::SetWorldMapVisited(ZFile* nParent) : ZRoomCommand(nParent)
{
}

std::string SetWorldMapVisited::GetBodySourceCode() const
{
	if (Globals::Instance->game == ZGame::MM_RETAIL)
		return "SCENE_CMD_SET_REGION_VISITED()";
	else
		return "SCENE_CMD_MISC_SETTINGS()";
}

std::string SetWorldMapVisited::GetCommandCName() const
{
	return "SCmdWorldMapVisited";
}

RoomCommand SetWorldMapVisited::GetRoomCommand() const
{
	return RoomCommand::SetWorldMapVisited;
}