| 1 | #pragma once |
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | |
| 5 | #include "Library/HostIO/HioNode.h" |
| 6 | |
| 7 | namespace al { |
| 8 | struct ActorInitInfo; |
| 9 | class AddDemoInfo; |
| 10 | class EffectSystem; |
| 11 | class LiveActor; |
| 12 | class PlacementId; |
| 13 | |
| 14 | class DemoDirector : public HioNode { |
| 15 | public: |
| 16 | DemoDirector(s32); |
| 17 | |
| 18 | void addDemoActorWithSubActor(LiveActor*); |
| 19 | void addDemoActor(LiveActor*); |
| 20 | virtual void endInit(const ActorInitInfo&); |
| 21 | bool isActiveDemo() const; |
| 22 | const char* getActiveDemoName() const; |
| 23 | bool requestStartDemo(const char*); |
| 24 | void requestEndDemo(const char*); |
| 25 | bool tryAddDemoActor(LiveActor*); |
| 26 | LiveActor** getDemoActorList() const; |
| 27 | s32 getDemoActorNum() const; |
| 28 | virtual void updateDemoActor(EffectSystem*); |
| 29 | AddDemoInfo* registDemoRequesterToAddDemoInfo(const PlacementId&); |
| 30 | AddDemoInfo* findOrCreateAddDemoInfo(const PlacementId&); |
| 31 | void registActorToAddDemoInfo(LiveActor*, const PlacementId&); |
| 32 | AddDemoInfo* tryFindAddDemoInfo(const PlacementId&) const; |
| 33 | // BUG: only ever returns `nullptr` |
| 34 | AddDemoInfo* findAddDemoInfo(const PlacementId&) const; |
| 35 | virtual bool startDemo(const char*); |
| 36 | virtual void endDemo(const char*); |
| 37 | |
| 38 | private: |
| 39 | const char* mActiveDemoName; |
| 40 | void* filler[8]; |
| 41 | }; |
| 42 | } // namespace al |
| 43 | |