Files
crystall-punk-14/Content.Server/Radio/RadioReceiveEvent.cs

39 lines
1.1 KiB
C#
Raw Normal View History

2022-11-15 17:09:27 +13:00
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 readonly EntityUid? RadioSource;
2022-11-15 17:09:27 +13:00
public RadioReceiveEvent(string message, EntityUid source, RadioChannelPrototype channel, MsgChatMessage chatMsg, EntityUid? radioSource)
2022-11-15 17:09:27 +13:00
{
Message = message;
Source = source;
Channel = channel;
ChatMsg = chatMsg;
RadioSource = radioSource;
2022-11-15 17:09:27 +13:00
}
}
public sealed class RadioReceiveAttemptEvent : CancellableEntityEventArgs
{
public readonly string Message;
public readonly EntityUid Source;
public readonly RadioChannelPrototype Channel;
public readonly EntityUid? RadioSource;
2022-11-15 17:09:27 +13:00
public RadioReceiveAttemptEvent(string message, EntityUid source, RadioChannelPrototype channel, EntityUid? radioSource)
2022-11-15 17:09:27 +13:00
{
Message = message;
Source = source;
Channel = channel;
RadioSource = radioSource;
2022-11-15 17:09:27 +13:00
}
}