#if !defined(NAMEFILT_HPP) # define NAMEFILT_HPP //########################################################################## //########################### NameFilter ############################# //########################################################################## // // The Mech's `mechNameFilter` (@0x36c). A small fixed debounce/hysteresis // record; the Mech ctor Initialize()s it and the (not-yet-reconstructed) HUD // path reads it. Absent from the 4.10 archive; BT411 mis-proxied it as a // no-op running-average. See NAMEFILT.NOTES.md. // // Layout + Initialize() values are recovered exactly from the shipped binary // (FUN_00435a7c); the field SEMANTICS are not yet resolved (the only caller // in the mech family is Initialize()), so the members carry their known // init values with best-effort names. // class NameFilter { public: void Initialize() { value0 = 0; // [0] value1 = 0; // [1] count = 1; // [2] sample0 = 0; // [3] sample1 = 0; // [4] sample2 = 0; // [5] sample3 = 0; // [6] sample4 = 0; // [7] candidateID = -1; // [8] (invalid id) confirmedID = -1; // [9] (invalid id) } public: int value0; int value1; int count; int sample0; int sample1; int sample2; int sample3; int sample4; int candidateID; int confirmedID; }; #endif