swiftlys2/docs/api/ai/
API Reference NetMessages

INetMessage`1

Interface
Namespace: SwiftlyS2.Shared.NetMessages · Assembly: SwiftlyS2.CS2.dll
public interface INetMessage<T> where T : INetMessage<T>, ITypedProtobuf<T>, IDisposable
View source

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
  • playerIdintThe player ID.