(13.02.2020 15:49)Berserker Wrote: I will need to send generator state over net on online PvP battle. ~3 KB for Mersenne Twister.
// структура передачи данных по сети struct _NetData_ { _int_ recipient_id; // +0 (номер игрока кому передаётся. (-1 = всем) ) _int_ field_04; // +4 _int_ msg_id; // +8 (id данных) _int_ size; // +12 (размер _NetData_ = 20 + sizeof(Data) ) _int_ field_10; // +16 _int_ Data[]; // +20 (передаваемые данные (массив)) inline _int32_ SendData() {return CALL_4(_int32_, __fastcall, 0x5549E0, this, 127, 0, 1);} inline _int32_ SendShortData() {return CALL_1(_int32_, __thiscall, 0x481CB0, this);} };
0x405E81 [карта приключений] 0x473D5E [битва] 0x588AC3 [меню выбора карт]