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