master
← Tayrtahn:cleanup/timed-spawner
opened 04:43PM - 24 May 25 UTC
## About the PR
Modernizes `TimedSpawnerComponent` and `SpawnerSystem` code.
…
## Why / Balance
`SpawnRepeatingTimer` is bad.
1 more warning for [PZW](https://github.com/space-wizards/space-station-14/issues/33279)
## Technical details
Removed all the nasty timer and threading code and replaced it with a standard `Update` loop and auto-paused datafield.
## Requirements
- [X] I have read and am following the [Pull Request and Changelog Guidelines](https://docs.spacestation14.com/en/general-development/codebase-info/pull-request-guidelines.html).
- [X] I have added media to this PR or it does not require an ingame showcase.
## Breaking changes
`TimedSpawnerComponent.IntervalSeconds` is now a `TimeSpan` instead of an `int`. Thanks to the way `TimeSpan`s are serialized, this requires no YAML changes, but code that uses it will need to be adjusted.
TimedSpawnerComponent.IntervalSeconds
is now a TimeSpan
instead of an int
. Thanks to the way TimeSpan
s are serialized, this requires no YAML changes, but code that uses it will need to be adjusted.