Expose ObjectData from AreaSearch

This commit is contained in:
Liru Færs
2020-01-08 19:22:36 -05:00
parent 640c136bcc
commit bf5035388b

View File

@@ -56,6 +56,20 @@ public:
void results();
static void processObjectPropertiesFamily(LLMessageSystem* msg, void** user_data);
struct ObjectData
{
LLUUID id;
std::string name;
std::string desc;
LLUUID owner_id;
LLUUID group_id;
};
const ObjectData* getObjectData(const LLUUID& id) const
{
const auto& it = mCachedObjects.find(id);
return it != mCachedObjects.end() ? &it->second : nullptr;
}
private:
@@ -84,14 +98,6 @@ private:
LLViewerRegion* mLastRegion;
bool mStopped;
struct ObjectData
{
LLUUID id;
std::string name;
std::string desc;
LLUUID owner_id;
LLUUID group_id;
};
uuid_set_t mPendingObjects;
boost::unordered_map<LLUUID, ObjectData> mCachedObjects;