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