Expose ObjectData from AreaSearch
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user