mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Shared IMap/Map class removal (#904)
* Moved IMap from Shared/Interfaces/Map to Shared/Map namespace. * Extracted Map class out of the MapManager class. * Removed the Map class and interface. * Fully removed the Map and IMap class.
This commit is contained in:
committed by
Pieter-Jan Briers
parent
9de0c9b299
commit
d9a411b260
@@ -128,8 +128,7 @@ namespace Robust.Shared.GameObjects
|
||||
|
||||
public IEntity SpawnEntityAt(string entityType, MapCoordinates coordinates)
|
||||
{
|
||||
var map = _mapManager.GetMap(coordinates.MapId);
|
||||
var grid = map.FindGridAt(coordinates.Position);
|
||||
var grid = _mapManager.FindGridAt(coordinates);
|
||||
var gridCoords = new GridCoordinates(grid.WorldToLocal(coordinates.Position), grid);
|
||||
|
||||
return SpawnEntityAt(entityType, gridCoords);
|
||||
|
||||
Reference in New Issue
Block a user