MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isTypeCullableTrack

Function isTypeCullableTrack

src/OpenLoco/src/Paint/Paint.cpp:879–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877 }
878
879 static bool isTypeCullableTrack(const Ui::ViewportInteraction::InteractionItem type)
880 {
881 switch (type)
882 {
883 case Ui::ViewportInteraction::InteractionItem::track:
884 case Ui::ViewportInteraction::InteractionItem::trackExtra:
885 case Ui::ViewportInteraction::InteractionItem::signal:
886 case Ui::ViewportInteraction::InteractionItem::trainStation:
887 return true;
888 default:
889 return false;
890 }
891 }
892
893 static bool isTypeCullableTree(const Ui::ViewportInteraction::InteractionItem type)
894 {

Callers 1

shouldTryCullPaintStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected