1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Remove burn time definitions from FurnaceNodeMetadata

This commit is contained in:
Perttu Ahola
2011-11-16 02:22:41 +02:00
parent 7fae32095a
commit 6a417c538f
9 changed files with 79 additions and 87 deletions

View File

@@ -106,10 +106,12 @@ public:
// Whether it can be cooked
virtual bool isCookable() const {return false;}
// Time of cooking
virtual float getCookTime(){return 3.0;}
// Result of cooking (can randomize)
virtual InventoryItem *createCookResult() const {return NULL;}
// Time of cooking
virtual float getCookTime() const {return 3.0;}
// Whether it can be burned (<0 = cannot be burned)
virtual float getBurnTime() const {return -1;}
// Eat, press, activate, whatever.
// Called when item is right-clicked when lying on ground.
@@ -180,6 +182,8 @@ public:
*/
bool isCookable() const;
InventoryItem *createCookResult() const;
float getCookTime() const;
float getBurnTime() const;
/*
Special methods
*/
@@ -258,6 +262,8 @@ public:
bool isCookable() const;
InventoryItem *createCookResult() const;
float getCookTime() const;
float getBurnTime() const;
bool use(ServerEnvironment *env, ServerActiveObject *user);