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

#include "shared/types.hh"

class Dimension;
class VoxelStorage;

class Feature final : public std::vector<std::pair<voxel_pos, voxel_id>> {
public:
    explicit Feature(void) = default;
    virtual ~Feature(void) = default;

public:
    void place(const voxel_pos &vpos, Dimension *dimension, bool overwrite = false) const;
    void place(const voxel_pos &vpos, const chunk_pos &cpos, VoxelStorage &voxels, bool overwrite = false) const;
};

#endif /* SHARED_FEATURE_HH */