Kill ComponentExt (#20907)
This commit is contained in:
@@ -1,31 +1,17 @@
|
||||
using Content.Shared.Singularity.EntitySystems;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Singularity.Components
|
||||
{
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[AutoGenerateComponentState]
|
||||
[Access(typeof(SharedSingularitySystem))]
|
||||
public sealed partial class SingularityDistortionComponent : Component
|
||||
{
|
||||
// TODO: use access and remove this funny stuff
|
||||
[DataField("intensity")]
|
||||
private float _intensity = 31.25f;
|
||||
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public 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);
|
||||
}
|
||||
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public float FalloffPower = MathF.Sqrt(2f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user