diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 18:03:34 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 18:03:34 +0100 |
commit | 5776a36b454fac04617313da011d7aa2b0e834d3 (patch) | |
tree | 1eb96d07e9a17a51e5763f397fc003f762cd2e75 /game/scenary/plant.h | |
parent | Merge branch 'model-factory-textures' (diff) | |
parent | Add an asset template and use it to define all the foliage assets in the plan... (diff) | |
download | ilt-5776a36b454fac04617313da011d7aa2b0e834d3.tar.bz2 ilt-5776a36b454fac04617313da011d7aa2b0e834d3.tar.xz ilt-5776a36b454fac04617313da011d7aa2b0e834d3.zip |
Merge branch 'assimp'
Diffstat (limited to 'game/scenary/plant.h')
-rw-r--r-- | game/scenary/plant.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/game/scenary/plant.h b/game/scenary/plant.h new file mode 100644 index 0000000..55acca1 --- /dev/null +++ b/game/scenary/plant.h @@ -0,0 +1,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) { } +}; |