public WebSocketService(PlayerManager playerManager, NetPacketProcessor packetProcessor) { this.playerManager = playerManager; this.packetProcessor = packetProcessor; }
public void SendPacket <T>(T packet) where T : class, new() { PlayerManager.SendPacketToAllPlayers(packet); }