/* Wappen extension //////////////////////////////*/ public void SendX <T>(T msg, int channelId = Channels.DefaultReliable) where T : IMessageBase { using (PooledNetworkWriter writer = NetworkWriterPool.GetWriter( )) { // pack message and send allocation free MessagePacker.PackX(msg, writer); //NetworkDiagnostics.OnSend(msg, channelId, writer.Position, 1); Send(writer.ToArraySegment( ), channelId); } }