Class TextMessageNotification
Class that represents a notification for text messages.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
TextMessageNotification
Inherited Members
Priority_Queue.StablePriorityQueueNode.InsertionIndex
Priority_Queue.FastPriorityQueueNode.Priority
Priority_Queue.FastPriorityQueueNode.QueueIndex
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.Mechanics.Notifications
Assembly: Fibula.Mechanics.dll
Syntax
public class TextMessageNotification : Notification, IEquatable<BaseEvent>, INotification, IEvent
Constructors
| Improve this Doc View SourceTextMessageNotification(Func<IEnumerable<IPlayer>>, MessageType, String)
Initializes a new instance of the TextMessageNotification class.
Declaration
public TextMessageNotification(Func<IEnumerable<IPlayer>> findTargetPlayers, MessageType type, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Collections.Generic.IEnumerable<IPlayer>> | findTargetPlayers | A function to determine the target players of this notification. |
MessageType | type | The type of text to send. |
System.String | message | The text to send. |
Properties
| Improve this Doc View SourceLocation
Gets the location of the animated text.
Declaration
public Location Location { get; }
Property Value
Type | Description |
---|---|
Location |
Text
Gets the text value.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the text message type.
Declaration
public MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageType |
Methods
| Improve this Doc View SourcePrepare(INotificationContext, IPlayer)
Finalizes the notification in preparation to it being sent.
Declaration
protected override IEnumerable<IOutboundPacket> Prepare(INotificationContext context, IPlayer player)
Parameters
Type | Name | Description |
---|---|---|
INotificationContext | context | The context of this notification. |
IPlayer | player | The player which this notification is being prepared for. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IOutboundPacket> | A collection of IOutboundPackets, the ones to be sent. |
Overrides
Implements
System.IEquatable<T>