Update `DoorComponent` to use TimeSpans and fix comments (#40420)
Cleanup
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user