Advertisement
Jakowlew

Untitled

Dec 27th, 2020
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #include <vector>
  2. #include <string>
  3. #include <stdio.h>
  4. #include <iostream>
  5. #include <memory>
  6. #include <time.h>
  7. using namespace std;
  8. class Block {
  9.     //Единица блока к.
  10. public:
  11.     int name;
  12.     Block(int NameOfBlock = 0) {
  13.         name = NameOfBlock;
  14.     }
  15. };
  16.  
  17. class Chunk {
  18.     //Единица чанков. Содержит в себе блоки к.
  19. public:
  20.     std::vector<std::vector<std::unique_ptr<Block>>> Blocks;
  21.     Chunk() : Blocks(32)
  22.     {
  23.         for (int i = 0; i != Blocks.size(); i++) {
  24.             Blocks[i].emplace_back({});
  25.         }
  26.     }
  27.     void FThit(float seed) {
  28.         for (int xB = 0; xB != Blocks.size(); xB++) {
  29.             for (int yB = 0; yB != Blocks[xB].size(); yB++) {
  30.             }
  31.         }
  32.     }
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement