summaryrefslogtreecommitdiff
path: root/include/SSystem/SComponent/c_counter.h
blob: 864554b1a7a437bf39dfb6a28c28bc94658cf765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef C_COUNTER_H
#define C_COUNTER_H

#include <types.h>

struct counter_class {
    u32 mCounter0;
    s32 mCounter1;
    u32 mTimer;
};

extern counter_class g_Counter;

void cCt_Counter(int resetCounter1);

inline void cCt_execCounter() {
    g_Counter.mTimer++;
}

#endif /* C_COUNTER_H */