DelayedDeathComponent.cs 629 B

123456789101112131415161718192021
  1. // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  3. //
  4. // SPDX-License-Identifier: AGPL-3.0-or-later
  5. namespace Content.Server._Shitmed.DelayedDeath;
  6. [RegisterComponent]
  7. public sealed partial class DelayedDeathComponent : Component
  8. {
  9. /// <summary>
  10. /// How long it takes to kill the entity.
  11. /// </summary>
  12. [DataField]
  13. public float DeathTime = 60;
  14. /// <summary>
  15. /// How long it has been since the delayed death timer started.
  16. /// </summary>
  17. public float DeathTimer;
  18. }