MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateList

Function UpdateList

Source/Engine/Debug/DebugDraw.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190template<typename T>
191void UpdateList(float dt, Array<T>& list)
192{
193 for (int32 i = 0; i < list.Count() && list.HasItems(); i++)
194 {
195 list[i].TimeLeft -= dt;
196 if (list[i].TimeLeft <= 0)
197 {
198 list.RemoveAt(i);
199 i--;
200 }
201 }
202}
203
204void TeleportList(const Float3& delta, Array<DebugLine>& list)
205{

Callers 1

UpdateMethod · 0.85

Calls 3

CountMethod · 0.45
HasItemsMethod · 0.45
RemoveAtMethod · 0.45

Tested by

no test coverage detected