Remove redundant read-only VV from datafields (#12626)

This commit is contained in:
DrSmugleaf
2022-11-16 20:22:11 +01:00
committed by GitHub
parent fb892cb374
commit 7fbc2608e8
179 changed files with 171 additions and 462 deletions

View File

@@ -14,7 +14,6 @@ public sealed class BuckleComponent : SharedBuckleComponent
/// be able to unbuckle after recently buckling.
/// </summary>
[DataField("delay")]
[ViewVariables]
public TimeSpan UnbuckleDelay = TimeSpan.FromSeconds(0.25f);
/// <summary>
@@ -33,6 +32,5 @@ public sealed class BuckleComponent : SharedBuckleComponent
/// <see cref="StrapComponent"/>.
/// </summary>
[DataField("size")]
[ViewVariables]
public int Size = 100;
}

View File

@@ -16,13 +16,13 @@ namespace Content.Server.Buckle.Components
/// <summary>
/// The angle in degrees to rotate the player by when they get strapped
/// </summary>
[ViewVariables] [DataField("rotation")]
[DataField("rotation")]
private int _rotation;
/// <summary>
/// The size of the strap which is compared against when buckling entities
/// </summary>
[ViewVariables] [DataField("size")] private int _size = 100;
[DataField("size")] private int _size = 100;
private int _occupiedSize;
private bool _enabled = true;
@@ -49,21 +49,18 @@ namespace Content.Server.Buckle.Components
/// <summary>
/// The sound to be played when a mob is buckled
/// </summary>
[ViewVariables]
[DataField("buckleSound")]
public SoundSpecifier BuckleSound { get; } = new SoundPathSpecifier("/Audio/Effects/buckle.ogg");
/// <summary>
/// The sound to be played when a mob is unbuckled
/// </summary>
[ViewVariables]
[DataField("unbuckleSound")]
public SoundSpecifier UnbuckleSound { get; } = new SoundPathSpecifier("/Audio/Effects/unbuckle.ogg");
/// <summary>
/// ID of the alert to show when buckled
/// </summary>
[ViewVariables]
[DataField("buckledAlertType")]
public AlertType BuckledAlertType { get; } = AlertType.Buckled;