mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-05 03:05:04 +00:00
41 lines
No EOL
934 B
C++
41 lines
No EOL
934 B
C++
#pragma once
|
|
|
|
|
|
#include "sead/container/seadPtrArray.h"
|
|
#include "sead/prim/seadSafeString.hpp"
|
|
#include "logger.hpp"
|
|
#include "actors/PuppetActor.h"
|
|
|
|
class PuppetHolder {
|
|
public:
|
|
PuppetHolder(int size);
|
|
|
|
void update();
|
|
|
|
bool tryRegisterPuppet(PuppetActor *puppet);
|
|
|
|
bool tryRegisterDebugPuppet(PuppetActor *puppet);
|
|
|
|
bool checkInfoIsInStage(PuppetInfo *info);
|
|
|
|
int getSize() {return mPuppetArr.size(); }
|
|
|
|
PuppetActor *getPuppetActor(int idx) {return mPuppetArr[idx];};
|
|
|
|
PuppetActor *getDebugPuppet();
|
|
|
|
void setStageInfo(const char *stageName, u8 scenarioNo);
|
|
|
|
void clearPuppets() { mPuppetArr.clear(); }
|
|
|
|
bool resizeHolder(int size);
|
|
|
|
private:
|
|
sead::PtrArray<PuppetActor> mPuppetArr = sead::PtrArray<PuppetActor>();
|
|
|
|
PuppetActor *mDebugPuppet;
|
|
|
|
sead::FixedSafeString<0x40> mStageName;
|
|
|
|
u8 mScenarioNo;
|
|
}; |