summaryrefslogtreecommitdiff
path: root/src/KingSystem/Event/evtInfoData.h
blob: 21c8d1bfc98ede5dbe86cffb6bf5a35685e2acb5 (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
#pragma once

#include <heap/seadDisposer.h>
#include <prim/seadSafeString.h>
#include "KingSystem/Resource/resHandle.h"
#include "KingSystem/Resource/resLoadRequest.h"
#include "KingSystem/Utils/Byaml/Byaml.h"

namespace ksys::evt {

class InfoDataUnknownType {
public:
    virtual ~InfoDataUnknownType();
};

class InfoData {
    SEAD_SINGLETON_DISPOSER(InfoData)
    InfoData();
    virtual ~InfoData();

public:
    bool getEntry(al::ByamlIter* iter, const sead::SafeString& event_flow_name,
                  const sead::SafeString& entry_point);
    bool getSceneChangeEventTraverseLimit(const sead::SafeString& event_flow_name);
    void init(sead::Heap* heap);

private:
    void doInit(sead::Heap* heap, OverlayArena* arena);
    al::ByamlIter* mRootIter = nullptr;
    ksys::res::Handle mHandle;
    InfoDataUnknownType* _80 = nullptr;
};

}  // namespace ksys::evt