Re-organize all projects (#4166)

This commit is contained in:
DrSmugleaf
2021-06-09 22:19:39 +02:00
committed by GitHub
parent 9f50e4061b
commit ff1a2d97ea
1773 changed files with 5258 additions and 5508 deletions

View File

@@ -0,0 +1,12 @@
#nullable enable
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
namespace Content.Shared.Radiation
{
[RequiresExplicitImplementation]
public interface IRadiationAct : IComponent
{
void RadiationAct(float frameTime, SharedRadiationPulseComponent radiation);
}
}

View File

@@ -0,0 +1,48 @@
#nullable enable
using System;
using Content.Shared.NetIDs;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
namespace Content.Shared.Radiation
{
public abstract class SharedRadiationPulseComponent : Component
{
public override string Name => "RadiationPulse";
public override uint? NetID => ContentNetIDs.RADIATION_PULSE;
public virtual float RadsPerSecond { get; set; }
/// <summary>
/// Radius of the pulse from its position
/// </summary>
public virtual float Range { get; set; }
public virtual bool Decay { get; set; }
public virtual bool Draw { get; set; }
public virtual TimeSpan EndTime { get; }
}
/// <summary>
/// For syncing the pulse's lifespan between client and server for the overlay
/// </summary>
[Serializable, NetSerializable]
public class RadiationPulseState : ComponentState
{
public readonly float RadsPerSecond;
public readonly float Range;
public readonly bool Draw;
public readonly bool Decay;
public readonly TimeSpan EndTime;
public RadiationPulseState(float radsPerSecond, float range, bool draw, bool decay, TimeSpan endTime) : base(ContentNetIDs.RADIATION_PULSE)
{
RadsPerSecond = radsPerSecond;
Range = range;
Draw = draw;
Decay = decay;
EndTime = endTime;
}
}
}