|
|
|
@ -129,8 +129,6 @@ namespace MWWorld
|
|
|
|
|
void addInitialItem (const std::string& id, const std::string& owner, int count, Misc::Rng::Seed* seed, bool topLevel=true);
|
|
|
|
|
void addInitialItemImp (const MWWorld::Ptr& ptr, const std::string& owner, int count, Misc::Rng::Seed* seed, bool topLevel=true);
|
|
|
|
|
|
|
|
|
|
int removeImp(const Ptr& item, int count, const Ptr& actor);
|
|
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
|
ContainerStoreIterator getState (CellRefList<T>& collection,
|
|
|
|
|
const ESM::ObjectState& state);
|
|
|
|
@ -180,12 +178,12 @@ namespace MWWorld
|
|
|
|
|
ContainerStoreIterator add(const std::string& id, int count, const Ptr& actorPtr);
|
|
|
|
|
///< Utility to construct a ManualRef and call add(ptr, count, actorPtr, true)
|
|
|
|
|
|
|
|
|
|
int remove(const std::string& itemId, int count, const Ptr& actor, bool resolve = true);
|
|
|
|
|
int remove(const std::string& itemId, int count, const Ptr& actor, bool equipReplacement = 0, bool resolve = true);
|
|
|
|
|
///< Remove \a count item(s) designated by \a itemId from this container.
|
|
|
|
|
///
|
|
|
|
|
/// @return the number of items actually removed
|
|
|
|
|
|
|
|
|
|
virtual int remove(const Ptr& item, int count, const Ptr& actor);
|
|
|
|
|
virtual int remove(const Ptr& item, int count, const Ptr& actor, bool equipReplacement = 0, bool resolve = true);
|
|
|
|
|
///< Remove \a count item(s) designated by \a item from this inventory.
|
|
|
|
|
///
|
|
|
|
|
/// @return the number of items actually removed
|
|
|
|
|