Class EntitySpokeEvent
Raised on an entity when it speaks, either through 'say' or 'whisper'.
Inheritance
System.Object
EntitySpokeEvent
Assembly: Content.Server.dll
Syntax
public sealed class EntitySpokeEvent : EntityEventArgs
Constructors
|
Improve this Doc
View Source
EntitySpokeEvent(EntityUid, String, RadioChannelPrototype, Nullable<String>)
Declaration
public EntitySpokeEvent(EntityUid source, string message, RadioChannelPrototype channel, string? obfuscatedMessage)
Parameters
Type |
Name |
Description |
EntityUid |
source |
|
System.String |
message |
|
RadioChannelPrototype |
channel |
|
System.Nullable<System.String> |
obfuscatedMessage |
|
Fields
|
Improve this Doc
View Source
Channel
If the entity was trying to speak into a radio, this was the channel they were trying to access. If a radio
message gets sent on this channel, this should be set to null to prevent duplicate messages.
Declaration
public RadioChannelPrototype Channel
Field Value
|
Improve this Doc
View Source
Message
Declaration
public readonly string Message
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ObfuscatedMessage
Declaration
public readonly string? ObfuscatedMessage
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
Source
Declaration
public readonly EntityUid Source
Field Value
Type |
Description |
EntityUid |
|