the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include "FlatLayerInfo.h"
4
5void FlatLayerInfo::_init(int height, int id)
6{
7 this->height = height;
8 this->id = id;
9 data = 0;
10 start = 0;
11}
12
13FlatLayerInfo::FlatLayerInfo(int height, int id)
14{
15 _init(height, id);
16}
17
18FlatLayerInfo::FlatLayerInfo(int height, int id, int data)
19{
20 _init(height, id);
21 this->data = data;
22}
23
24int FlatLayerInfo::getHeight()
25{
26 return height;
27}
28
29void FlatLayerInfo::setHeight(int height)
30{
31 this->height = height;
32}
33
34int FlatLayerInfo::getId()
35{
36 return id;
37}
38
39void FlatLayerInfo::setId(int id)
40{
41 this->id = id;
42}
43
44int FlatLayerInfo::getData()
45{
46 return data;
47}
48
49void FlatLayerInfo::setData(int data)
50{
51 this->data = data;
52}
53
54int FlatLayerInfo::getStart()
55{
56 return start;
57}
58
59void FlatLayerInfo::setStart(int start)
60{
61 this->start = start;
62}
63
64wstring FlatLayerInfo::toString()
65{
66 wstring result = _toString<int>(id);
67
68 if (height > 1)
69 {
70 result = _toString<int>(height) + L"x" + result;
71 }
72 if (data > 0)
73 {
74 result += L":" + _toString<int>(data);
75 }
76
77 return result;
78}