Add a garbage collection component for grid movement (#7776)

If we move a station and there's thousands of bullets in the way we shouldn't just indefinitely lag the server as a result.
This commit is contained in:
metalgearsloth
2022-04-26 18:25:57 +10:00
committed by GitHub
parent 6ab3942bfe
commit 8d46dc42e7
30 changed files with 70 additions and 29 deletions

View File

@@ -0,0 +1,8 @@
namespace Content.Server.Shuttles.Components;
/// <summary>
/// Cleanup component that deletes the entity if it has a cross-grid collision.
/// Useful for small, unimportant items like bullets to avoid generating many contacts.
/// </summary>
[RegisterComponent]
public sealed class SpaceGarbageComponent : Component {}