mirror of
https://github.com/zeldaret/ss
synced 2026-06-09 04:29:58 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
33 lines
706 B
C++
33 lines
706 B
C++
#ifndef SCGAME_H
|
|
#define SCGAME_H
|
|
|
|
#include "common.h"
|
|
|
|
struct SpawnInfo {
|
|
/* 0x00 */ char stageName[32]; // Probably SizedString<32>
|
|
/* 0x20 */ s16 transitionFadeFrames;
|
|
/* 0x22 */ s8 room;
|
|
/* 0x23 */ u8 layer;
|
|
/* 0x24 */ s8 entrance;
|
|
/* 0x25 */ s8 night;
|
|
/* 0x26 */ s8 trial;
|
|
/* 0x27 */ s8 transitionType;
|
|
/* 0x28 */ s32 unk;
|
|
|
|
bool isNight() {
|
|
return night == 1;
|
|
}
|
|
};
|
|
|
|
class ScGame {
|
|
public:
|
|
static SpawnInfo currentSpawnInfo;
|
|
static SpawnInfo nextSpawnInfo;
|
|
static ScGame *sInstance;
|
|
|
|
static bool isCurrentStage(const char *stageName);
|
|
void triggerExit(s32 room, u8 exitIndex, s32 forcedNight = 2, s32 forcedTrial = 2);
|
|
};
|
|
|
|
#endif
|