SlowContactsSystem to SpeedModifierContactsSystem mini rework (#26110)

* rework

* update logic
This commit is contained in:
Ed
2024-03-17 05:27:22 +03:00
committed by GitHub
parent 209846b18a
commit c35ff87e14
9 changed files with 42 additions and 34 deletions

View File

@@ -10,7 +10,7 @@ public sealed class FrictionContactsSystem : EntitySystem
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
[Dependency] private readonly MovementSpeedModifierSystem _speedModifierSystem = default!;
// Comment copied from "original" SlowContactsSystem.cs
// Comment copied from "original" SlowContactsSystem.cs (now SpeedModifierContactsSystem.cs)
// TODO full-game-save
// Either these need to be processed before a map is saved, or slowed/slowing entities need to update on init.
private HashSet<EntityUid> _toUpdate = new();