Persist weapon runtime state in checkpoints
This commit is contained in:
parent
3c4fe6fd10
commit
f98f650ab5
10 changed files with 287 additions and 8 deletions
|
|
@ -35,6 +35,9 @@ public class ConstantWeapon : Weapon, IProgressBehavior, IEventBehavior
|
|||
{
|
||||
get => _ammo;
|
||||
}
|
||||
public float AmmoIntervalProgress => _ammoInterval;
|
||||
public float ReloadProgress => _reload;
|
||||
public bool Reloading => _reloading;
|
||||
|
||||
public float Progress
|
||||
{
|
||||
|
|
@ -147,4 +150,4 @@ public class ConstantWeapon : Weapon, IProgressBehavior, IEventBehavior
|
|||
OnStopFiring?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue