127 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
27 lines
1.5 KiB
C++
27 lines
1.5 KiB
C++
#pragma once
|
|
#include <cstdint>
|
|
namespace gateway::movement_modes {
|
|
// Named source Object.h / native MovementInfo.h semantics. These equal
|
|
// mechanics deliberately have different wire bits in the two clients.
|
|
struct Flags {uint32_t source;uint64_t native;};
|
|
inline constexpr Flags FlagsMap[]={{0x1000,0x400},{0x10000000,0x04000000},
|
|
{0x20000000,0x08000000},{0x40000000,0x0800000000000000ULL}};
|
|
inline constexpr uint32_t SourceMask=0x70001000;
|
|
inline constexpr uint64_t NativeMask=0x400ULL|0x04000000ULL|0x08000000ULL|0x0800000000000000ULL;
|
|
constexpr uint32_t to_source(uint64_t flags){uint32_t result=0;for(auto row:FlagsMap)if(flags&row.native)result|=row.source;return result;}
|
|
constexpr uint64_t to_native(uint32_t flags){uint64_t result=0;for(auto row:FlagsMap)if(flags&row.source)result|=row.native;return result;}
|
|
struct Route {uint32_t source,source_ack,native,native_ack,flag;bool apply,toggle_tail;};
|
|
// Original MoveSetFlag writer; normalized original70334 opcode oracle.
|
|
// Root uses distinct ACK opcodes and no applyInt; other source ACKs carry it.
|
|
inline constexpr Route Routes[]={
|
|
{0xe8,0xe9,0x600029,0x42002c,0x1000,true,false},
|
|
{0xea,0xeb,0x60002a,0x42002d,0x1000,false,false},
|
|
{0xde,0x2d0,0x60002b,0x42003b,0x10000000,true,true},
|
|
{0xdf,0x2d0,0x60002e,0x42003b,0x10000000,false,true},
|
|
{0xf2,0x2cf,0x60002f,0x42003a,0x20000000,true,true},
|
|
{0xf3,0x2cf,0x600030,0x42003a,0x20000000,false,true},
|
|
{0xf4,0xf6,0x600031,0x420031,0x40000000,true,true},
|
|
{0xf5,0xf6,0x600032,0x420031,0x40000000,false,true},
|
|
};
|
|
}
|