2019-06-07 16:15:20 +05:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2019-06-07 16:15:20 +05:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Explosion.Components
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
2021-07-25 20:09:08 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies an explosion range should this entity be exploded.
|
|
|
|
|
/// </summary>
|
2019-07-31 15:02:36 +02:00
|
|
|
[RegisterComponent]
|
2021-07-25 20:09:08 +10:00
|
|
|
public class ExplosiveComponent : Component
|
2019-06-07 16:15:20 +05:00
|
|
|
{
|
|
|
|
|
public override string Name => "Explosive";
|
2019-12-15 14:12:23 +01:00
|
|
|
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("devastationRange")]
|
|
|
|
|
public int DevastationRange;
|
|
|
|
|
[DataField("heavyImpactRange")]
|
|
|
|
|
public int HeavyImpactRange;
|
|
|
|
|
[DataField("lightImpactRange")]
|
|
|
|
|
public int LightImpactRange;
|
|
|
|
|
[DataField("flashRange")]
|
|
|
|
|
public int FlashRange;
|
2019-06-07 16:15:20 +05:00
|
|
|
|
2021-07-25 20:09:08 +10:00
|
|
|
public bool Exploding { get; set; } = false;
|
2019-06-07 16:15:20 +05:00
|
|
|
}
|
|
|
|
|
}
|