mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Backwards compatible API additions to support removing GridId from content. (#2855)
This commit is contained in:
@@ -145,6 +145,13 @@ internal partial class MapManager
|
||||
return GetGridComp(euid).Grid;
|
||||
}
|
||||
|
||||
public IMapGrid GetGrid(EntityUid gridId)
|
||||
{
|
||||
DebugTools.Assert(gridId.IsValid());
|
||||
|
||||
return GetGridComp(gridId).Grid;
|
||||
}
|
||||
|
||||
public bool IsGrid(EntityUid uid)
|
||||
{
|
||||
return EntityManager.HasComponent<IMapGridComponent>(uid);
|
||||
|
||||
Reference in New Issue
Block a user