[Client] Make it possible to check whether a class can be harvested

pull/593/head
David Cernat 4 years ago
parent 860be0a4e7
commit b2328b7063

@ -174,6 +174,19 @@ namespace MWWorld
return false;
}
/*
Start of tes3mp addition
Make it possible to check whether a class can be harvested
*/
bool Class::canBeHarvested(const ConstPtr& ptr) const
{
return false;
}
/*
End of tes3mp addition
*/
bool Class::canLock(const ConstPtr &ptr) const
{
return false;

@ -171,6 +171,17 @@ namespace MWWorld
virtual bool canLock (const ConstPtr& ptr) const;
/*
Start of tes3mp addition
Make it possible to check whether a class can be harvested
*/
virtual bool canBeHarvested(const ConstPtr& ptr) const;
///< Can this object be harvested? (default implementation: false)
/*
End of tes3mp addition
*/
virtual void setRemainingUsageTime (const Ptr& ptr, float duration) const;
///< Sets the remaining duration of the object, such as an equippable light
/// source. (default implementation: throw an exception)

Loading…
Cancel
Save