Exemple #1
0
        static void PackageReceived(ArchipelagoPacketBase packet)
        {
            switch (packet)
            {
            case PrintPacket printPacket: OnPrintPacketReceived(printPacket); break;

            case ItemPrintJsonPacket printJsonPacket: OnItemPrintJsonPacketReceived(printJsonPacket); break;

            case PrintJsonPacket printJsonPacket: OnPrintJsonPacketReceived(printJsonPacket); break;
            }
        }
Exemple #2
0
 static void SendPacket(ArchipelagoPacketBase packet) => session?.Socket?.SendPacket(packet);