mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
Scene: Implement StageScene::isIgnoreAddPlayTime() (#1014)
This commit is contained in:
parent
fcc4c87e0d
commit
1020da244f
|
|
@ -137779,7 +137779,7 @@ Scene/StageScene.o:
|
|||
- offset: 0x4cc718
|
||||
size: 36
|
||||
label: _ZNK10StageScene19isIgnoreAddPlayTimeEv
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x4cc73c
|
||||
size: 308
|
||||
label: _ZN10StageScene4killEv
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "Layout/KidsModeLayoutAccessor.h"
|
||||
#include "Layout/StageSceneLayout.h"
|
||||
#include "Scene/StageSceneStateSnapShot.h"
|
||||
#include "System/GameDataFunction.h"
|
||||
#include "System/GameDataHolderAccessor.h"
|
||||
#include "Util/AmiiboUtil.h"
|
||||
|
|
@ -83,6 +84,12 @@ NERVES_MAKE_STRUCT(StageScene, StartStageBgm, CollectBgm, CollectionList, MiniGa
|
|||
WarpToCheckpoint, DemoAppearFromHome, DemoRisePyramid, WaitWarpToCheckpoint)
|
||||
} // namespace
|
||||
|
||||
bool StageScene::isIgnoreAddPlayTime() const {
|
||||
if (!mStateSnapShot->isDead())
|
||||
return true;
|
||||
return al::isNerve(this, &NrvStageScene.Pause);
|
||||
}
|
||||
|
||||
void StageScene::exeDemoGetLifeMaxUpItem() {
|
||||
if (mIsUpdateKitAndGraphics) {
|
||||
al::updateKit(this);
|
||||
|
|
|
|||
30
src/Scene/StageSceneStateSnapShot.h
Normal file
30
src/Scene/StageSceneStateSnapShot.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "Library/Nerve/NerveStateBase.h"
|
||||
|
||||
namespace al {
|
||||
class Scene;
|
||||
} // namespace al
|
||||
|
||||
class ControllerGuideSnapShotCtrl;
|
||||
class InputSeparator;
|
||||
class NpcEventDirector;
|
||||
class SceneAudioSystemPauseController;
|
||||
|
||||
class StageSceneStateSnapShot : public al::HostStateBase<al::Scene> {
|
||||
public:
|
||||
StageSceneStateSnapShot(const char*, al::Scene*, ControllerGuideSnapShotCtrl*,
|
||||
SceneAudioSystemPauseController*, InputSeparator*, NpcEventDirector*);
|
||||
void appear() override;
|
||||
void kill() override;
|
||||
bool tryStart();
|
||||
void exeWait();
|
||||
|
||||
private:
|
||||
ControllerGuideSnapShotCtrl* mControllerGuideSnapShotCtrl;
|
||||
SceneAudioSystemPauseController* mAudioSystemPauseController;
|
||||
InputSeparator* mInputSeparator;
|
||||
NpcEventDirector* mNpcEventDirector;
|
||||
};
|
||||
|
||||
static_assert(sizeof(StageSceneStateSnapShot) == 0x40);
|
||||
Loading…
Reference in a new issue