summaryrefslogtreecommitdiff
path: root/src/KingSystem/System/SystemTimers.h
blob: fe064c02d23af8f6d414486c49a77d81e24371a0 (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
#pragma once

#include <heap/seadDisposer.h>
#include <heap/seadHeap.h>
#include "KingSystem/Utils/Types.h"

namespace ksys {

class SystemTimers {
    SEAD_SINGLETON_DISPOSER(SystemTimers)

    SystemTimers() = default;
    virtual ~SystemTimers();

public:
    void init();
    void init2();
    void prepareStageUnload();
    void incrementCountersAndUpdate();
    void incrementCounters();

    unsigned int mFrameCounter = 0;
    int mFrameCounter2 = 0;
    float mVfrTimer = 0;
    int mFrameCounterB = 0;
    float mVfrTimer2 = 0;
    int mFrameCounterB2 = 0;
};
KSYS_CHECK_SIZE_NX150(SystemTimers, 0x40);

}  // namespace ksys