]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Remove update from DeviceLinkSystem (#37152)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sun, 4 May 2025 16:14:23 +0000 (18:14 +0200)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 16:14:23 +0000 (12:14 -0400)
commit81cbb314253e322ebc38d2e2cebb809b588ce9a2
treee6623e475d17707bfddd66aa528f6ad23a53a4a4
parente6040d1b25b87877ace873b18f4a0bda7045b744
Remove update from DeviceLinkSystem (#37152)

The tick updates were purely used to decrease the invoke counter once per tick. Now instead we just calculate the effective counter value with some trivial math on the tick number. This completely removes the need for an update function.

The relative tick is not stored to map files. If we really need this, we can add a TickOffsetSerializer (similar to TimeOffsetSerializer), but I doubt it matters.
Content.Server/DeviceLinking/Systems/DeviceLinkSystem.cs
Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs
Content.Shared/DeviceLinking/SharedDeviceLinkSystem.cs