public virtual void PryTile(MapIndices indices) { if (IsSpace(indices) || IsAirBlocked(indices)) { return; } indices.PryTile(_gridId, _mapManager, _tileDefinitionManager, _serverEntityManager); }
public virtual void PryTile(MapIndices indices) { if (!Owner.TryGetComponent(out IMapGridComponent? mapGridComponent)) { return; } if (IsSpace(indices) || IsAirBlocked(indices)) { return; } var mapGrid = mapGridComponent.Grid; indices.PryTile(mapGrid.Index, _mapManager, _tileDefinitionManager, _serverEntityManager); }