SwiftlyS2

INetMessageService.ClientNetMessageHandler

Delegate INetMessageService.ClientNetMessageHandler

Namespace: SwiftlyS2.Shared.NetMessages

Assembly: SwiftlyS2.CS2.dll

The handler to handle net messages that are sent from the client to the server.

public delegate HookResult INetMessageService.ClientNetMessageHandler<T>(T msg, int playerId) where T : ITypedProtobuf<T>, INetMessage<T>, IDisposable
Parameters
  • msg T — The net message to handle.
  • playerId int — The player ID of the client that sent the net message.
Returns
Type Parameters
  • T — Client net message type.

On this page