blob: 55acca1e706fc86a2765abefc4f52999562a894c (
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 "foliage.h"
#include "game/worldobject.h"
#include "gfx/renderable.h"
#include "location.hpp"
class Plant : public Renderable, public WorldObject {
std::shared_ptr<const Foliage> type;
Location position;
void render(const SceneShader & shader) const override;
void shadows(const ShadowMapper & shadowMapper) const override;
void
tick(TickDuration) override
{
}
public:
Plant(std::shared_ptr<const Foliage> type, Location position) : type(std::move(type)), position(position) { }
};
|