mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +03:00
Lots of stuff. Also moved everything I could to the _Shitmed namespace
as I do in Goob. Will make future ports way faster
# Changelog
🆑 Mocho
- add: Added some fun organs and other thingies, check out the Goob PRs
if you want more details.
- fix: Fixed tons of issues with shitmed. Too many for the changelog in
fact.
(cherry picked from commit 3c9db94102cb25b28a83d51ac8d659fa31fe7d12)
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using Content.Shared._Shitmed.Autodoc.Systems;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Shared._Shitmed.Autodoc.Components;
|
|
|
|
/// <summary>
|
|
/// Component added while operating on a patient.
|
|
/// Only usable serverside, only thing that can be predicted is a surgery being active.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedAutodocSystem))]
|
|
[AutoGenerateComponentPause]
|
|
public sealed partial class ActiveAutodocComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The program index that is being used.
|
|
/// <c>AutodocComponent.Programs</c> is frozen while an autodoc is active.
|
|
/// </summary>
|
|
[DataField]
|
|
public int CurrentProgram;
|
|
|
|
/// <summary>
|
|
/// Index of the current program's step it is trying to do.
|
|
/// </summary>
|
|
[DataField]
|
|
public int ProgramStep;
|
|
|
|
/// <summary>
|
|
/// Whether a step is waiting on a doafter to complete.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool Waiting;
|
|
|
|
/// <summary>
|
|
/// The current body, part and surgery being done, if any.
|
|
/// </summary>
|
|
[DataField]
|
|
public (EntityUid, EntityUid, EntProtoId)? CurrentSurgery;
|
|
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
[AutoPausedField]
|
|
public TimeSpan NextUpdate = TimeSpan.Zero;
|
|
}
|