Class MessageFromPlayerEventArgs
Represents the arguments of the message received from player event.
Inherited Members
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 players that sent the message. |
IncomingMessage | receivedMessage | The received message. |
Properties
FromPlayer
Gets the sender 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 |