using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.Interfaces.GameObjects.Components;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Maths;
namespace Content.Server.Placement
{
///
/// Helper function for spawning more complex multi-entity structures
///
public static class SpawnHelpers
{
///
/// Spawns a spotlight ground turret that will track any living entities in range.
///
///
public static void SpawnLightTurret(GridCoordinates position)
{
var entMan = IoCManager.Resolve();
var tBase = entMan.SpawnEntity("TurretBase", position);
var tTop = entMan.SpawnEntity("TurretTopLight", position);
tTop.Transform.AttachParent(tBase);
}
}
}