Files
tbd-station-14/Content.Shared/Singularity/Components/SingularityDistortionComponent.cs
deltanedas d6273edaed singulo distortion auto gen comp state (#15306)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-04-14 12:47:32 -07:00

32 lines
948 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.Singularity.Components
{
[RegisterComponent, NetworkedComponent]
[AutoGenerateComponentState]
public sealed partial class SingularityDistortionComponent : Component
{
// TODO: use access and remove this funny stuff
[DataField("intensity")]
private float _intensity = 31.25f;
[DataField("falloffPower")]
private float _falloffPower = MathF.Sqrt(2f);
[ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public float Intensity
{
get => _intensity;
set => this.SetAndDirtyIfChanged(ref _intensity, value);
}
[ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
public float FalloffPower
{
get => _falloffPower;
set => this.SetAndDirtyIfChanged(ref _falloffPower, value);
}
}
}