public void SendToScene(byte sceneIndex, ushort route, Action <Stream> writer, PacketPriority priority, PacketReliability reliability) { Connection.SendToScene(sceneIndex, route, s => { var stream = new OutputLogStream(s, _plugin._clientVM); writer(stream); stream.Log(sceneIndex, route); }, priority, reliability); }
public void SendSystem(byte msgId, Action <Stream> writer, PacketPriority priority) { Connection.SendSystem(msgId, s => { var stream = new OutputLogStream(s, _plugin._clientVM); writer(stream); stream.Log("system", "system"); }, priority); }