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;
|
2023-02-11 23:24:29 +03:00
|
|
|
public readonly EntityUid? RadioSource;
|
2022-11-15 17:09:27 +13:00
|
|
|
|
2023-02-11 23:24:29 +03: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;
|
2023-02-11 23:24:29 +03:00
|
|
|
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;
|
2023-02-11 23:24:29 +03:00
|
|
|
public readonly EntityUid? RadioSource;
|
2022-11-15 17:09:27 +13:00
|
|
|
|
2023-02-11 23:24:29 +03: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;
|
2023-02-11 23:24:29 +03:00
|
|
|
RadioSource = radioSource;
|
2022-11-15 17:09:27 +13:00
|
|
|
}
|
|
|
|
|
}
|