rodecomp/Source/Client/ReplayPacketRecorder.h
ragnarok-clanker 14a432d922 Maintenance: [forced, user-approved] Family F3: remove WindowDialogs, WindowResponseRecorder, UIMessageBoxContext, UIEntryQueueContex
Batch #10232 by ragnarok-clanker: forced by an admin (22 lower score(s), 263 changed function(s)); checked with 562 compiled unit(s), including every includer of Source/Client/Mode/CLoginMode.h, Source/Client/ReplayPacketRecorder.h, Source/Client/Session.h, Source/Contents/NavigationManager.h, Source/UI/Acceptance/UIJoinPartyAcceptWnd.h, Source/UI/EntryQueue/UIEntryQueueWnd.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/WindowDialogs.h.
2026-11-03 10:23:36 +00:00

43 lines
1.2 KiB
C++

#ifndef RAGNAROK_SOURCE_CLIENT_REPLAYPACKETRECORDER_H
#define RAGNAROK_SOURCE_CLIENT_REPLAYPACKETRECORDER_H
#include "Client/ReplayRecordOption.h"
#include <cstdint>
#include <cstdio>
#include <vector>
class PacketLengths;
struct ModeDragState;
struct ReplayPacketRecorder {
const PacketLengths& lengths;
const std::uint32_t& baseFrame;
const std::uint32_t& started;
const std::uint32_t& frame;
const std::uint32_t& key0;
const std::uint32_t& key1;
const unsigned char& recordRestricted;
std::FILE*& file;
std::uint32_t& fileOffset;
std::uint32_t& records;
std::uint32_t& cipherIndex;
std::uint32_t& cipherBase;
std::uint32_t& cipherKey;
bool Record(std::uint16_t bytes, const void* packet, int event, std::uint32_t delay);
};
struct WindowReplayRecorder {
const int& windowId;
const int* policy;
const bool& restricted;
ReplayPacketRecorder& packets;
void RecordDrop(int x, int y, const ModeDragState& drag, int target);
int RecordData(std::uint16_t type, std::vector<unsigned char> data);
void RecordValues(int value, int argument1, int argument2, int argument3, int argument4);
void RecordWindowFlag(bool value);
void RecordText(int event, const char* text);
};
#endif