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; } }
static void SendPacket(ArchipelagoPacketBase packet) => session?.Socket?.SendPacket(packet);