6 #include "CollisionGroup.h"
17 CollisionMaterial(CollisionGroup::Type collisionGroup,
const std::string& materialId)
18 : m_collisionGroup(collisionGroup)
19 , m_materialId(materialId)
24 CollisionGroup::Type CollisionGroup()
const {
return m_collisionGroup; }
25 std::string MaterialId()
const {
return m_materialId; }
27 CollisionGroup::Type m_collisionGroup;
28 std::string m_materialId;
31 struct MatchesId :
public std::unary_function<const CollisionMaterial&, bool>
34 : m_materialId(materialId) {}
38 return collisionMaterial.MaterialId() == m_materialId;
40 const std::string m_materialId;