Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes SharedGridTraversalSystem accesibility from internal to public #5551

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading