Beispiel #1
0
 public static void broadcastLoginResponse(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, StatusEx data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeLoginResponse);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #2
0
 public static void broadcastSelfWorldUpdateSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, SelfUpdate data)
 {
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendMostRecent((ushort)Opcodes.opcodeSelfWorldUpdate, data));
 }
Beispiel #3
0
 public static void broadcastHandshakeResponseSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Status data, Action callback)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeHandshakeResponse, callback);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #4
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));
 }
Beispiel #5
0
 public static void broadcastWorldUpdateSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, EntityUpdate data)
 {
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendEventuallySynced((ushort)Opcodes.opcodeWorldUpdate, data));
 }
Beispiel #6
0
 public static void broadcastSelectedCharacterSpawnDataSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, CharacterSpawnData data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeSelectedCharacterSpawnData);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #7
0
 public static void broadcastSpawnedEntity(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Spawn data, Action callback)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeSpawnedEntity, callback);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendOrdered(packet));
 }
Beispiel #8
0
 public static void broadcastDoSthSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Complex data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeDoSth);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #9
0
 public static void broadcastCharacterCreatedSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, CharacterSelection data, Action callback)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeCharacterCreated, callback);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #10
0
 public static void broadcastEnterWorldSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Success data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeEnterWorld);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #11
0
 public static void broadcastLoginCharacterResultSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, StatusEx data, Action callback)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeLoginCharacterResult, callback);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }
Beispiel #12
0
 public static void broadcastCharacterInformationSingle(Kaminari.IBroadcaster <ProtocolQueues> broadcaster, Character data)
 {
     Kaminari.Packet packet = Kaminari.Packet.make((ushort)Opcodes.opcodeCharacterInformation);
     data.pack(Marshal.instance, packet);
     broadcaster.broadcast((ProtocolQueues pq) => pq.sendReliable(packet));
 }