Remove obsolete map event handlers (#3440)

This commit is contained in:
metalgearsloth
2022-11-07 03:18:52 +11:00
committed by GitHub
parent 656992ae5f
commit b69ccc2241
2 changed files with 0 additions and 31 deletions

View File

@@ -77,7 +77,6 @@ internal partial class MapManager
var xform = EntityManager.GetComponent<TransformComponent>(gridComponent.Owner);
Logger.InfoS("map", $"Binding grid {mapGrid.GridEntityId} to entity {gridComponent.Owner}");
OnGridCreated?.Invoke(xform.MapID, mapGrid.GridEntityId);
}
public GridEnumerator GetAllGridsEnumerator()
@@ -193,17 +192,11 @@ internal partial class MapManager
_grids.Remove(grid.GridEntityId);
Logger.DebugS("map", $"Deleted grid {grid.GridEntityId}");
// TODO: Remove this trash
OnGridRemoved?.Invoke(mapId, grid.GridEntityId);
}
/// <inheritdoc />
public event EventHandler<TileChangedEventArgs>? TileChanged;
public event GridEventHandler? OnGridCreated;
public event GridEventHandler? OnGridRemoved;
/// <summary>
/// Should the OnTileChanged event be suppressed? This is useful for initially loading the map
/// so that you don't spam an event for each of the million station tiles.