Class CreatureSpeechPacket
Class that represents a packet for when a creature speaks.
Inheritance
System.Object
CreatureSpeechPacket
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Communications.Packets.Outgoing
Assembly: Fibula.Communications.Packets.dll
Syntax
public class CreatureSpeechPacket : IOutboundPacket
Constructors
| Improve this Doc View SourceCreatureSpeechPacket(UInt32, String, SpeechType, String, Location, ChatChannelType, UInt32)
Initializes a new instance of the CreatureSpeechPacket class.
Declaration
public CreatureSpeechPacket(uint senderId, string senderName, SpeechType speechType, string text, Location location, ChatChannelType channelType, uint time)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | senderId | The id of the creature that spoke. |
System.String | senderName | The name of the creature that spoke. |
SpeechType | speechType | The type of speech. |
System.String | text | The content of the speech. |
Location | location | The location at which the speech originated. |
ChatChannelType | channelType | The type of channel in which the speech happened. |
System.UInt32 | time | The time at which the speech happened. |
Properties
| Improve this Doc View SourceChannel
Gets the type of channel in which the speech happened.
Declaration
public ChatChannelType Channel { get; }
Property Value
Type | Description |
---|---|
ChatChannelType |
Location
Gets the location at which the speech originated.
Declaration
public Location Location { get; }
Property Value
Type | Description |
---|---|
Location |
PacketType
Gets the type of this packet.
Declaration
public OutgoingPacketType PacketType { get; }
Property Value
Type | Description |
---|---|
OutgoingPacketType |
SenderId
Gets the id of the creature that spoke.
Declaration
public uint SenderId { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
SenderName
Gets the name of the creature that spoke.
Declaration
public string SenderName { get; }
Property Value
Type | Description |
---|---|
System.String |
SpeechType
Gets the type of speech.
Declaration
public SpeechType SpeechType { get; }
Property Value
Type | Description |
---|---|
SpeechType |
Text
Gets the content of the speech.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
Time
Gets the time at which the speech happened.
Declaration
public uint Time { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |