* Init testing * copyright * oops * Tracking the embed entity uid * testing stuff for gradual injection * work * weh * god save me * bleh * Yippee! * Again * Mini syringe ammo * cleaning up * mini syringes have a texture for fill amount * -3 cool points :( * hitboxes * init cleanup * much needed fixes * Fixes
25 lines
864 B
C#
25 lines
864 B
C#
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
|
|
namespace Content.Server.Chemistry.Components;
|
|
|
|
/// <summary>
|
|
/// Used for embeddable entities that should try to inject a
|
|
/// contained solution into a target over time while they are embbeded into.
|
|
/// </summary>
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
public sealed partial class SolutionInjectWhileEmbeddedComponent : BaseSolutionInjectOnEventComponent {
|
|
///<summary>
|
|
///The time at which the injection will happen.
|
|
///</summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
|
|
public TimeSpan NextUpdate;
|
|
|
|
///<summary>
|
|
///The delay between each injection in seconds.
|
|
///</summary>
|
|
[DataField]
|
|
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(3);
|
|
}
|
|
|