2023-08-15 03:23:40 +03:00
|
|
|
using Content.Shared.Gravity;
|
|
|
|
|
using Content.Shared.Construction.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-05-02 15:02:52 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Gravity
|
2020-05-02 15:02:52 +01:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(GravityGeneratorSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GravityGeneratorComponent : SharedGravityGeneratorComponent
|
2020-05-02 15:02:52 +01:00
|
|
|
{
|
2021-11-02 01:12:55 +01:00
|
|
|
[DataField("lightRadiusMin")] public float LightRadiusMin { get; set; }
|
|
|
|
|
[DataField("lightRadiusMax")] public float LightRadiusMax { get; set; }
|
2020-05-02 15:02:52 +01:00
|
|
|
|
2021-11-02 01:12:55 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Is the gravity generator currently "producing" gravity?
|
|
|
|
|
/// </summary>
|
2022-12-18 16:03:23 +11:00
|
|
|
[ViewVariables]
|
|
|
|
|
public bool GravityActive { get; set; } = false;
|
2021-06-27 07:43:39 +02:00
|
|
|
}
|
2020-05-02 15:02:52 +01:00
|
|
|
}
|