mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-07 02:08:17 +02:00
25 lines
643 B
C#
25 lines
643 B
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Robust.Shared.GameObjects
|
|
{
|
|
[UsedImplicitly]
|
|
internal sealed class MapSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IMapManagerInternal _mapManager = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<MapGridComponent, ComponentRemove>(RemoveHandler);
|
|
}
|
|
|
|
private void RemoveHandler(EntityUid uid, MapGridComponent component, ComponentRemove args)
|
|
{
|
|
_mapManager.OnComponentRemoved(component);
|
|
}
|
|
}
|
|
}
|