quantum-space-buddies/QSB/MeteorSync/Messages/FragmentDamageMessage.cs
2022-01-26 20:35:43 -08:00

12 lines
322 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);
}
}