| 1234567891011121314151617181920212223242526272829303132 |
- // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- // We keep this clone of the other component since I don't know yet if I'll need organ specific functions in the future.
- using Robust.Shared.GameStates;
- using Robust.Shared.Prototypes;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
- namespace Content.Shared._Shitmed.BodyEffects;
- [RegisterComponent, NetworkedComponent]
- [AutoGenerateComponentPause]
- public sealed partial class OrganEffectComponent : Component
- {
- /// <summary>
- /// The components that are active on the part and will be refreshed every 5s
- /// </summary>
- [DataField]
- public ComponentRegistry Active = new();
- /// <summary>
- /// How long to wait between each refresh.
- /// Effects can only last at most this long once the organ is removed.
- /// </summary>
- [DataField]
- public TimeSpan Delay = TimeSpan.FromSeconds(5);
- [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
- public TimeSpan NextUpdate = TimeSpan.Zero;
- }
|