10 #include "InteriorsCellResourceObserver.h"
11 #include "CallbackCollection.h"
12 #include "CollisionBvh.h"
28 std::string InstanceId;
31 int TransformIndexInRenderable;
39 TransformIndexInRenderable(0),
45 InstanceId(instanceId),
48 TransformIndexInRenderable(transformIndexInRenderable),
49 Renderable(renderable),
50 CollisionBvh(collisionBvh)
57 std::map<std::string, std::map<std::string, InstanceStore>> m_instanceIdMappings;
68 bool ContainsInstanceIdMapForInterior(
const std::string& interiorId)
const;
70 std::map<std::string, std::set<const Collision::CollisionBvh*>> m_interiorBvhMappings;
81 int transformIndexInRenderable;
84 void AddInstance(
const InstanceData& data,
int floorNum,
const std::string& interiorId);
85 void AddInstances(
const std::vector<InstanceData>& instanceDatas,
int floorNum,
const std::string& interiorId);
87 bool Contains(
const std::string& interiorId,
const std::string&
id)
const;
88 bool TryGet(
const std::string& interiorId,
const std::string&
id,
InstanceStore& out_instanceStore)
const;
89 bool TryGetInteriorIdForInstance(
const std::string&
id, std::string& out_interiorId)
const;
91 void RemoveId(
const std::string& interiorId,
const std::string&
id);
94 bool Contains(
const std::string&
id)
const;
98 void RemoveId(
const std::string&
id);
100 const std::vector<InstanceStore> GetInstancesInInterior(
const std::string& interiorId)
const;
101 const std::vector<InstanceStore> GetInstancesOnFloor(
const std::string& interiorId,
int floorNum)
const;
106 void DoAddInstance(
const InstanceData& data,
int floorNum,
const std::string& interiorId);