Files
praxisandClaude Fable 5.2 c2194c59d4 Protocol core: packet translation between source and native
127 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:47 +02:00

14 lines
570 B
C++

#pragma once
#include "gateway/protocol.hpp"
namespace gateway {
// Actual70334 C_PvP.SetPVP -> vtable4D227C0 -> writer939590:
// opcode3E018B, one EnablePVP bit, flushed MSB-first by7EDF60/845490.
// Source0x253 accepts one byte for explicit state; its empty toggle request
// is deliberately distinct. Source owns desired/actual flags and timers.
inline Bytes source_set_pvp_request(std::span<const uint8_t> body) {
if(body.size()!=1 || (body.front()&0x7f))
throw Error("invalid native explicit PvP state");
return Bytes{uint8_t(body.front()>>7)};
}
}