mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Susser Todd: Robust.Shared.Scripting, Error Pass
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user