SuperMarioOdysseyOnline/include/actors/PuppetHackActor.h
2022-06-16 14:33:18 -07:00

28 lines
836 B
C++

#pragma once
#include "al/LiveActor/LiveActor.h"
#include "al/util.hpp"
#include "logger.hpp"
#include "puppets/PuppetInfo.h"
#include "helpers.hpp"
// TODO: Make this actor only created once per puppet, and use SubActorKeeper to create PartsModel actors for each capture
class PuppetHackActor : public al::LiveActor {
public:
PuppetHackActor(const char *name);
virtual void init(al::ActorInitInfo const &) override;
virtual void initAfterPlacement() override;
virtual void control(void) override;
virtual void movement(void) override;
void initOnline(PuppetInfo *info, const char *hackType);
void startAction(const char* actName);
void startHackAnim(bool isOn);
private:
PuppetInfo *mInfo;
sead::FixedSafeString<0x20> mHackType;
};