Restore behavior runtime state from typed Continue

This commit is contained in:
Meta Vens 2026-06-16 09:01:05 +01:00
commit 01fc810eb4
23 changed files with 406 additions and 13 deletions

View file

@ -93,5 +93,28 @@ public class LockWeapon : InstantWeapon
return base.Execute(dt);
}
}
public void RestoreRuntimeState(
bool firing,
int ammo,
int burstRemaining,
float burstTimer,
float burstInterval,
float cooldownProgress,
bool coolingDown,
float lockProgress,
Entity lockTarget)
{
base.RestoreRuntimeState(
firing,
ammo,
burstRemaining,
burstTimer,
burstInterval,
cooldownProgress,
coolingDown);
_lock = lockProgress;
_target = lockTarget;
_locking = lockTarget != null;
}
}