MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetSelectableInLineSegment

Function GetSelectableInLineSegment

Source/Editors/map_editor.cpp:1999–2007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1997}
1998
1999static Collision GetSelectableInLineSegment(SceneGraph* scenegraph, const LineSegment& l, const TypeEnable& type_enable) {
2000 std::vector<Collision> collisions;
2001 GetEditorLineCollisions(scenegraph, l.start, l.end, collisions, type_enable);
2002 if (!collisions.empty()) {
2003 return collisions[0];
2004 } else {
2005 return Collision();
2006 }
2007}
2008
2009void CalculateGroupString(Object* obj, std::string& str) {
2010 if (obj->GetType() == _group || obj->GetType() == _prefab) {

Callers 1

CheckForSelectionsMethod · 0.85

Calls 3

GetEditorLineCollisionsFunction · 0.85
CollisionClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected