127 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
14 lines
570 B
C++
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)};
|
|
}
|
|
}
|