Ajout de RetrieveChunk
This commit is contained in:
		| @@ -27,11 +27,14 @@ class World { | ||||
|         BlockType BlockAt(const Vector3f& pos, BlockType defaultBlockType = BTYPE_AIR) const; | ||||
|  | ||||
| 		void TransposeWorld(Player& player); | ||||
| 		void CleanUpWorld(int& frames); | ||||
| 		Chunk* RetrieveChunk(int x, int y); | ||||
|  | ||||
| private: | ||||
| 	Array2d<Chunk*> m_chunks = Array2d<Chunk*>(WORLD_SIZE_X, WORLD_SIZE_Y); | ||||
| 	std::vector<Chunk*> m_tbDeleted; | ||||
|  | ||||
| 	int m_center[2] = {INT16_MAX / 2, INT16_MAX / 2}; | ||||
| 	int m_center[2] = {INT16_MAX / 2 - WORLD_SIZE_X / 2, INT16_MAX / 2 - WORLD_SIZE_Y / 2}; | ||||
| }; | ||||
| #endif // WORLD_H__ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user