using Robust.Server.Interfaces.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.IoC; namespace Content.Server.GameObjects.Components.Items.Storage.Fill { [RegisterComponent] internal sealed class MedkitFillComponent : Component, IMapInit { [Dependency] private readonly IEntityManager _entityManager = default!; public override string Name => "MedkitFill"; void IMapInit.MapInit() { var storage = Owner.GetComponent(); void Spawn(string prototype) { storage.Insert(_entityManager.SpawnEntity(prototype, Owner.Transform.Coordinates)); } Spawn("Brutepack"); Spawn("Brutepack"); Spawn("Brutepack"); Spawn("Ointment"); Spawn("Ointment"); Spawn("Ointment"); } } }