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

Method restore

src/OpenLoco/src/Entities/EntityTweener.cpp:110–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 void EntityTweener::restore()
111 {
112 for (size_t i = 0; i < _entities.size(); ++i)
113 {
114 auto* ent = _entities[i];
115 if (ent == nullptr)
116 {
117 continue;
118 }
119
120 auto& newPos = _postPos[i];
121
122 if (ent->position == newPos)
123 {
124 continue;
125 }
126
127 ent->moveTo(newPos);
128 }
129 }
130
131 void EntityTweener::reset()
132 {

Callers

nothing calls this directly

Calls 2

moveToMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected