Files
tbd-station-14/Content.Shared/Administration/SpawnExplosionEuiMsg.cs
Aexxie 467e983ba9 Move grenade components to shared (#22691)
* Moves FlashComponent.cs, FlashOnTriggerComponent.cs, and SmokeOnTriggerComponent.cs to Shared

* Moves ExplodeOnTriggerComponent.cs, OnUseTimerTriggerComponent.cs, ActiveTimerTriggerComponent.cs, and SmokeOnTriggerComponent.cs to Shared

* Delete .run/Content Server+Client.run.xml

HOW DID THIS GET IN HERE ITS NOT AHHHH

* Update Content.Client/Explosion/SmokeOnTriggerSystem.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update Content.Shared/Explosion/Components/ActiveTimerTriggerComponent.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update Content.Shared/Explosion/Components/OnUseTimerTriggerComponent.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update Content.Shared/Explosion/Components/OnUseTimerTriggerComponent.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update Content.Shared/Explosion/EntitySystems/SharedTriggerSystem.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update Content.Shared/Explosion/EntitySystems/SharedSmokeOnTriggerSystem.cs

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>

* Update ExplodeOnTriggerComponent.cs

* Revert "Delete .run/Content Server+Client.run.xml"

This reverts commit 29ee05f57de60eab5c92158d8eba5e3acba483c2.

* Fix?

* cannot figure out how to get this to go back please forgive

* Fixes a network issue

* leftovers

* Fixes

---------

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-02-02 00:29:01 +11:00

51 lines
1.6 KiB
C#

using Content.Shared.Eui;
using Robust.Shared.Serialization;
using Robust.Shared.Map;
using Content.Shared.Explosion;
using Content.Shared.Explosion.Components;
namespace Content.Shared.Administration;
public static class SpawnExplosionEuiMsg
{
/// <summary>
/// This message is sent to the server to request explosion preview data.
/// </summary>
[Serializable, NetSerializable]
public sealed class PreviewRequest : EuiMessageBase
{
public readonly MapCoordinates Epicenter;
public readonly string TypeId;
public readonly float TotalIntensity;
public readonly float IntensitySlope;
public readonly float MaxIntensity;
public PreviewRequest(MapCoordinates epicenter, string typeId, float totalIntensity, float intensitySlope, float maxIntensity)
{
Epicenter = epicenter;
TypeId = typeId;
TotalIntensity = totalIntensity;
IntensitySlope = intensitySlope;
MaxIntensity = maxIntensity;
}
}
/// <summary>
/// This message is used to send explosion-preview data to the client.
/// </summary>
[Serializable, NetSerializable]
public sealed class PreviewData : EuiMessageBase
{
public readonly float Slope;
public readonly float TotalIntensity;
public readonly ExplosionVisualsState Explosion;
public PreviewData(ExplosionVisualsState explosion, float slope, float totalIntensity)
{
Slope = slope;
TotalIntensity = totalIntensity;
Explosion = explosion;
}
}
}