Event refactor (#9589)

* Station event refactor

* Remove clientside `IStationEventManager`

we can just use prototypes

* Basic API idea

* Cruft

* first attempt at epicness

* okay yeah this shit is really clean

* sort out minor stuff

* Convert `BreakerFlip`

* `BureaucraticError` + general cleanup

* `DiseaseOutbreak`

* `FalseAlarm`

* `GasLeak`

* `KudzuGrowth`

* `MeteorSwarm`

* `MouseMigration`

* misc errors

* `PowerGridCheck`

* `RandomSentience`

* `VentClog`

* `VentCritters`

* `ZombieOutbreak`

* Rewrite basic event scheduler

* Minor fixes and logging

* ooooops

* errors + fix

* linter

* completions, `RuleStarted` property, update loop fixes

* Tweaks

* Fix #9462

* Basic scheduler update fix, and fixes #8174

* Add test

* UI cleanup

* really this was just for testing
This commit is contained in:
Kara
2022-07-10 18:48:41 -07:00
committed by GitHub
parent f28cdaaa7c
commit b9a0894d7c
55 changed files with 1095 additions and 1582 deletions

View File

@@ -1,2 +1,2 @@
station-event-meteor-swarm-start-announcement = Meteors are on a collision course with the station. Brace for impact.
station-event-meteor-swarm-ebd-announcement = The meteor swarm has passed. Please return to your stations.
station-event-meteor-swarm-end-announcement = The meteor swarm has passed. Please return to your stations.

View File

@@ -1,19 +0,0 @@
### Localization for events console commands
## 'events' command
cmd-events-desc = Provides admin control to station events
cmd-events-help = events <running/list/pause/resume/stop/run <eventName/random>>
running: return the current running event
list: return all event names that can be run
pause: stop all random events from running and any one currently running
resume: allow random events to run again
run <eventName/random>: start a particular event now; <eventName> is case-insensitive and not localized
cmd-events-arg-subcommand = <subcommand>
cmd-events-arg-run-eventName = <eventName>
cmd-events-none-running = No station event running
cmd-events-list-random = Random
cmd-events-paused = Station events paused
cmd-events-already-paused = Station events are already paused
cmd-events-resumed = Station events resumed
cmd-events-already-running = Station events are already running

View File

@@ -1,7 +1,4 @@
## StationEventSystem
## BasicStationEventSchedulerSystem
station-event-system-run-event = Running event {$eventName}
station-event-system-run-event-no-event-name = No event named: {$eventName}
station-event-system-run-event = Running event {$eventName}
station-event-system-run-random-event-no-valid-events = No valid events available
station-event-system-stop-event-no-running-event = No event running currently
station-event-system-stop-event = Stopped event {$eventName}