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

#include "core/macros.hh"

#include "shared/types.hh"

class Dimension;
class VoxelStorage;

class Feature final : public std::vector<std::tuple<voxel_pos, voxel_id, bool>> {
public:
    DECLARE_DEFAULT_CONSTRUCTOR(Feature);
    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;
};

#endif /* SHARED_FEATURE_HH */