summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actActorCaptureMgr.h
blob: 091fde8d1bcd45fd4d8709202e53c06c99f2a017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once

#include <basis/seadTypes.h>
#include <prim/seadSafeString.h>
#include "KingSystem/Resource/Actor/resResourceActorCapture.h"
#include "KingSystem/Resource/resHandle.h"
#include "KingSystem/System/Timer.h"
#include "KingSystem/Utils/Types.h"

namespace ksys::res {
class EntryFactoryBase;
}

namespace ksys::act {

class Actor;
class Camera;

// TODO: incomplete
class ActorCaptureMgr {
public:
    struct InitArg {
        sead::Heap* heap;
    };

    ActorCaptureMgr();
    virtual ~ActorCaptureMgr();

    void init(const InitArg& arg);
    void setCamera(Camera* camera);

    void loadCaptureParam();
    const char* getCapturedActorName() const;

private:
    Actor* mActor{};
    Camera* mCamera{};
    res::EntryFactoryBase* mFactory{};
    res::Handle mDummyFile;
    res::Handle mCaptureParamFile;
    sead::FixedSafeString<64> mStr;
    sead::FixedSafeString<256> mStr2;
    res::ActorCapture mRes;
    struct Field768 {
        Field768() {
            _76c = 0;
            _768 = 0;
        }
        u32 _768;
        u8 _76c;
    } _768;
    s32 _770 = -1;
    u32 _774{};
    u32 _778{};
    Timer mTimer;
};
KSYS_CHECK_SIZE_NX150(ActorCaptureMgr, 0x788);

}  // namespace ksys::act