SuperMarioOdysseyOnline/include/puppets/HackModelHolder.hpp

38 lines
946 B
C++
Raw Normal View History

2022-06-16 21:33:18 +00:00
#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];
};