Fix LiquidItem preview (again!)

This commit is contained in:
Kae 2023-08-20 10:42:17 +10:00
parent 572b492b93
commit 3990b196a2

View File

@ -5,12 +5,13 @@
#include "StarFireableItem.hpp" #include "StarFireableItem.hpp"
#include "StarBeamItem.hpp" #include "StarBeamItem.hpp"
#include "StarEntityRendering.hpp" #include "StarEntityRendering.hpp"
#include "StarPreviewTileTool.hpp"
namespace Star { namespace Star {
STAR_CLASS(LiquidItem); STAR_CLASS(LiquidItem);
class LiquidItem : public Item, public FireableItem, public BeamItem { class LiquidItem : public Item, public FireableItem, public PreviewTileTool, public BeamItem {
public: public:
LiquidItem(Json const& config, String const& directory, Json const& settings); LiquidItem(Json const& config, String const& directory, Json const& settings);
virtual ~LiquidItem() {} virtual ~LiquidItem() {}
@ -27,7 +28,7 @@ public:
LiquidId liquidId() const; LiquidId liquidId() const;
float liquidQuantity() const; float liquidQuantity() const;
List<PreviewTile> preview(bool shifting) const; List<PreviewTile> preview(bool shifting) const override;
bool canPlace(bool shifting) const; bool canPlace(bool shifting) const;
bool canPlaceAtTile(Vec2I pos) const; bool canPlaceAtTile(Vec2I pos) const;