Skip to content

Commit

Permalink
Changes SharedGridTraversalSystem accesibility from internal to public (
Browse files Browse the repository at this point in the history
#5551)

* Make this public.

* Add warnings.
  • Loading branch information
MLGTASTICa authored Dec 21, 2024
1 parent acb1d37 commit 6247be2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Robust.Shared.GameObjects;
/// <summary>
/// Handles moving entities between grids as they move around.
/// </summary>
internal sealed class SharedGridTraversalSystem : EntitySystem
public sealed class SharedGridTraversalSystem : EntitySystem
{
[Dependency] private readonly IMapManagerInternal _mapManager = default!;
[Dependency] private readonly SharedTransformSystem _transform = default!;
Expand All @@ -21,6 +21,10 @@ internal sealed class SharedGridTraversalSystem : EntitySystem

/// <summary>
/// Enables or disables changing grid / map uid upon moving.
/// WARNING: If you do this in a live-game. You need to make sure that the parented entity
/// doesn't move too far away from the grid. As it will cause Entity Lookups to not see it
/// (because the grid its parented to is not close enough and all parented entities are assumed
/// to be on the grid through the broadphase component)
/// </summary>
public bool Enabled = true;

Expand Down

0 comments on commit 6247be2

Please sign in to comment.