quantum-space-buddies/QSB/MeteorSync/Messages/FragmentDamageMessage.cs
2022-02-25 23:18:46 -08:00

11 lines
315 B
C#

using QSB.Messaging;
using QSB.MeteorSync.WorldObjects;
namespace QSB.MeteorSync.Messages;
public class FragmentDamageMessage : QSBWorldObjectMessage<QSBFragment, float>
{
public FragmentDamageMessage(float damage) => Value = damage;
public override void OnReceiveRemote() => WorldObject.AddDamage(Value);
}