Пример #1
0
Файл: Rpc.cs Проект: AErbis/Kumo
 public static void broadcastDespawnedEntitySingle(Kaminari.Client <ProtocolQueues> client, Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Despawn data)
 {
     client.getProtocol().getPhaseSync().OneShot(() => Kumo.Unsafe.broadcastDespawnedEntitySingle(broadcaster, data));
 }
Пример #2
0
 public static void broadcastDespawnedEntitySingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Despawn data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeDespawnedEntity);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendOrdered(packet));
 }
Пример #3
0
Файл: Rpc.cs Проект: AErbis/Kumo
 public static void sendDespawnedEntity(Kaminari.Client <ProtocolQueues> client, Despawn data)
 {
     client.getProtocol().getPhaseSync().OneShot(() => Kumo.Unsafe.sendDespawnedEntity(client.getSuperPacket().getQueues(), data));
 }
Пример #4
0
 public static void sendDespawnedEntity(ProtocolQueues pq, Despawn data)
 {
     pq.sendOrdered((ushort)Opcodes.opcodeDespawnedEntity, data);
 }