Retrait d'instances de mc"clone"
This commit is contained in:
		
							
								
								
									
										25
									
								
								SQCSim2021/chunk.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								SQCSim2021/chunk.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| #include "chunk.h" | ||||
|  | ||||
| Chunk::Chunk() : BlockArray3d(CHUNK_SIZE_X, CHUNK_SIZE_Y, CHUNK_SIZE_Z) | ||||
| { | ||||
| } | ||||
|  | ||||
| Chunk::~Chunk() | ||||
| { | ||||
| } | ||||
|  | ||||
| void Chunk::RemoveBlock(int x, int y, int z) | ||||
| { | ||||
|     Set(x, y, z, BTYPE_AIR); | ||||
| } | ||||
|  | ||||
| void Chunk::SetBlock(int x, int y, int z, BlockType type) | ||||
| { | ||||
|     Set(x, y, z, type); | ||||
| } | ||||
|  | ||||
| BlockType Chunk::GetBlock(int x, int y, int z) | ||||
| { | ||||
|     return Get(x, y, z); | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user