Class MessageReceivedEvent
Namespace: Void.Proxy.Api.Events.Network
Assembly: Void.Proxy.Api.dll
public record MessageReceivedEvent : IScopedEventWithResult<bool>, IScopedEvent, IEventWithResult<bool>, IEvent, IEquatable<MessageReceivedEvent>Inheritance
Implements
IScopedEventWithResult<bool>, IScopedEvent, IEventWithResult<bool>, IEvent, IEquatable<MessageReceivedEvent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
MessageReceivedEvent(Side, Side, Side, Direction, INetworkMessage, ILink, IPlayer)
public MessageReceivedEvent(Side Origin, Side From, Side To, Direction Direction, INetworkMessage Message, ILink Link, IPlayer Player)Parameters
Origin Side
From Side
To Side
Direction Direction
Message INetworkMessage
Link ILink
Player IPlayer
Properties
Direction
public Direction Direction { get; init; }Property Value
From
public Side From { get; init; }Property Value
Link
public ILink Link { get; init; }Property Value
Message
public INetworkMessage Message { get; init; }Property Value
Origin
public Side Origin { get; init; }Property Value
Player
public IPlayer Player { get; init; }Property Value
Result
true if packet should not be sent
public bool Result { get; set; }Property Value
To
public Side To { get; init; }Property Value
Methods
Cancel()
Cancels an operation if it hasn’t been canceled already. It sets the Result to true upon cancellation.
public bool Cancel()Returns
Returns true if the operation was already canceled; otherwise, returns false.