-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstructor_mappings.json
29 lines (29 loc) · 1.2 KB
/
constructor_mappings.json
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
{
"Vec3": {
"vars": ["float x", "float y", "float z"],
"constructor": {
"Vec3(void)": ["this->x = 0", "this->y = 0", "this->z = 0"],
"Vec3(float)": ["this->x = x", "this->y = x", "this->z = x"],
"Vec3(float, float, float)": ["this->x = x", "this->y = y", "this->z = z"],
"Vec3(BlockPos const&)": ["this->x = blockPos.x", "this->y = blockPos.y", "this->z = blockPos.z"],
"Vec3(Pos const&)": ["this->x = pos.x", "this->y = pos.y", "this->z = pos.z"]
}
},
"BlockPos": {
"vars": ["int x", "int y", "int z"],
"constructor": {
"BlockPos(BlockPos const&)": ["this->x = blockPos.x", "this->y = blockPos.y", "this->z = blockPos.z"],
"BlockPos(void)": ["this->x = 0", "this->y = 0", "this->z = 0"],
"BlockPos(int, int, int)": ["this->x = x", "this->y = y", "this->z = z"],
"BlockPos(int)": ["this->x = x", "this->y = x", "this->z = x"]
}
},
"Pos": {
"vars": ["int x", "int y", "int z"],
"constructor": {
"Pos(Pos const&)": ["this->x = pos.x", "this->y = pos.y", "this->z = pos.z"],
"Pos(void)": ["this->x = 0", "this->y = 0", "this->z = 0"],
"Pos(int, int, int)": ["this->x = x", "this->y = y", "this->z = z"]
}
}
}