MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / onCameraReset

Method onCameraReset

Source/Platformer/PlatformWorld.cpp:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void PlatformWorld::onCameraReset() {
174 for (auto it : _layers) {
175 if (Layer* layer = it.second) {
176 layer->setPosition(layer->getOffset());
177 }
178 }
179}
180
181void PlatformWorld::removeLayer(int order) {
182 auto it = _layers.find(order);

Callers

nothing calls this directly

Calls 2

setPositionMethod · 0.45
getOffsetMethod · 0.45

Tested by

no test coverage detected