Update `DoorComponent` to use TimeSpans and fix comments (#40420)

Cleanup
This commit is contained in:
Winkarst-cpu
2025-09-17 16:28:11 +03:00
committed by GitHub
parent 0dd1733998
commit ca47e59e43
2 changed files with 11 additions and 11 deletions

View File

@@ -187,22 +187,22 @@ public sealed partial class DoorComponent : Component
public string EmaggingSpriteState = "sparks";
/// <summary>
/// The sprite state used for the door when it's open.
/// The length of the door's opening animation.
/// </summary>
[DataField]
public float OpeningAnimationTime = 0.8f;
public TimeSpan OpeningAnimationTime = TimeSpan.FromSeconds(0.8);
/// <summary>
/// The sprite state used for the door when it's open.
/// The length of the door's closing animation.
/// </summary>
[DataField]
public float ClosingAnimationTime = 0.8f;
public TimeSpan ClosingAnimationTime = TimeSpan.FromSeconds(0.8);
/// <summary>
/// The sprite state used for the door when it's open.
/// The length of the door's emagging animation.
/// </summary>
[DataField]
public float EmaggingAnimationTime = 1.5f;
public TimeSpan EmaggingAnimationTime = TimeSpan.FromSeconds(1.5);
/// <summary>
/// The animation used when the door opens.