1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 02:36:44 +00:00

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

This commit is contained in:
David Cernat 2021-04-06 04:51:49 +02:00
parent 860be0a4e7
commit b2328b7063
2 changed files with 24 additions and 0 deletions

View file

@ -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;

View file

@ -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)