MCPcopy Create free account
hub / github.com/crossuo/crossuo / Update

Method Update

src/GameObjects/GameEffectDrag.cpp:17–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void CGameEffectDrag::Update(CGameObject *parent)
18{
19 if (LastMoveTime > g_Ticks)
20 {
21 return;
22 }
23
24 OffsetX += 8;
25 OffsetY += 8;
26
27 LastMoveTime = g_Ticks + MoveDelay;
28
29 if (Duration < g_Ticks)
30 {
31 g_EffectManager.RemoveEffect(this);
32 }
33}

Callers

nothing calls this directly

Calls 1

RemoveEffectMethod · 0.45

Tested by

no test coverage detected