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

Function viewportFocusOnEntity

src/OpenLoco/src/Ui/Windows/Main.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void viewportFocusOnEntity(Window& main, EntityId targetEntity)
116 {
117 if (main.viewports[0] == nullptr)
118 {
119 return;
120 }
121
122 main.viewportConfigurations[0].viewportTargetSprite = targetEntity;
123 }
124
125 bool viewportIsFocusedOnEntity(const Window& main, EntityId targetEntity)
126 {

Callers 2

viewportCentreMainMethod · 0.85
onCentreViewportDropdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected