Class MessageFromPlayerEventArgs
Represents the arguments of the message received from the player event.
Namespace: Evergine.Networking.Client
Assembly: Evergine.Networking.dll
Syntax
public class MessageFromPlayerEventArgs : EventArgs
Constructors
MessageFromPlayerEventArgs(RemoteNetworkPlayer, IncomingMessage)
Initializes a new instance of the MessageFromPlayerEventArgs class.
Declaration
public MessageFromPlayerEventArgs(RemoteNetworkPlayer fromPlayer, IncomingMessage receivedMessage)
Parameters
Type | Name | Description |
---|---|---|
RemoteNetworkPlayer | fromPlayer | The player that sent the message. |
IncomingMessage | receivedMessage | The received message. |
Properties
FromPlayer
Gets the sending player.
Declaration
public RemoteNetworkPlayer FromPlayer { get; }
Property Value
Type | Description |
---|---|
RemoteNetworkPlayer |
ReceivedMessage
Gets the received message.
Declaration
public IncomingMessage ReceivedMessage { get; }
Property Value
Type | Description |
---|---|
IncomingMessage |