the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "BlockDestructionProgress.h"
3
4BlockDestructionProgress::BlockDestructionProgress(int id, int x, int y, int z)
5{
6 this->id = id;
7 this->x = x;
8 this->y = y;
9 this->z = z;
10
11 progress = 0;
12 updatedRenderTick = 0;
13}
14
15int BlockDestructionProgress::getId()
16{
17 return id;
18}
19
20int BlockDestructionProgress::getX()
21{
22 return x;
23}
24
25int BlockDestructionProgress::getY()
26{
27 return y;
28}
29
30int BlockDestructionProgress::getZ()
31{
32 return z;
33}
34
35void BlockDestructionProgress::setProgress(int progress)
36{
37 if (progress > 10)
38 {
39 progress = 10;
40 }
41 this->progress = progress;
42}
43
44int BlockDestructionProgress::getProgress()
45{
46 return progress;
47}
48
49void BlockDestructionProgress::updateTick(int tick)
50{
51 this->updatedRenderTick = tick;
52}
53
54int BlockDestructionProgress::getUpdatedRenderTick()
55{
56 return updatedRenderTick;
57}