INetMessage
Interface INetMessage
Namespace: SwiftlyS2.Shared.NetMessages
Assembly: SwiftlyS2.CS2.dll
public interface INetMessage<T> where T : INetMessage<T>, ITypedProtobuf<T>, IDisposableType Parameters
- T
Properties
MessageId
public static abstract int MessageId { get; }Property Value
MessageName
public static abstract string MessageName { get; }Property Value
Recipients
ref CRecipientFilter Recipients { get; }Property Value
Methods
Send()
Sends the net message with current recipient filter.
void Send()SendToAllPlayers()
Sends the net message to all players.
void SendToAllPlayers()SendToPlayer(int)
Sends the net message to the specified player.
void SendToPlayer(int playerId)Parameters
- playerId int — The player ID.