127 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
51 lines
2.0 KiB
C++
51 lines
2.0 KiB
C++
// Generated from CURRENT strict identity routes only; private-bit proposal excluded.
|
|
#pragma once
|
|
#include "gateway/legacy_stream.hpp"
|
|
#include <array>
|
|
#include <optional>
|
|
#include "gateway/spell_cooldown_family_routes.hpp"
|
|
inline constexpr char CooldownFamilyProfileSha256[]="b831be54bd6da3ad85a4cfa6d605ed59c6273f4ec9155562320ff054621692db";
|
|
inline constexpr char CooldownFamilyRoutesSha256[]="954b99e99f7cbeccacc2e43cac56d470ebb733b32e5b069db88e1dc128fe0e3f";
|
|
namespace gateway::warrior_cooldown {
|
|
struct BitRoute { uint8_t source_bit; uint8_t native_bit; };
|
|
inline constexpr uint32_t SourceFlatOpcode=0x266;
|
|
inline constexpr uint32_t NativeFlatOpcode=0x690027;
|
|
inline constexpr uint8_t Operation=11;
|
|
inline constexpr char SourceInventorySha256[]="853da1e08e9edfafa3e5051e62f3526ea7c0ab81ba692a94cc8d02579d01550b";
|
|
inline constexpr char NativeInventorySha256[]="3e77341f9a87f1e330902c81e6f9f7a193369391e3ba7d5ac66e567fd94eb7c8";
|
|
inline constexpr std::array<BitRoute,17> Routes{{
|
|
{1,1},
|
|
{2,2},
|
|
{4,4},
|
|
{6,6},
|
|
{9,9},
|
|
{10,10},
|
|
{11,11},
|
|
{12,12},
|
|
{14,14},
|
|
{19,19},
|
|
{24,24},
|
|
{27,27},
|
|
{28,28},
|
|
{29,29},
|
|
{34,37},
|
|
{36,52},
|
|
{37,45},
|
|
}};
|
|
constexpr bool valid_routes(){
|
|
for(size_t i=0;i<Routes.size();++i){
|
|
if(Routes[i].source_bit>=64 || Routes[i].native_bit>=128 ||
|
|
(i && Routes[i-1].source_bit>=Routes[i].source_bit))return false;
|
|
for(size_t j=0;j<i;++j)if(Routes[j].native_bit==Routes[i].native_bit)return false;
|
|
}
|
|
return true;
|
|
}
|
|
static_assert(valid_routes());
|
|
// Current authenticated named character class is mandatory: source packet has no
|
|
// class/family field. Absolute values include zero removal, not additive deltas.
|
|
// Unsupported namespaces/mappings/precision return nullopt; malformed source
|
|
// flat packets throw Error. No persistent owner or lifecycle state is retained.
|
|
std::optional<LegacyPacket> translate_flat(uint32_t source_opcode,
|
|
std::span<const uint8_t> body,uint8_t authenticated_class);
|
|
}
|