Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }