Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <string>
- #include <stdio.h>
- #include <iostream>
- #include <memory>
- #include <time.h>
- using namespace std;
- class Block {
- //Единица блока к.
- public:
- int name;
- Block(int NameOfBlock = 0) {
- name = NameOfBlock;
- }
- };
- class Chunk {
- //Единица чанков. Содержит в себе блоки к.
- public:
- std::vector<std::vector<std::unique_ptr<Block>>> Blocks;
- Chunk() : Blocks(32)
- {
- for (int i = 0; i != Blocks.size(); i++) {
- Blocks[i].emplace_back({});
- }
- }
- void FThit(float seed) {
- for (int xB = 0; xB != Blocks.size(); xB++) {
- for (int yB = 0; yB != Blocks[xB].size(); yB++) {
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement