// パーティ情報 static void intif_parse_PartyInfo(Session *, const Packet_Head<0x3821>& head, bool has_opt, const Packet_Option<0x3821>& option) { if (!has_opt) { if (battle_config.error_log) PRINTF("intif: party noinfo %d\n"_fmt, head.party_id); party_recv_noinfo(head.party_id); return; } PartyId pi = head.party_id; PartyMost pm = option.party_most; PartyPair pp{pi, borrow(pm)}; party_recv_info(pp); }
// パーティ情報 static int intif_parse_PartyInfo (int fd) { if (RFIFOW (fd, 2) == 8) { if (battle_config.error_log) printf ("intif: party noinfo %d\n", RFIFOL (fd, 4)); party_recv_noinfo (RFIFOL (fd, 4)); return 0; } // printf("intif: party info %d\n",RFIFOL(fd,4)); if (RFIFOW (fd, 2) != sizeof (struct party) + 4) { if (battle_config.error_log) printf ("intif: party info : data size error %d %d %d\n", RFIFOL (fd, 4), RFIFOW (fd, 2), sizeof (struct party) + 4); } party_recv_info ((struct party *) RFIFOP (fd, 4)); return 0; }
// パーティ情報 static void intif_parse_PartyInfo(int fd) { if (RFIFOW(fd, 2) == 8) { if (battle_config.error_log) PRINTF("intif: party noinfo %d\n", RFIFOL(fd, 4)); party_recv_noinfo(RFIFOL(fd, 4)); return; } // PRINTF("intif: party info %d\n",RFIFOL(fd,4)); if (RFIFOW(fd, 2) != sizeof(struct party) + 4) { if (battle_config.error_log) PRINTF("intif: party info : data size error %d %d %zu\n", RFIFOL(fd, 4), RFIFOW(fd, 2), sizeof(struct party) + 4); } party p {}; RFIFO_STRUCT(fd, 4, p); party_recv_info(&p); }