]> git.smokeofanarchy.ru Git - space-station-14.git/commit
CVarify meteor behavior (#29030)
authorTsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com>
Sat, 15 Jun 2024 14:03:20 +0000 (16:03 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 14:03:20 +0000 (10:03 -0400)
commit71eb4d91786b1b3eccbcd61dd5e10dff184fe197
treebfa259ef761a28bea0fdb81a59fed31b70d58f28
parent7e4c7607e6d46c2792924c004f7f40117dcdb3e9
CVarify meteor behavior (#29030)

* CVarify meteor behavior

* Cache value to reduce CVar calls, hook into OnValueChanged

* _cfg is still null at construction time, fixed by just making it set up on Started instead

* Invoke immediately! Learning more every step of the way.

* Move cached value initialisation to Initialize call

* Add explicit supercall
Content.Server/StationEvents/Components/MeteorSchedulerComponent.cs
Content.Server/StationEvents/MeteorSchedulerSystem.cs
Content.Shared/CCVar/CCVars.cs