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:
parent
860be0a4e7
commit
b2328b7063
2 changed files with 24 additions and 0 deletions
|
@ -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…
Reference in a new issue