MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Road

Method Road

engine/Poseidon/World/Scene/ObjectClasses.cpp:708–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706DEFINE_CASTING(Road)
707
708Road::Road(LODShapeWithShadow* shape, int id) : Object(shape, id)
709{
710 _roadType = RoadTypes.New(shape->Name());
711 SetType(Network);
712 if (shape->GeometryLevel())
713 {
714 SetDestructType(DestructBuilding);
715 }
716 else
717 {
718 SetDestructType(DestructNo);
719 }
720}
721
722void Road::DrawDiags()
723{

Callers

nothing calls this directly

Calls 5

SetTypeFunction · 0.85
SetDestructTypeFunction · 0.85
GeometryLevelMethod · 0.80
NewMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected