mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Merge MapGrid into MapGridComponent (#3468)
This commit is contained in:
@@ -8,6 +8,7 @@ using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Map.Components;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -65,12 +66,12 @@ namespace Robust.Shared.Scripting
|
||||
return ent.GetComponent<T>(eid(i));
|
||||
}
|
||||
|
||||
public IMapGrid getgrid(int i)
|
||||
public MapGridComponent getgrid(int i)
|
||||
{
|
||||
return map.GetGrid(new EntityUid(i));
|
||||
}
|
||||
|
||||
public IMapGrid getgrid(EntityUid mapId)
|
||||
public MapGridComponent getgrid(EntityUid mapId)
|
||||
{
|
||||
return map.GetGrid(mapId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user