Susser Todd: Robust.Shared.Scripting, Error Pass

This commit is contained in:
20kdc
2021-12-03 19:37:59 +00:00
parent 8aa6fb478b
commit add06753e9

View File

@@ -46,20 +46,9 @@ namespace Robust.Shared.Scripting
return new(i);
}
public IEntity getent(int i)
{
return getent(eid(i));
}
public T gcm<T>(int i)
{
IEntity tempQualifier = getent(i);
return IoCManager.Resolve<IEntityManager>().GetComponent<T>(tempQualifier);
}
public IEntity getent(EntityUid uid)
{
return ent.GetEntity(uid);
return IoCManager.Resolve<IEntityManager>().GetComponent<T>(eid(i));
}
public IMapGrid getgrid(int i)
@@ -72,7 +61,7 @@ namespace Robust.Shared.Scripting
return map.GetGrid(mapId);
}
public IEntity spawn(string prototype, EntityCoordinates position)
public EntityUid spawn(string prototype, EntityCoordinates position)
{
return ent.SpawnEntity(prototype, position);
}