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

#include "shared/types.hh"

namespace world
{
class Dimension;
class VoxelStorage;
} // namespace world

namespace world
{
class Feature final : public std::vector<std::tuple<voxel_pos, voxel_id, 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, VoxelStorage& voxels) const;
};
} // namespace world