forked from mirror/openmw-tes3mp
Accept a ConstPtr in canLock
This commit is contained in:
parent
c43f80633a
commit
266fbbef48
6 changed files with 6 additions and 6 deletions
|
@ -279,7 +279,7 @@ namespace MWClass
|
|||
ptr.getCellRef().setLockLevel(-abs(ptr.getCellRef().getLockLevel())); //Makes lockLevel negative
|
||||
}
|
||||
|
||||
bool Container::canLock(const MWWorld::Ptr &ptr) const
|
||||
bool Container::canLock(const MWWorld::ConstPtr &ptr) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace MWClass
|
|||
virtual void unlock (const MWWorld::Ptr& ptr) const;
|
||||
///< Unlock object
|
||||
|
||||
virtual bool canLock(const MWWorld::Ptr &ptr) const;
|
||||
virtual bool canLock(const MWWorld::ConstPtr &ptr) const;
|
||||
|
||||
virtual void readAdditionalState (const MWWorld::Ptr& ptr, const ESM::ObjectState& state)
|
||||
const;
|
||||
|
|
|
@ -209,7 +209,7 @@ namespace MWClass
|
|||
ptr.getCellRef().setLockLevel(-abs(ptr.getCellRef().getLockLevel())); //Makes lockLevel negative
|
||||
}
|
||||
|
||||
bool Door::canLock(const MWWorld::Ptr &ptr) const
|
||||
bool Door::canLock(const MWWorld::ConstPtr &ptr) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace MWClass
|
|||
virtual void unlock (const MWWorld::Ptr& ptr) const;
|
||||
///< Unlock object
|
||||
|
||||
virtual bool canLock(const MWWorld::Ptr &ptr) const;
|
||||
virtual bool canLock(const MWWorld::ConstPtr &ptr) const;
|
||||
|
||||
virtual std::string getScript (const MWWorld::ConstPtr& ptr) const;
|
||||
///< Return name of the script attached to ptr
|
||||
|
|
|
@ -143,7 +143,7 @@ namespace MWWorld
|
|||
throw std::runtime_error ("class does not support unlocking");
|
||||
}
|
||||
|
||||
bool Class::canLock(const Ptr &ptr) const
|
||||
bool Class::canLock(const ConstPtr &ptr) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ namespace MWWorld
|
|||
virtual void unlock (const Ptr& ptr) const;
|
||||
///< Unlock object (default implementation: throw an exception)
|
||||
|
||||
virtual bool canLock (const Ptr& ptr) const;
|
||||
virtual bool canLock (const ConstPtr& ptr) const;
|
||||
|
||||
virtual void setRemainingUsageTime (const Ptr& ptr, float duration) const;
|
||||
///< Sets the remaining duration of the object, such as an equippable light
|
||||
|
|
Loading…
Reference in a new issue