summaryrefslogtreecommitdiffstats
path: root/src/game/shared/world/feature.hh
blob: b80869d729d317dfcd53d939a7bd20bb7c75f398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "shared/types.hh"

class Chunk;
class Dimension;
class Voxel;
class VoxelStorage;

class Feature final : public std::vector<std::tuple<voxel_pos, const Voxel*, bool>> {
public:
    Feature(void) = default;
    virtual ~Feature(void) = default;

public:
    void place(const voxel_pos& vpos, Dimension* dimension) const;
    void place(const voxel_pos& vpos, const chunk_pos& cpos, Chunk& chunk) const;
    void place(const voxel_pos& vpos, const chunk_pos& cpos, VoxelStorage& voxels) const;
};