* Readonly, typos and redundant string interpolations * Namespaces * Optimize imports * Address reviews * but actually * Localize missing strings * Remove redundant vars
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Content.Server.GameObjects.Components.Medical;
|
|
using Content.Server.Mobs;
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
internal sealed class CloningSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var comp in ComponentManager.EntityQuery<CloningPodComponent>())
|
|
{
|
|
comp.Update(frameTime);
|
|
}
|
|
}
|
|
|
|
public static Dictionary<int, Mind> Minds = new Dictionary<int, Mind>();
|
|
|
|
public static void AddToDnaScans(Mind mind)
|
|
{
|
|
if (!Minds.ContainsValue(mind))
|
|
{
|
|
Minds.Add(Minds.Count(), mind);
|
|
}
|
|
}
|
|
|
|
public static bool HasDnaScan(Mind mind)
|
|
{
|
|
return Minds.ContainsValue(mind);
|
|
}
|
|
|
|
public static Dictionary<int, string> getIdToUser()
|
|
{
|
|
return Minds.ToDictionary(m => m.Key, m => m.Value.CharacterName);
|
|
}
|
|
}
|
|
}
|