21 lines
726 B
C#
21 lines
726 B
C#
using Content.Shared.Gravity;
|
|
using Content.Shared.Construction.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Gravity
|
|
{
|
|
[RegisterComponent]
|
|
[Access(typeof(GravityGeneratorSystem))]
|
|
public sealed partial class GravityGeneratorComponent : SharedGravityGeneratorComponent
|
|
{
|
|
[DataField("lightRadiusMin")] public float LightRadiusMin { get; set; }
|
|
[DataField("lightRadiusMax")] public float LightRadiusMax { get; set; }
|
|
|
|
/// <summary>
|
|
/// Is the gravity generator currently "producing" gravity?
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public bool GravityActive { get; set; } = false;
|
|
}
|
|
}
|