From ebf9df3fe296b40cd3aebb867d38e8f5c77f6885 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 2 May 2017 03:29:52 +0300 Subject: [PATCH] [Client] Add getMergedRefs() method to CellStore --- apps/openmw/mwworld/cellstore.cpp | 6 ++++++ apps/openmw/mwworld/cellstore.hpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index 2964c8a8a..527c72f4e 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -478,6 +478,12 @@ namespace MWWorld return searchVisitor.mFound; } + // Added by tes3mp and used to get all the MergedRefs in the cell + std::vector *CellStore::getMergedRefs() + { + return &mMergedRefs; + } + // Added by tes3mp and used to get all the NPCs in the cell CellRefList *CellStore::getNpcs() { diff --git a/apps/openmw/mwworld/cellstore.hpp b/apps/openmw/mwworld/cellstore.hpp index 2bd3ed082..8bbaaacfc 100644 --- a/apps/openmw/mwworld/cellstore.hpp +++ b/apps/openmw/mwworld/cellstore.hpp @@ -234,6 +234,9 @@ namespace MWWorld Ptr searchExact (const std::string& id, unsigned int refNumIndex, unsigned int mpNum); ///< Added by tes3mp and used to find an object by both its ID and its reference number + std::vector *getMergedRefs(); + // Added by tes3mp and used to get all the MergedRefs in the cell + CellRefList *getNpcs(); // Added by tes3mp and used to get all the NPCs in the cell