mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-05-13 18:58:16 +00:00
18 lines
572 B
C++
18 lines
572 B
C++
#include "Library/LiveActor/ActorInitFunction.h"
|
|
|
|
#include "Library/LiveActor/LiveActor.h"
|
|
#include "Library/Stage/StageSwitchKeeper.h"
|
|
#include "Library/Thread/FunctorV0M.h"
|
|
|
|
namespace al {
|
|
bool trySyncStageSwitchKill(LiveActor* actor) {
|
|
using LiveActorFunctor = FunctorV0M<LiveActor*, void (LiveActor::*)()>;
|
|
|
|
bool result = listenStageSwitchOnOffKill(actor, LiveActorFunctor(actor, &LiveActor::kill),
|
|
LiveActorFunctor(actor, &LiveActor::appear));
|
|
actor->makeActorAlive();
|
|
|
|
return result;
|
|
}
|
|
} // namespace al
|