* Move entity solution entity systems to shared * Move SolutionComponents to Server * Fix namespaces * Remove Networked Component. * Fixes * Add components to ignore list
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using Content.Server.Chemistry.Components.SolutionManager;
|
|
using Content.Shared.Chemistry.Reagent;
|
|
using Robust.Server.GameObjects;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Server.Chemistry.Components
|
|
{
|
|
[RegisterComponent]
|
|
public class TransformableContainerComponent : Component
|
|
{
|
|
public override string Name => "TransformableContainer";
|
|
|
|
public SpriteSpecifier? InitialSprite;
|
|
public string InitialName = default!;
|
|
public string InitialDescription = default!;
|
|
public ReagentPrototype? CurrentReagent;
|
|
|
|
public bool Transformed { get; internal set; }
|
|
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
if (Owner.TryGetComponent(out SpriteComponent? sprite) &&
|
|
sprite.BaseRSIPath != null)
|
|
{
|
|
InitialSprite = new SpriteSpecifier.Rsi(new ResourcePath(sprite.BaseRSIPath), "icon");
|
|
}
|
|
|
|
InitialName = Owner.Name;
|
|
InitialDescription = Owner.Description;
|
|
}
|
|
|
|
protected override void Startup()
|
|
{
|
|
base.Startup();
|
|
|
|
Owner.EnsureComponentWarn<SolutionContainerManagerComponent>();
|
|
Owner.EnsureComponentWarn<FitsInDispenserComponent>();
|
|
}
|
|
}
|
|
}
|