Files
tbd-station-14/Content.Server/Radio/RadioReceiveEvent.cs
2022-11-15 15:09:27 +11:00

35 lines
952 B
C#

using Content.Shared.Chat;
using Content.Shared.Radio;
namespace Content.Server.Radio;
public sealed class RadioReceiveEvent : EntityEventArgs
{
public readonly string Message;
public readonly EntityUid Source;
public readonly RadioChannelPrototype Channel;
public readonly MsgChatMessage ChatMsg;
public RadioReceiveEvent(string message, EntityUid source, RadioChannelPrototype channel, MsgChatMessage chatMsg)
{
Message = message;
Source = source;
Channel = channel;
ChatMsg = chatMsg;
}
}
public sealed class RadioReceiveAttemptEvent : CancellableEntityEventArgs
{
public readonly string Message;
public readonly EntityUid Source;
public readonly RadioChannelPrototype Channel;
public RadioReceiveAttemptEvent(string message, EntityUid source, RadioChannelPrototype channel)
{
Message = message;
Source = source;
Channel = channel;
}
}