Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/file_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ Audio/CollectBgmPlayer.o:
- offset: 0x008a04
size: 4
label: _ZN16CollectBgmPlayer7prepareEv
status: NotDecompiled
status: Matching
- offset: 0x008a08
size: 248
label: _ZN16CollectBgmPlayer5startEPKcS1_
Expand Down Expand Up @@ -1695,7 +1695,7 @@ Audio/SePlayObjWithSave.o:
- offset: 0x009840
size: 4
label: _ZN17SePlayObjWithSave4initERKN2al13ActorInitInfoE
status: NotDecompiled
status: Matching
- offset: 0x009844
size: 120
label: _ZN17SePlayObjWithSave10receiveMsgEPKN2al9SensorMsgEPNS0_9HitSensorES5_
Expand All @@ -1721,7 +1721,7 @@ Audio/ShopBgmPlayer.o:
- offset: 0x009bb4
size: 4
label: _ZN13ShopBgmPlayer8movementEv
status: NotDecompiled
status: Matching
- offset: 0x009bb8
size: 92
label: _ZN13ShopBgmPlayer15exeWaitOnSwitchEv
Expand Down
27 changes: 27 additions & 0 deletions lib/al/Library/Obj/SePlayObj.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

#include "Library/LiveActor/LiveActor.h"

namespace al {
class SePlayObj : public LiveActor {
public:
SePlayObj(const char* name);
void init(const ActorInitInfo& info) override;
void initAfterPlacement() override;
void makeActorAlive() override;
void kill() override;
void movement() override;
void waitSwitch();
void startPlaying();
bool isPlaying();
void exeWaitSwitch();
void exePlay();
bool tryPlayStart();
void exePlayRepeat();

private:
char filler[0x98];
};

static_assert(sizeof(SePlayObj) == 0x1a0);
} // namespace al
3 changes: 3 additions & 0 deletions src/Audio/CollectBgmPlayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "Audio/CollectBgmPlayer.h"

void CollectBgmPlayer::prepare() {}
25 changes: 25 additions & 0 deletions src/Audio/CollectBgmPlayer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once

#include <basis/seadTypes.h>

#include "Library/HostIO/HioNode.h"
#include "Library/Scene/ISceneObj.h"

namespace al {
class IUseAudioKeeper;
}

class CollectBgmPlayer : public al::HioNode, public al::ISceneObj {
public:
CollectBgmPlayer();
void init(const al::IUseAudioKeeper* audio_keeper);
void prepare();
void start(const char* name, const char* situation_name);
void stop(s32 fade_frames);
void isPlaying(const char* name, const char* situation_name) const;

private:
char filler[0x18];
};

static_assert(sizeof(CollectBgmPlayer) == 0x20);
5 changes: 5 additions & 0 deletions src/Audio/SePlayObjWithSave.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "Audio/SePlayObjWithSave.h"

void SePlayObjWithSave::init(const al::ActorInitInfo& info) {
al::SePlayObj::init(info);
}
13 changes: 13 additions & 0 deletions src/Audio/SePlayObjWithSave.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once

#include "Library/Obj/SePlayObj.h"

class SePlayObjWithSave : public al::SePlayObj {
public:
SePlayObjWithSave(const char* name);
void init(const al::ActorInitInfo& info) override;
bool receiveMsg(const al::SensorMsg* message, al::HitSensor* other,
al::HitSensor* self) override;
};

static_assert(sizeof(SePlayObjWithSave) == 0x1a0);
5 changes: 5 additions & 0 deletions src/Audio/ShopBgmPlayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "Audio/ShopBgmPlayer.h"

void ShopBgmPlayer::movement() {
al::LiveActor::movement();
}
18 changes: 18 additions & 0 deletions src/Audio/ShopBgmPlayer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

#include "Library/LiveActor/LiveActor.h"

class ShopBgmPlayer : public al::LiveActor {
public:
ShopBgmPlayer(const char* name);
void init(const al::ActorInitInfo& info) override;
void makeActorAlive() override;
void movement() override;
void exeWaitOnSwitch();
void exePlay();

private:
char filler[0x10];
};

static_assert(sizeof(ShopBgmPlayer) == 0x118);
Loading