blob: f8a10d70d549a91cc24f1bdf1f24c29e610563c9 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#include "KingSystem/System/StageInfo.h"
namespace ksys {
static sead::Atomic<int> sUnused;
void (*StageInfo::sChangeScene)(const sead::SafeString& map_name, const sead::SafeString& pos_name,
int x, bool triggered_by_stage_select);
bool StageInfo::sIsNotDebugStageAndNotDungeon;
bool StageInfo::sIsMainFieldDungeon;
bool StageInfo::sIsDungeon;
bool StageInfo::sIsCDungeon;
bool StageInfo::sIsMainFieldDungeon2;
bool StageInfo::sIsActorViewer;
bool StageInfo::sIsStageDebug;
bool StageInfo::sIsTestDungeon;
bool StageInfo::sIsDebugOrDevMap;
bool StageInfo::sIsRemainsElectric;
bool StageInfo::sIsRemainsFire;
bool StageInfo::sIsRemainsWater;
bool StageInfo::sIsRemainsWind;
bool StageInfo::sIsFinalTrial;
bool StageInfo::sIsAocField;
bool StageInfo::sIsMainField;
sead::FixedSafeString<32> StageInfo::sCurrentMapType;
sead::FixedSafeString<32> StageInfo::sCurrentMapName;
const sead::SafeString& StageInfo::getCurrentMapName() {
return sCurrentMapName;
}
const sead::SafeString& StageInfo::getCurrentMapType() {
return sCurrentMapType;
}
void StageInfo::setCurrentMap(const sead::SafeString& type, const sead::SafeString& name) {
sCurrentMapName = name;
sCurrentMapType = type;
}
void StageInfo::setCurrentMapNameForFieldPos(const sead::Vector3f& pos) {
if (!sIsNotDebugStageAndNotDungeon)
return;
sead::FixedSafeString<32> name;
name.format("%c-%c", (int(pos.x) + 5000) / 1000 + 'A', (int(pos.z) + 4000) / 1000 + '1');
sCurrentMapName = name;
}
} // namespace ksys
|