SuperMarioOdysseyOnline/include/puppets/HackModelHolder.hpp
2022-06-16 14:33:18 -07:00

38 lines
No EOL
946 B
C++

#pragma once
#include "al/LiveActor/LiveActor.h"
#include "al/util.hpp"
#include "sead/prim/seadSafeString.hpp"
#include "helpers.hpp"
#include "actors/PuppetHackActor.h"
struct CaptureEntry {
PuppetHackActor *actor;
char className[0x16];
};
class HackModelHolder {
public:
HackModelHolder() = default;
PuppetHackActor *getCapture(const char *hackName);
PuppetHackActor *getCapture(int index);
const char *getCaptureClass(int index);
bool addCapture(PuppetHackActor *capture, const char *hackName);
bool removeCapture(const char *hackName);
int getEntryCount() { return mCaptureCount; };
bool setCurrent(const char* hackName);
PuppetHackActor *getCurrentActor();
const char *getCurrentActorName();
void resetList();
private:
int mCaptureCount;
CaptureEntry *mCurCapture;
CaptureEntry mOnlineCaptures[128];
};