diff --git a/README.md b/README.md index 2376139..47aee39 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ it, or paste large parts of it anywhere public. The game install is only read, n db/ YOUR names and types: names.tsv (address -> name, beats every other source), fields.tsv (struct fields), locals.tsv (local variables inside one function) notes/ what is known per entity/item/character/system, with addresses; notes/README.md is the index -src/ reimplementations checked against the decompile: anm2/ (sprite player), rooms/ (.stb + RoomConfig) +src/ C++ checked against the decompile: structs.hpp (generated: every confirmed struct, offsets static_asserted), + anm2/ (sprite player), rooms/ (.stb + RoomConfig) decompile.sh print decompiled C for a function (name regex or address), from the dump or live find.sh search: names, strings, string users, code, callers/callees, NPC type -> AI, item id, enums, fields build.sh rebuild everything from the exe (after a game update) @@ -72,10 +73,17 @@ and 230 `NpcAI::` routines. (`EntityPtr::Ref` is also `RNG::GetSeed`, `Level::GetCurrentRoom` is `Game::GetRoom`, and so on). Judge tiny functions by their body, not their name. -Types: structs built from REPENTOGON's zhl struct definitions, plus `lua_fields.tsv` (about 100 fields REPENTOGON lacks, +**Struct fields are only shown where this exe confirms the offset.** REPENTOGON's definitions target 1.9.7.12 and members +drift (Game +0x58 .. +0xd98 in steps, Entity_Player +4 .. +0x2c, Entity_Familiar +0x14, GridEntity_Door +0x114), so a +REPENTOGON offset is never evidence by itself. `scripts/zhl_fields.py` keeps a REPENTOGON field only when a trivial getter +or the game's Lua field table confirms it, or when it sits between two confirmed fields with the same shift; +`db/fields.tsv` holds the rest, each with the function that proves it (about 600 were verified that way). Anything else is +`field_0xNNN`: unknown, not guessed. `src/structs.hpp` is generated from the same data and only compiles if every offset +is consistent. + +Types: structs built from the confirmed REPENTOGON fields, plus `lua_fields.tsv` (about 100 fields REPENTOGON lacks, read from the game's own trivial Lua getters, e.g. Entity 0x334 `_targetPosition`) and `db/fields.tsv`. Embedded structs -are typed too (`npc->_sprite._animState._isPlaying`). 245 structs (Entity, Entity_NPC, Entity_Player, ...), -with offsets **re-anchored for this exe** against trivial getters (Entity_Player fields drift +4 … +0x2c past 0x13b8). +are typed too (`npc->_sprite._animState._isPlaying`). ZHL `__thiscall` methods get a typed `this`, and every `NpcAI::` routine is `__fastcall (Entity_NPC *npc)`, so you read `npc->_state`, `npc->_variant`, `npc->_i1` rather than `param_1[0x2d9]`. Unknown offsets still show as `field_0xNNN` or `*(int *)(p + 0xNNN)`. Look them up with @@ -222,7 +230,8 @@ finding only in your scratch files or your final message. (instant: renames it in the dump everywhere, including call sites and `npc_ai.tsv`). For a virtual method, `./find.sh vtable CLASS` shows which slot it is; slot names are the most reliable evidence there is (a short ZHL sig or ICF can put a name on the wrong function, a vtable slot cannot). -2. **A struct field** you have confirmed: add `Class0xOFFtype _nameevidence` to `db/fields.tsv`. +2. **A struct field** you have confirmed in this exe: add `Class0xOFFtype _nameevidence` to `db/fields.tsv` + (arrays as `int _slots[4]`). Evidence is a function that reads/writes it with a known meaning, never REPENTOGON's offset. **A local variable** in a function you have read closely: `functionlocal_2c0newName[C type]` in `db/locals.tsv`. Only when every use has the same role: MSVC reuses registers and stack slots (see the file header). Name-only rows reach the dump with `apply_db.py`; rows with a type (e.g. `Vector` for an x/y pair) need `--db`. diff --git a/build.sh b/build.sh index 1561c66..7afe3c4 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ # build.sh --db (re-apply db/ to the project, re-decompile just the db functions into the dump, ~1 min) # build.sh --db --full (same, then redump everything, ~50 min: needed after db/fields.tsv changes) # Steps: import+auto-analysis -> ZHL sig/vtable names -> Lua-registration names -> NPC AI table -# -> struct offsets re-anchored on getters -> struct/this types -> final dump. +# -> REPENTOGON struct fields this exe confirms (getters, Lua field table) -> struct/this types -> final dump. set -e D="$(cd "$(dirname "$0")" && pwd)" export JAVA_HOME="$D/jdk" GHIDRA_MAXMEM=24G @@ -19,6 +19,9 @@ apply_db() { # db names -> struct types (zhl + db fields) grep -hv '^#' "$D/zhl_fields.tsv" "$D/lua_fields.tsv" "$D/db/fields.tsv" > "$D/build_fields.tsv" # later lines win G -process isaac-ng.exe -noanalysis -postScript ApplyTypes.java "$D/build_fields.tsv" G -process isaac-ng.exe -noanalysis -postScript ApplyLocals.java "$D/db/locals.tsv" # after types: names refer to that decompile + P headers.py "$D/src/structs.hpp" "$D/zhl_fields.tsv" "$D/lua_fields.tsv" "$D/db/fields.tsv" + echo '#include "structs.hpp"' | g++ -std=c++17 -fsyntax-only -I"$D/src" -x c++ - \ + || echo "src/structs.hpp does not compile: a db/fields.tsv offset contradicts another" >&2 } types_dump() { # final dump, built in dump.new and swapped in at the end so readers never see a half-written dump O="$D/dump.new"; command rm -rf "$O" @@ -59,8 +62,7 @@ G -process isaac-ng.exe -noanalysis -readOnly -postScript LuaAsm.java $LUA_REG " cat "$D/lua_names.tsv" "$D/lua_asm.tsv" | awk -F'\t' '!seen[$1]++' > "$D/lua_all.tsv" G -process isaac-ng.exe -noanalysis -postScript ApplyNames.java "$D/zhl_matches.tsv" "$D/zhl_vtables.tsv" "$D/lua_all.tsv" G -process isaac-ng.exe -noanalysis -postScript NpcTable.java $NPC_DISPATCH "$D/repentogon/libzhl/functions/Global.zhl" "$D/npc_ai.tsv" -P fix_offsets.py "$D/dump/all.c" "$D/zhl_fields.tsv" "$D/zhl_fields.tsv.new" "$D/lua_all.tsv" -command mv -f "$D/zhl_fields.tsv.new" "$D/zhl_fields.tsv" +P zhl_fields.py "$D/dump/all.c" "$D/repentogon/libzhl/functions" "$D/lua_bindings.tsv" "$D/zhl_fields.tsv" "$D/lua_all.tsv" P lua_fields.py "$D/dump/all.c" "$D/lua_names.tsv" "$D/lua_asm.tsv" "$D/zhl_fields.tsv" "$D/lua_fields.tsv" apply_db types_dump diff --git a/db/fields.tsv b/db/fields.tsv index da8a6c5..3f55235 100644 --- a/db/fields.tsv +++ b/db/fields.tsv @@ -15,3 +15,607 @@ Entity_Player 0x2004 bool _darkArtsBlastPending set as Dark Arts ends; the blast Entity_Player 0x2008 float _darkArtsDamage the snares' summed damage, the end blast's DamageRadius damage (characters_9.md) Entity_Player 0x200c Entity* _darkArtsLastSnare the newest 1000.194 Dark Snare (characters_9.md) Entity_Pickup 0x5c8 EntitySaveState* _flipSaveState Flip's ghost item (Room::SpawnEntry), swapped by TryFlip (characters_9.md) +# +# Verified against this exe by 8 subagents (2026-10-24): every REPENTOGON field our build could not confirm automatically, +# relocated with code evidence (constructors, Lua getters/setters, known users). REPENTOGON offsets themselves are not evidence. +Entity_Player 0x41c ANM2 _bodySprite ctor 00753da0 builds ANM2 here first; Render 0078b640 checks its _loaded and reads its null frame for the held item +Entity_Player 0xee4 ANM2 _bloodGushSprite ctor 00753da0 builds ANM2 here after the 7-sprite array at 0x758; Update 00782af0 ANM2::Update on it; same layout as REPENTOGON (shift 0 up to 0x1368) +Entity_Player 0xff8 ANM2 _heldSprite ctor 00753da0 ANM2; AnimateCollectible 007ab380 loads the item graphic into it, rewinds and plays it +Entity_Player 0x1220 vector_CostumeSpriteDesc _costumeSpriteDescs ctor 00753da0 zeroes a 3-dword vector at 0x1220..0x1228 right after the ANM2 at 0x110c; shift-0 region bracketed by 0xff8 and 0x1340 +Entity_Player 0x1320 std_string _headAnim ctor 00753da0 inits an MSVC std::string at 0x1320 (size 0x1330=0, cap 0x1334=0xf); shift-0 region +Entity_Player 0x1338 int _blinkTime Lua field HeadFrameDelay = +0x1338; update_shooting 0077b020 sets 8/10 and counts it down +Entity_Player 0x133c int _headDirectionTime update_shooting 0077b020 counts it down beside 0x1338 and only refocuses the head while it is <0; bracketed by 0x1338 and 0x1340 (shift 0) +Entity_Player 0x1374 int _gnawedLeafTimer Update 00782af0: HasCollectible(210 Gnawed Leaf) with no action triggers -> ++, >60 adds the null costume; reset to 0 otherwise +Entity_Player 0x137c short _bloodLustCounter EvaluateItems 00763570 reads it as short beside GetCollectibleEffectNum(411 Blood Lust); TakeDamage 007729d0 increments it +Entity_Player 0x1388 int _metronomeCollectibleID UseActiveItem 005b39d0 Metronome case stores the rolled item id; GetCollectibleNum 00770ca0 +1 when HasCollectibleEffect(488) and id matches; room_exit 007a6680 clears it +Entity_Player 0x1394 int _monkeyPawCounter TakeDamage 007729d0 decrements it, at <1 TryRemoveTrinket(20 Monkey Paw) and resets to 3 +Entity_Player 0x16c8 std_vector_int _collectibleCounts GetCollectibleNum 00770ca0 indexes begin 0x16c8 / end 0x16cc by collectible id (shift +0x10) +Entity_Player 0x1530 int _shotSpeedModifier EvaluateItems 00763570 shot-speed block: shotspeed = (this+0x1530 + ...)*0.2 + ...; zeroed under Curse Mist/coop ghost like the kept 0x1520..0x152c modifiers (shift +8) +Entity_Player 0x1534 int _luckModifier EvaluateItems 00763570 luck block (cache 0x400) adds it, zeroed under Curse Mist/coop ghost (shift +8) +Entity_Player 0x1538 int _donateLuck DonateLuck 007b2200 (Lua EntityPlayer:DonateLuck) adds the argument here and sets cache flag 0x400; EvaluateItems adds it to luck +Entity_Player 0x153c int _potatoPeelerCounter EvaluateItems 00763570: damage += (0x153c+0x1540)*0.2 and Cube of Meat level = 0x153c + GetCollectibleNum(73) + effect num(73) (shift +8) +Entity_Player 0x154c float _edenSpeed EvaluateItems 00763570 speed block (cache 0x10) writes it into the per-player-type base speed table at Eden (9) and Tainted Eden (0x1e) slots +Entity_Player 0x1550 float _edenFireDelay EvaluateItems 00763570 fire-delay block (cache 2) adds it when playerType is 9/0x1e (shift +0xc) +Entity_Player 0x1554 float _edenDamage EvaluateItems 00763570 damage block adds it when playerType is 9/0x1e (shift +0xc) +Entity_Player 0x1558 float _edenTearRange EvaluateItems 00763570 range block (beside the -80/-60 per-character range) adds it when playerType is 9/0x1e +Entity_Player 0x155c float _edenShotSpeed EvaluateItems 00763570 shot-speed block: shotspeed += it when playerType is 9/0x1e +Entity_Player 0x1560 float _edenLuck EvaluateItems 00763570 luck block (cache 0x400) sums it with the luck modifiers; last of the 6-float Eden block 0x154c..0x1560, right before kept _movespeed 0x1568 +Entity_Player 0x1748 vector_SmeltedTrinketDesc _smeltedTrinkets HasGoldenTrinket 00771620 indexes *(this+0x1748) by trinket id *4 and tests the short at +2; TryRemoveSmeltedTrinket 00772260 (shift +0x10) +Entity_Player 0x1754 std_vector_int _voidedCollectibles VoidHasCollectible 007711a0: when an active slot holds 477 Void, scans begin 0x1754 / end 0x1758 for the id (shift +0x10) +Entity_Player 0x17c0 uint32_t _actionHoldDrop FUN_007a42b0 (called by Update): ++ while ACTION_DROP (11) is pressed, 0 when released; >=0x79 frames drops both trinkets and pocket items +Entity_Player 0x1824 bool _postLevelInitFinished InitPostLevelInitStats 007bc740 sets it to 1 at the end; PlayerManager::replace_player 009bee80 calls InitPostLevelInitStats when it is 0; level_start 007a4ba0 returns early when 0 +Entity_Player 0x16c0 uint32_t _trinketsID[2] not in the input list (REPENTOGON 0x16b0): HasGoldenTrinket 00771620 and FUN_007a42b0 loop 2 slots at 0x16c0 masking id 0x7fff / golden 0x8000 +Entity_Player 0x1f44 char _bagOfCraftingContent[8] not in the input list (REPENTOGON 0x1f20): FUN_007a42b0 rotates the 8 bytes at 0x1f44 on the drop button when playerType is 23 Tainted Cain (shift +0x24) +Entity_Player 0x1dec History _history DischargeActiveItem 007ac7e0 calls History::AddHistoryItem 00721a70 with ECX = this+0x1dec; ctor 00753da0 inits 0x1dec..0x1dfc (owner ptr = this at +0x10) right before _inventory 0x1e00 (shift +0x14) +Entity_Player 0x1e54 deque_afterImageFrames _afterImageFrames Render 0078ca00 walks a deque (map 0x1e58, mapsize 0x1e5c, off 0x1e60, size 0x1e64) of frames and redraws the player at each stored position with alpha frame/10 (the after images); ctor 00753da0 inits it with a proxy (shift +0x1c) +Entity_Player 0x1e68 EntityPtr _twinPlayer InitTwin 007d2000 sets it on both twins with the EntityPtr multiset erase/insert; GetOtherTwin 00417820 returns it (same member as the Lua _otherTwin; shift +0x1c) +Entity_Player 0x1e6c Entity_Player* _backupPlayer GetCollectibleNum 00770ca0 adds GetCollectibleNum(*(this+0x1e6c)) for tag-0x40000000 items and AddCostume 0075d1d0 mirrors costumes onto it, as REPENTOGON's GetOwners/GetTotalCount do with _backupPlayer +Entity_Player 0x1e74 int _redStewBonusDuration EvaluateItems 00763570 damage += (it/10)*0.04 while >0; update_effects 00794e50 counts it down and re-evaluates at each /10 step; UseActiveItem 005b39d0 adds 2700 behind a HasCollectible test; bracketed by _backupPlayer 0x1e6c and Mars 0x1e8c, all +0x1c +Entity_Player 0x1e8c int _marsUnk1 ctor 00753da0 inits it to 90; update_body_animations 00779b40 copies it into the Mars cooldown 0x1e90 on a dash (it is the dash cooldown length) +Entity_Player 0x1e90 int _marsCooldown update_body_animations 00779b40: a Mars (593) double tap dashes only while it is <1, then it is set from 0x1e8c +Entity_Player 0x1e94 int _marsUnk2 ctor inits -1; update_body_animations 00779b40 stores the dash direction (the tapped action) here on a Mars dash +Entity_Player 0x1e98 bool _marsUnkBool ctor inits 1; update_body_animations 00779b40 clears it when a Mars dash starts +Entity_Player 0x1e9c int _marsLastTapDirection not in REPENTOGON: update_body_animations 00779b40 stores the last tapped move action (0..3); a repeat within 11 frames triggers the Mars dash +Entity_Player 0x1ea0 int _marsTapFrames not in REPENTOGON: update_body_animations 00779b40 frames since the last move tap, ++ each frame capped at 10000, reset to 0 on a tap; <0xb means double tap +Entity_Player 0x1eb0 float _rockBottomMoveSpeed EvaluateItems 00763570 Rock Bottom (562) block, cache 0x10: movespeed = max(movespeed, this+0x1eb0) and stores it back (shift +0x1c) +Entity_Player 0x1eb4 float _rockBottomMaxFireDelay EvaluateItems 00763570 Rock Bottom block, cache 2: stores max(30/(maxfiredelay+1), it), the tears rate, then rebuilds maxfiredelay from it +Entity_Player 0x1eb8 float _rockBottomDamage EvaluateItems 00763570 Rock Bottom block, cache 1: damage = max(damage, it), stored back +Entity_Player 0x1ebc float _rockBottomTearRange EvaluateItems 00763570 Rock Bottom block, cache 8: tearrange = max(tearrange, it), stored back +Entity_Player 0x1ec0 float _rockBottomShotSpeed EvaluateItems 00763570 Rock Bottom block, cache 4: shotspeed = max(shotspeed, it), stored back +Entity_Player 0x1ec4 float _rockBottomLuck EvaluateItems 00763570 Rock Bottom block, cache 0x400: luck = max(luck, it), stored back +Entity_Player 0x1edc uint32_t _revelationChargeTimer update_shooting 0077b020: with Revelation (643) fires the laser once it is >150 (shift +0x1c) +Entity_Player 0x1ee0 uint32_t _montezumaChargeTimer update_shooting 0077b020: with Montezuma's Revenge (680) fires the backward laser once it is >150 (shift +0x1c) +Entity_Player 0x1ef4 uint32_t _maggyHealthDrainCooldown Update 00782af0: set to 300 and counted down; at <1 drains one red/soul heart (Tainted Magdalene temporary hearts); TakeDamage 007729d0 resets it to 0 (shift +0x24) +Entity_Player 0x1ef8 int _maggySwingCooldown same member as db/fields.tsv _hugCountdown (Tainted Magdalene swing: 9 on a swing, swings again under 3); REPENTOGON 0x1ed4 +0x24 like its neighbour 0x1ef4 +Entity_Player 0x1f2c int _suplexState update_suplex 007d4390: state machine (1 aim, 2 grab, 3 leap up, 5 super leap) at this+0x7cb*4 +Entity_Player 0x1f30 int _suplexAimCountdown update_suplex 007d4390 counts it down (this+0x7cc*4) and ends the aim at <=0; update_effects 00794e50 sets it to 60 when Suplex starts +Entity_Player 0x1f34 Vector _suplexTargetPos update_suplex 007d4390 stores the held entity's (or own) position here on LeapUp (this+0x7cd/0x7ce*4) +Entity_Player 0x1f3c Vector _suplexLandPos update_suplex 007d4390 stores the player's own position here on LeapUp (this+1999/2000*4), right after _suplexTargetPos +Entity_Player 0x1f4c BagOfCraftingOutput _bagOfCraftingOutput ControlActiveItem 00791a40: with item state 710 Bag of Crafting, holding 30 frames queues collectible *(this+0x1f4c) from pool *(this+0x1f50), then clears it to 0/-1 with the 8-byte bag at 0x1f44; UseActiveItem 005b39d0 fills both +Entity_Player 0x1fbc int _keepersSackBonus FUN_007d8630 adds coins spent here when HasCollectible(716 Keeper's Sack); EvaluateItems 00763570 turns it into damage/range/speed bonuses (shift +0x24) +Entity_Player 0x2030 ConsumableData _consumablesBackup AddCurseMistEffect 007d8980 copies coins/keys/bombs/golden key/golden bomb/soul charge/giga bombs/poop mana/blood charge into 0x2030..0x204c in ConsumableData order (shift +0x1c) +Entity_Player 0x2090 uint8_t _wildCardItemType UseCard 007b78de case CARD_WILD (80): switches on this byte (0 pill, 1 card, 2 active item) (shift +0x2c) +Entity_Player 0x2094 int _wildCardItem UseCard case CARD_WILD (80) reuses this id as the pill/card/active item; 0x2098 holds the pill flags / active var data passed with it +Entity_Player 0x20d4 PlayerHUD* _playerHUD Update 00782af0 (00782b86): MOV ECX,[EDI+0x20d4]; if non-null CALL PlayerHUD::Update 00842230 (shift +0x2c) +Entity_Player 0x20e8 bool _hasUnlistedRestoreState PlayerManager::replace_player 009bee80 sets it to 1 after StoreGameState into 0x20ec; when set on the incoming player it restores from 0x20ec and clears it +Entity_Player 0x20ec GameStatePlayer _unlistedRestoreState PlayerManager::replace_player 009bee80: GameStatePlayer::Init + Entity_Player::StoreGameState on this+0x20ec, and RestoreGameState from it later +Entity_Player 0x26c8 Entity_Player* _replacedPlayer PlayerManager::replace_player 009bee80 writes the other player into 0x26c8 of both the old and the new player (shift +0x4c: GameStatePlayer grew by 0x20) +Game 0x0 uint32_t _stage Level:GetStage binding (0040c3a0) returns *this; Game:GetLevel (00424530) returns this, so Level*==Game* +Game 0x4 uint32_t _stageType Level:GetStageType (004073c0) returns this+4; Level::IsAltStage (0042a2c0) tests it !=0 +Game 0x8 bool _bossChallenge Level::HasBossChallenge (0085e160) returns byte this+8 +Game 0x9 bool _devilRoomDisabled Level::IsDevilRoomDisabled (007e9250) reads, Level::DisableDevilRoom (007e9260) sets byte this+9=1 +Game 0xc uint32_t _curses Level::GetCurses (00748490) ORs this+0xc with forced curses; Level::RemoveCurses (00748bc0) clears bits in it +Game 0x182cc uint32_t _nbRooms Level::GetRoomCount (0056ff80) returns it; Level::GetRoomByIdx (00740bc0) loops rooms up to it +Game 0x182d0 uint32_t _startingRoomIdx Level::GetStartingRoomIndex (00505c70) returns it +Game 0x182d4 RNG _generationRNG Game ctor (006f1020) inits RNG (seed 0xaa17414f, shifts 5/9/7); Level::Init (00744940) seeds+steps it; used by Level::place_special_rooms/generate_dungeon/generate_mineshaft +Game 0x182e4 RNG _devilAngelRoomRNG Level:GetDevilAngelRoomRNG (007537f0) returns this+0x182e4; ctor/Level::Init init it as 2nd RNG; Level::InitializeDevilAngelRoom uses it (not in REPENTOGON) +Game 0x182f4 float _angelRoomChance Level::GetAngelRoomChance (007e9270) returns float; Level::AddAngelRoomChance (0065cf00) adds to it (not in REPENTOGON) +Game 0x18300 Room* _room Level::GetCurrentRoom (00407480) returns it; RemoveCurses uses it +0x1218 as EntityList +Game 0x18304 uint32_t _currentRoomIdx Level::GetCurrentRoomIndex lua field; Game::GetCurrentRoomDesc (00740db0) passes it to GetRoomByIdx +Game 0x18308 uint32_t _lastRoomIdx Level::GetPreviousRoomIndex lua field; Level::GetLastRoomDesc (00740dd0) passes it to GetRoomByIdx +Game 0x1830c uint32_t _currentDimensionIdx Level::GetRoomByIdx (00740bc0) uses it as default dimension; Game::GetCurrentRoomDesc passes it with _currentRoomIdx +Game 0x18310 uint32_t _lastRoomDimensionIdx Level::GetLastRoomDesc (00740dd0) passes it as dimension with _lastRoomIdx +Game 0x18314 uint32_t _lastBossRoomListIdx Level::GetLastBossRoomListIndex lua field +Game 0x18318 uint32_t _leaveDoor Level::LeaveDoor lua field +Game 0x1831c uint32_t _enterDoor Level::EnterDoor lua field +Game 0x1832c uint32_t _dungeonPlacementSeed Level::GetDungeonPlacementSeed (0060d000) returns it +Game 0x18334 uint32_t _greedModeWave Level::GreedModeWave (0070c5b0) returns it +Game 0x18370 uint32_t _greedModeTreasureRoomIdx level gen (0074399a etc.) sets it to 0x55; ItemPool::get_pool_from_room_entities (007ebe20): greed mode treasure room != this idx -> boss pool +Game 0x18374 int _greedWavesClearedWithoutRedHeartDamage Room::SpawnGreedModeWave (00816910) increments it, extra wave every 3; Level::SetRedHeartDamage (0074b5b0) zeroes it (REPENTOGON Level had 0x18204) +Game 0x1839c unsigned int _levelStateFlags Level::GetStateFlag (004f88f0)/SetStateFlag (00428a80) test/set bit in this+0x1839c +Game 0x183a4 vector_EntitySaveState _myosotisPickups Room::Update (00802980) if non-empty calls FUN_00752830 on it then checks trinket 0x89 (Myosotis); ctor zeroes 0x183a4..0x183ac +Game 0x18910 RoomConfig _roomConfig Game ctor builds 0x25 RoomConfigStage at it; Level::ForceHorsemanBoss (007481d0) and FUN_00745b70 call RoomConfig::GetRoomByStageTypeAndVariant with ECX=Game+0x18910 +Game 0x1d520 GameOver _gameOver Game::Render (006fbc10) calls GameOver::Render (00998880) with ECX=Game+0x1d520; ctor builds it after ItemOverlay +Game 0x1d650 Leaderboard _leaderboard Game::Update (006fadc0) calls Leaderboard::Update (00857450) with ECX=Game+0x1d650; ctor calls its ctor 00856f70 there +Game 0x23a74 PauseScreen _pauseScreen Game ctor calls PauseScreen::constructor (009b5320) on Game+0x23a74; Game::Update/Render test state dword there and render it when !=0 +Game 0x24ecc RevivePlayerMenu _revivePlayerMenu Game::LoadConfigXmls (006f4740) calls RevivePlayerMenu::Init (008ef560) with ECX=Game+0x24ecc; Game::Render calls 008efe10 on it (not in REPENTOGON) +Game 0x25ecc Minimap _minimap HUD::Render (009a3eb0) calls Minimap::Render with ECX=Game+0x25ecc; LoadConfigXmls calls Minimap::Init on it; 8 Minimap::Refresh calls on it +Game 0x269e9 bool _isStartingFromState FUN_00959720 sets 1 around Game::restore_game_state..LuaEngine::PostGameStart then 0; Player::AddSoulHearts (00758d00) skips while set; reset_run_state zeroes +Game 0x269ea bool _isStoringGlowingHourglassState Game::save_rewind_state (00705ee0) sets 1 while storing the slot, 0 after, and bails if already set +Game 0x269eb bool _isRestoringGlowingHourglassState Entity_Player::RestoreGameState (007ae4b0) branches on it; save_rewind_state bails if set +Game 0x269ec GlowingHourglassState _glowingHourglassStates[2] Game ctor: vector ctor 2 x 0x20660 at Game+0x269ec; save_rewind_state writes Game+0x269ec+slot*0x20660 +Game 0x676ac int _currentGlowingHourglassSlot Game::save_rewind_state (00705ee0) reads/writes int index 0x19dab (=0x676ac) as the slot selecting the 0x20660 state +Game 0x676b4 bool _shouldLerpColorModState Game::SetColorModifier (007067c0) sets 1 when lerp, 0 otherwise; Game::Update clears it when done +Game 0x676b8 ColorModState _currentColorModifier SetColorModifier copies target into it when not lerping; ctor inits 1,1,1,0,0,1 +Game 0x676d0 ColorModState _targetColorModifier SetColorModifier copies the argument ColorModState into it +Game 0x676e8 ColorModState _lerpColorModifier SetColorModifier stores |target-current|*rate per component into it +Game 0x6772c DebugRenderer _debugRenderer Game::Render (006fbc10) calls DebugRenderer::Render (0042dbb0) with ECX=Game+0x6772c; Game::Update expires its list entries +Game 0x67734 float _lightningIntensity Game::Update (006fadc0) decays it *0.75, zero below 0.05 +Game 0x67738 float _dizzyIntensity Game::Update moves it toward 0x6773c by step 0x67740 +Game 0x6773c float _dizzyTargetIntensity Game::Update: target that _dizzyIntensity approaches +Game 0x67740 float _dizzyIntensityChangeSpeed Game::Update: step size; reset_run_state (006f43b0) sets 0.001 +Game 0x6774c vector_ErasedEntities _erasedEntities Game::AddErasedEnemy (00707840) pushes {type,variant,subtype} (12 bytes) to vector at 0x6774c/0x67750; Game::ShouldEraseEnemy scans it +Game 0x67758 ProceduralItemManager _proceduralItemManager ItemPool::CreateGlitchedCollectible (009dcc70) indexes vector at Game+0x67758 by -1-id +Game 0x68d78 Console _console Game::Render calls Console::Render (0068c2e0) and Manager::update_ingame_input calls Console::Update (0068b260) with ECX=Game+0x68d78; ctor layout matches (_input string +0x1c, deques +0x40/+0x54) +Level 0x0 uint32_t _stage Level:GetStage binding (0040c3a0) returns *this +Level 0x4 uint32_t _stageType Level:GetStageType (004073c0) returns this+4; Level::IsAltStage (0042a2c0) +Level 0x1839c uint32_t _levelStateFlag Level::GetStateFlag (004f88f0)/SetStateFlag (00428a80) bitset at this+0x1839c (REPENTOGON Level said 0x1822c, +0x170) +Level 0x18374 uint32_t _greedwavesclearedwithoutredheartdamage Room::SpawnGreedModeWave (00816910) increments; Level::SetRedHeartDamage (0074b5b0) zeroes (REPENTOGON said 0x18204, +0x170) +Level 0x182e4 RNG _devilAngelRoomRNG Level:GetDevilAngelRoomRNG (007537f0) returns this+0x182e4 (not in REPENTOGON) +Level 0x182f4 float _angelRoomChance Level::GetAngelRoomChance (007e9270)/AddAngelRoomChance (0065cf00) (not in REPENTOGON) +Room 0x4 RoomDescriptor* _descriptor Room::GetDecorationSeed 004aae80 returns (this+4)->+0x58 (DecorationSeed); GetRoomShape 0042a270 reads (this+4)->Data->+0x48 +Room 0x8 uint32_t _roomType Lua Room:GetType bound to folded getter 0043eec0 (return this+8); GetLightingAlpha 0081e250 compares it to 8/0x1d; UpdateGreedWave 00801ee0 ==5 (boss) +Room 0xc uint32_t _gridWidth Lua Room:GetGridWidth bound to folded getter 004176f0 (return this+0xc); Backdrop::Init 0093d960 uses room+0xc/+0x10 as width/height +Room 0x1bc8 Backdrop _backdrop Room::LoadBackdropGraphics 007f1380 calls Backdrop::Init(room+0x1bc8); Backdrop::Init writes backdropId at +0x150 = room+0x1d18 (Lua GetBackdropType 004cdd20) +Room 0x7070 deque_ShopRestockDesc _shopItemDeque Room::constructor 007e9400 builds a std::deque (proxy new(8), 5 dwords 0x7070..0x7080); Room::TriggerRestock 00815800 / ShopRestockPartial 008158a0 use 0x7074..0x7080 +Room 0x722c int _slowdownDuration Lua Room:HasSlowDown 00456710 (0 < this+0x722c) / SetSlowDown 00456720 (max); Room::Update 00802980 decrements it; REPENTOGON 0x7220 is wrong/shifted +0xc +Room 0x723c int _greedWaveTimer Room::UpdateGreedWave 00801ee0: greed only, decrements, clamps to 0x13, calls SpawnGreedModeWave at 0 +Room 0x7240 float _waterAmount Room::HasWater 008208c0 and render_water_shader 00821950 read it; rain init 00824350 requires >0 +Room 0x7244 KColor _waterColor ctor 007e9400 KColor::SetFromARGB(-1) at 0x7244; render_water_shader 00821950 lerps 0x7244 -> 0x726c +Room 0x7258 KColor _waterColorMultiplier ctor 007e9400 KColor at 0x7258; render_water_shader 00821950 lerps 0x7258 -> 0x7280 +Room 0x726c KColor _waterLerpTargetColor ctor 007e9400 KColor at 0x726c; lerp target of 0x7244 in render_water_shader 00821950 +Room 0x7280 KColor _waterLerpTargetColorMult ctor 007e9400 KColor at 0x7280; lerp target of 0x7258 in render_water_shader 00821950 +Room 0x7294 int _waterLerpColorDuration render_water_shader 00821950: t = 1 - countdown(0x7298)/duration(0x7294) +Room 0x7298 int _waterLerpColorCountdown render_water_shader 00821950: t = 1 - countdown(0x7298)/duration(0x7294) +Room 0x72a1 bool _pacifist Entity_NPC::TakeDamage 006d60a0 clears it on player/familiar-source damage; Entity_Familiar::PickEnemyTarget 00615030 / HandleCollision 006261f0 hold off while set; reset 00821940 +Room 0x72a4 ColorMod _floorColor Lua Room:SetFloorColor 007e91b0 copies 0x2c bytes to 0x72a4; ctor 007e9400 inits it +Room 0x72d0 ColorMod _wallColor Lua Room:SetWallColor 007e91f0 copies 0x2c bytes to 0x72d0; ctor 007e9400 inits it +Room 0x7310 TemporaryEffects _temporaryEffects ctor 007e9400 inits 0x7310..0x7324 in TemporaryEffects layout (vector +4, 2 bools +0x10, player +0x14); getter 004360d0 returns this+0x7310, its callers then call TemporaryEffects::AddCollectibleEffect +Room 0x7454 int _numRainSpawners rain init 00824350 zeroes it, then fills spawner array 0x73f4 (stride 0x18) and increments it; Room::update_ambient_sounds 00800500 reads it +Room 0x7458 float _rainIntensity rain init 00824350 sets 1.0; Room::update_ambient_sounds 00800500 reads it +Room 0x745c bool _isRainStopped Lua Room:StopRain 005784d0 sets 1; rain init 00824350 clears it; Room::update_ambient_spawns 00824800 / NpcAI::ENTITY_RAINMAKER 00578a70 read it (REPENTOGON lacks this) +Room 0x7460 Vector _waterCurrent Lua Room:GetWaterCurrent 00505c50 returns this+0x7460/0x7464; Room::Init 007f2800 sets it from table 0xc5d0e8 +Room 0x7468 RailManager _railManager ctor 007e9400 writes this to +0x7468 (RailManager._room) and builds its ANM2; Room::Render passes ECX=room+0x7468 to RailManager::Render 009e2f20; rail byte grid at +0x746c +Room 0x7740 float _lavaIntensity Lua Room:GetLavaIntensity 007120c0 returns this+0x7740 +Room 0x7894 bool _isPickupVisionInvalid Lua Room:InvalidatePickupVision 005b16c0 sets this+0x7894 = 1 (REPENTOGON lacks this) +RoomDescriptor 0xb4 int32_t Group RoomDescriptor::constructor 006ef590 sets +0xb4 = -1; operator_assign 007387d0 copies it as last dword (stride 0xb8); Level::GetRandomRoomIndex 00740860 only picks rooms whose +0xb4 is -1 or equals the current room's +Entity_Tear 0x410 float _height Lua EntityTear.Height getter 00431750 returns this+0x410 +Entity_Tear 0x414 float _fallingSpeed Lua EntityTear.FallingSpeed getter 00456440 returns this+0x414 +Entity_Tear 0x418 float _fallingAccel Lua EntityTear.FallingAcceleration getter 00435e50 returns this+0x418 +Entity_Tear 0x464 float _deadEyeIntensity Entity_Tear::SetDeadEyeIntensity 00679e80 writes this+0x464 +Entity_Tear 0x6d4 ANM2 _deadEyeANM2 Entity_Tear::SetDeadEyeIntensity 00679e80 loads gfx/DeadEyeTearEffect.anm2 into this+0x6d4 +Entity 0x20 unsigned int _index Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 +Entity_Knife 0x410 BitSet128 _tearFlags Lua EntityKnife.TearFlags getter 0085de90 copies 16 bytes from this+0x410 +Entity_Knife 0x444 float _knifeDistance Lua EntityKnife.GetKnifeDistance 0085deb0 returns this+0x444 +Entity_Knife 0x448 float _knifeVelocity Lua EntityKnife.GetKnifeVelocity 004d77a0 returns this+0x448 +Entity_Bomb 0x410 int _explosionCountdown1 Lua EntityBomb.SetExplosionCountdown 00452c40 writes this+0x410 (and +0x414) +Entity 0x408 LuaBridgeRef* _luaBridgeRef Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it +Entity 0x24 unsigned int _collisionIndex EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 +Entity_NPC 0xcac ColorMod _dirtColor Entity_NPC::UpdateDirtColor 006c04b0 writes Room::GetFloorColorAt*2 to this+0xcac..0xcb4 and lerps sprite layers toward it +Entity_Familiar 0xef4 ColorMod _dirtColor Entity_Familiar::UpdateDirtColor 0064ca30 writes Room::GetFloorColorAt*2 to this+0xef4..0xefc (+0xf00=1.0) and lerps layers toward it +Entity_NPC 0xf00 std_vector_uint _hitList Entity_NPC::HandleCollision 006cd410 (6cdfb3, 6cfdfa...) and NpcAI::ENTITY_DARK_ESAU 005542e0 pass this+0xf00 to EntityList::HitListContains 00431640 +Entity_Laser 0x520 std_vector_uint _hitList Entity_Laser::CanDamageEntity 0096cf80 passes this+0x520 (or the parent laser chain via +0x52c) to EntityList::HitListContains +Entity_Bomb 0x9c8 std_vector_uint _hitList Entity_Bomb::HandleCollision 006a5f00 (6a61dd) passes this+0x9c8 to EntityList::HitListContains +Entity_Familiar 0xdac std_vector_uint _hitList (not in REPENTOGON) Entity_Familiar::HandleCollision 006261f0, ai_umbilical_baby, ai_pickup_sack, apollyons_best_friend pass this+0xdac to EntityList::HitListContains +Entity_Familiar 0xdc4 Weapon* _weapon Entity_Familiar::update_weapon 0062e620 stores Isaac::CreateWeapon() in this+0xdc4 / destroys it; delirium_morph 00631b20 frees it +Entity_Familiar 0xdc8 bool _isLilDelirium Entity_Familiar::delirium_morph 00631b20 sets this+0xdc8=1; Entity_Familiar::Update 0061da10 tests it each frame +Entity_Familiar 0xee8 ItemConfig_Item* _item Isaac::SpawnLocust 005b35c0 stores the ItemConfig collectible entry at this+0xee8 (Init 0060de70 does too for subtype 55555) +Entity_Familiar 0xf20 int _wispCollectibleType Entity_Familiar::WispInit 00436330 stores the source collectible (712 Lemegeton, or the original 515/490 before rerolling the subtype) in this+0xf20 +Entity_Familiar 0xdcc ANM2 _chargeBarSprite (not in REPENTOGON) Entity_Familiar::Init 0060de70 loads gfx/chargebar.anm2 into this+0xdcc; ctor 0060d200 constructs an ANM2 there +Entity_Tear 0x468 bool _multidimensionalTouched Entity_Familiar::Update 0061da10 (Multidimensional Baby) reads tear+0x468 via 0060cd60, sets it via 0060cd70 before Entity_Tear::MakeMultidimensionalCopy 0067a190 (which copies it) +Entity_Tear 0x469 bool _prismTouched Entity_Familiar::Update 0061da10 (Angelic Prism) skips tears with +0x469 set (0060cd80) and sets it on the split copies (0060cd90) +Entity_Knife 0x4e6 bool _multidimensionalApplied Entity_Familiar::multidimensional_baby_copy_knife 009615e0 returns if knife+0x4e6 set, then sets it to 1 and spawns the two copies +Entity_Bomb 0x460 bool _prismTouched Entity_Familiar::Update 0061da10 (Angelic Prism) copies a Dr.Fetus bomb only if bomb+0x460==0 (0060cdd0) and sets it on the copies (0060cde0); REPENTOGON 0x45c is an int countdown here (Update sets 90, decrements) +Entity_Bomb 0x41c float _fallSpeed Entity_Bomb::Update 006a24d0 adds this+0x41c to _posOffset.y, then adds this+0x420 to it; bounce sets it to -0.7*speed +Entity_Bomb 0x420 float _fallAcceleration Entity_Bomb::Update 006a24d0 adds this+0x420 (default 0.8 when 0) to _fallSpeed each frame +Entity_Bomb 0x428 float _rocketAngle Entity_Bomb::Update 006a24d0 (rockets) velocity += sin/cos(this+0x428 deg); Angelic Prism (Familiar::Update) sets it via 00456820 on copies +Entity_Bomb 0x42c float _rocketSpeed Entity_Bomb::Update 006a24d0 this+0x42c += _speedMultiplier and scales rocket thrust; prism copies set it via 0060ce10 +Entity_Bomb 0x434 float _scale Entity_Bomb::Update 006a24d0 multiplies SetSize/sprite scale by this+0x434; Init 006a2050 sets 1.0 +Entity_Bomb 0x438 BitSet128 _tearFlags (not in REPENTOGON) Lua EntityBomb.Flags 005cd560 copies 16 bytes from this+0x438 +Entity_Bomb 0x418 float _explosionDamage (not in REPENTOGON) Lua EntityBomb.ExplosionDamage getter (folded with Entity_Tear::FallingAcceleration 00435e50) returns this+0x418; Init sets 100.0 +Entity_Bomb 0x44c float _radiusMultiplier (not in REPENTOGON) Lua EntityBomb.RadiusMultiplier 0060cdc0 returns this+0x44c; Init sets 1.0 +Entity_Bomb 0x463 bool _loadCostumes set to 1 by 006a6910 (sets flags at +0x438) and 006a6930 (sets _scale); Entity_Bomb::Update 006a24d0 calls 006a6f10 (loads costume ANM2s at +0x464) when this+0x463 != 0 +Entity_Bomb 0x464 ANM2 _bombCostumesSprites[5] 006a6f10 (named update_sparks, actually costume load) ANM2::Load into this+0x464...; ctor 006a1e80 eh-vector-constructs ANM2s at +0x464 +Entity_NPC 0xf1c int32_t _controllerID Entity_NPC::IsControllerActionPressed 006d8260 passes this+0xf1c to input_is_action_pressed (-1 = none); GetControllerMovementInput 006d85a0 / UpdateControllerMovement 006d9050 test it +Entity_NPC 0xf40 Entity_Player* _sirenPlayerEntity NpcHelper::siren_charmed_count 0058e590 counts familiars whose _player (+0x410) == npc+0xf40; NpcAI::siren_release_stolen_items 005911b0 animates the collectible pickup on it +Entity_NPC 0xf50 Entity_Effect* _pickupGhostsEntity Entity_NPC::UpdatePickupGhosts 006da530 passes/stores this+0xf50 through Entity_Effect::CreateLootPreview and removes it +Entity_Pickup 0x410 ANM2 _priceANM2 Entity_Pickup::update_price_sprite 006e2570 ANM2::Reset/Load (shop price sprite) on this+0x410; ctor 006e0010 constructs ANM2 there +Entity_Pickup 0x52e bool _isForceBlind Entity_Pickup::SetForceBlind 006e1e60 stores the arg at this+0x52e and calls UpdateSprite when a collectible changes +Entity_Pickup 0x554 int _dropDelay Entity_Pickup::Update 006e3940 starts: if this+0x554>0 decrement and skip the update; Entity_Player::AddCollectible staggers spawned pickups via +0x554 +Entity_Pickup 0x590 Entity_Effect* _pickupGhost Entity_Pickup::UpdateLootPreview 006e17c0 (Guppys Eye) stores Entity_Effect::CreateLootPreview result at this+0x590 and removes it +Entity_Pickup 0x594 Entity_Pickup* _megaChestCollectible[2] Entity_Pickup::SetAlternatePedestal 006e1a80 links two pedestals at the same position (types 14/19) via this+0x594 / other+0x598 +Entity_Pickup 0x5a0 unsigned int _cycleCollectibleList[8] Entity_Pickup::TryFlip 006e1640 rebuilds the cycle list: this[+0x5a0 + count*4] = id, count at +0x5c0 +Entity_Pickup 0x5c0 unsigned int _cycleCollectibleCount Entity_Pickup::TryFlip 006e1640 zeroes and increments this+0x5c0 while filling +0x5a0[] +Entity_Pickup 0x5c8 KAGE_SmartPointer_EntitySaveState _flipSaveState Entity_Pickup::TryFlip 006e1640 requires this+0x5c8 != 0 and swaps the pedestal with that save state; ctor zeroes +0x5c8/+0x5cc (smart pointer) +Entity_Pickup 0x5d0 ANM2 _altPedestalANM2 Entity_Pickup::Update 006e3940: when +0x5c8 set and a player has Flip (711), copies the main sprite into this+0x5d0 and load_collectible_gfx of the flip item (the ghost item sprite); ANM2::Reset otherwise +Entity_Pickup 0x59c int _varData Entity_Player::DropCollectible 00790530 copies the active slot _varData (player+0x1580+i*0x20+0x1c) into pickup+0x59c next to _charge (+0x524); Morph 006e30a0 zeroes it +Entity_Tear 0x4ac ANM2 _tearHaloANM2 Entity_Tear::SetTearFlags 00676150 loads gfx/TearHalo.anm2 into this+0x4ac +Entity_Tear 0x5c0 ANM2 _tearEffectANM2 Entity_Tear::SetTearFlags 00676150 loads LittleHorn/Mysterious/DarkMatter/FireMind/JacobsLadder TearEffect anm2s into this+0x5c0 +Entity_Tear 0x820 float _tearRange Entity_Player::FireTear 00790af0 copies player _tearrange (+0x1480) to tear+0x820; Entity_Tear::Init 006660a0 sets 260.0; Update compares it to +0x3a4 +Entity_Knife 0x465 bool _isSwinging Entity_Knife::SetAttackAnimation 009680d0 (Attack*/Swing anims) sets this+0x465=1 (word 0x101 with +0x466); SpinAttack 00968430 sets it too +Entity_Knife 0x4ea bool _isSpinAttack Entity_Knife::SpinAttack 00968430 (Spin* anims) sets this+0x4ea=1; SetAttackAnimation 009680d0 clears it +Entity_Knife 0x4e5 bool _prismApplied Entity_Knife::spawn_child_knife 00961870, called from the Angelic Prism block of Entity_Familiar::Update 0061da10 for flying knives, returns if this+0x4e5 set then sets it +Entity_Laser 0x518 bool _disableInitSound Entity_Laser::PlayInitSound 0096f880 returns at once if this+0x518 != 0; update_laser 00973c60 sets it on chained child lasers it spawns +Entity_Laser 0x51c float _damageMultiplier Entity_Player::FireTechLaser 007aab70 stores its damageScale arg in laser+0x51c; Entity_Laser::Init 0096f590 sets 1.0 +Entity_Laser 0x560 int _chainedLasers Entity_Laser::update_laser 00973c60 spawns a child laser with child+0x560 = this+0x560 - 1 while > 0, then zeroes it; copy_from_parent 0096f070 copies it +Entity_Effect 0x420 BitSet128 _varData Entity_Effect::CreateTimer 0060af00 stores the timer callback/delay/times in effect(1000.119)+0x420/+0x424/+0x428 (per-variant scratch data) +Entity_Effect 0x4a8 std_vector_uint _hitList (not in REPENTOGON) Entity_Effect::Update passes this+0x4a8 to EntityList::HitListContains 00431640 (5df65f, 5ecd27); ctor 005cd960 zeroes +0x4a8..0x4b0 +Manager 0x8 int _state 00954cd0 Manager::Update switch(this+8), saves prev to +0xc; 009595e0 IsGameplayInputActive tests ==2 (in game); ctor 00950610 zeroes it +Manager 0x10 uint32_t _currentSaveSlot 00959e70 Manager::SetSaveSlot writes slot to [this+0x10] after PersistentGameData::Clear(this+0x14) +Manager 0x14 PersistentGameData _persistentGameData 00950610 ctor calls PersistentGameData ctor 00925f80 on this+0x14; 00959e70 SetSaveSlot Clear(this+0x14); TryUnlock/IncreaseEventCounter(g_Manager+0x14) x70 +Manager 0xfa4 GameState _gamestate 00950610 ctor calls 009c73c0 on this+0xfa4; 00959130 Game::DeleteSaveState GameState::Delete(g_Manager+0xfa4); SetSaveSlot uses this+0xfa4 +Manager 0x20dd0 Cutscene _cutsceneManager 00950610 ctor: CutsceneEntry[27] (0x4c) at +0x20dd4 = Cutscene+4; 00952df0 load_configs Cutscene::load_xml(this+0x20dd0); 00954cd0 Manager::Update Cutscene::Show(this+0x20dd0) +Manager 0x21628 NightmareScene _nightmareScene 00950610 ctor ANM2s at +0x20/+0x134/+0x248/+0x4d4 of 0x21628 (= REPENTOGON NightmareScene layout); 00954cd0 Update NightmareScene::Show(this+0x21628); 009555c0 Render NightmareScene::Render(this+0x21628) +Manager 0x21c1c AchievementOverlay _achievementOverlay 005cd810 trivial getter returns g_Manager+0x21c1c (GetAchievementOverlay); ctor 00950610: ANM2 at +0x20, vector of 0x34-byte entries at +0x134, zeroes +0x14/+0x1c (displayedachievement/status) +Manager 0x29fbc Music _musicmanager 00428cd0 Lua MusicManager() returns g_Manager+0x29fbc; Music::Play/Fadein/PlayJingle(g_Manager+0x29fbc); ctor sets [+0x328]=1 (_enabled, = MusicManager::IsEnabled 0085e430) +Manager 0x2a324 SoundEffects _sfxManager 00420af0 Lua SFXManager() returns g_Manager+0x2a324; = Music+0x368 (Music size) +Manager 0x2a33c OptionsConfig _optionsConfig 00417900 getter returns g_Manager+0x2a33c; OptionsConfig::Save(g_Manager+0x2a33c); Lua Options::MusicVolume 00896810 reads +0x2a354 (= _musicVolume +0x18) +Manager 0x2a404 ItemConfig _itemConfig 0042ca00 Lua Isaac::GetItemConfig returns g_Manager+0x2a404; ctor calls 00724cb0 on this+0x2a404 +Manager 0x2a670 EntityConfig _entityConfig 00417910 getter returns g_Manager+0x2a670; 004186c0 EntityList::Update calls EntityConfig::GetEntity with ECX=g_Manager+0x2a670; players vector at +8 (0x2a678/0x2a67c, /0x148 stride, 44 uses) +Manager 0x2a6c0 ModManager _modManager 0040d210 getter returns g_Manager+0x2a6c0; ModManager::TryRedirectPath(g_Manager+0x2a6c0) many; ctor: vector +0, memset(+0xc,0,0x20000) redirect table, +0x2025c modBanStatus +Manager 0x4a920 StringTable _stringTable 004253c0 getter returns g_Manager+0x4a920; string_table_translate(g_Manager+0x4a920,"#...") 118 uses; 00951920 load_fonts reads language at +0 +Manager 0x4abbc unsigned int _framecount 0086f090 Lua Isaac::GetFrameCount returns *(g_Manager+0x4abbc) +Manager 0x4abd1 bool _isConsoleEnabled 00952410 Manager::Init copies options _enableDebugConsole (0x2a398) to +0x4abd1; Game::Start/StartDebug copy it into Game+0x269d0 +Manager 0x4abe4 ANM2 _buttonsSprite 00952410 Manager::Init ANM2::Load(this+0x4abe4,"gfx/ui/Buttons.anm2") +Manager 0x4acf8 ANM2 _platformIconsSprite 00952410 Manager::Init ANM2::Load(this+0x4acf8,"gfx/ui/PlatformIcons.anm2") (new, not in REPENTOGON) +Manager 0x4ae28 Font _font1_TeamMeatEx10 00951920 load_fonts Font::Load(this+0x4ae28,"font/TeamMeatEx/TeamMeatEx10.fnt") +Manager 0x4ae74 Font _font2_TeamMeatEx12 00951920 load_fonts loads TeamMeatEx12.fnt into this+0x4ae74 +Manager 0x4aec0 Font _font3_TeamMeatEx16 00951920 load_fonts loads TeamMeatEx16.fnt into this+0x4aec0 +Manager 0x4af0c Font _font4_terminus 00952df0 load_configs loads "font/terminus.fnt" into this+0x4af0c +Manager 0x4af58 Font _font5_terminus8 00952df0 load_configs loads "font/terminus8.fnt" into this+0x4af58 +Manager 0x4afa4 Font _font6_PFTempestaSevenCondensed 00952df0 load_configs loads "font/PFTempestaSevenCondensed.fnt" into this+0x4afa4 +Manager 0x4aff0 Font _font7_Upheaval 00951920 load_fonts unload/load Upheaval into this+0x4aff0; ctor 9 Font ctors 00a1a640 at 0x4ae28 + n*0x4c +Manager 0x4b03c Font _font8_LuaMiniOutlined 00952df0 load_configs loads "font/LuaMiniOutlined.fnt" into this+0x4b03c +Manager 0x4b088 Font _font9_PFTempestaSevenCondensedAgain 00951920 load_fonts reloads PFTempestaSevenCondensed into this+0x4b088 (9th Font ctor) +Manager 0x4b130 bool _starting 00958aa0 StartNewGame sets 1; 009595e0 IsGameplayInputActive tests it with _networkPlay +Manager 0x4b131 bool _rerunAvailable 00958aa0 StartNewGame clears word at 0x4b131; 00959720 start dispatcher branches on it then clears it (rerun path) +Manager 0x4b132 bool _startingFromRerun 00958aa0 StartNewGame clears (word at 0x4b131); 00959720 start dispatcher tests and clears it +Manager 0x4b13c Seeds _startSeeds 00950610 ctor Seeds::constructor(this+0x4b13c); 00959720 Seeds::construct_from_copy(local, this+0x4b13c) before starting the game +Manager 0x4b19c bool _debugStart 00958aa0 StartNewGame clears; 00959720 dispatcher tests it to choose start args; Menu_Game::Update 00981140 clears +Manager 0x4b1c0 DailyChallenge _dailyChallenge 00958c40 DailyChallenge::Init(ECX=g_Manager+0x4b1c0); StartNewGame zeroes +0/+4/+8(byte)/+0xc = _id/_seed/_isPractice/_specialDailyId; ctor ChallengeParam ctor at +0x10 +Manager 0x4b274 bool _networkPlay 00958aa0 StartNewGame clears; 009595e0 IsGameplayInputActive: starting && networkPlay; 00959720 dispatcher tests it first +Manager 0x4b2a8 ANM2 _cursorSprite 00952410 Manager::Init ANM2::Load(this+0x4b2a8,"gfx/ui/cursor.anm2") +Manager 0x4b3d8 NetplayManager _netplayManager 00417920 getter returns this+0x4b3d8; 006d8e10 is_local_player_owned: ECX=g_Manager+0x4b3d8 -> NetplayManager::IsIdxLocalPlayer; ctor calls 00906260 on it (misnamed SaveSlotManager::constructor) +PlayerManager 0x0 vector_EntityPlayerPtr _playerList 009b92c0 PlayerManager::GetPlayer indexes *this..this[1] (>>2), logs "There are no players"; IsCoopPlay/GetRandomPlayer iterate it +PlayerManager 0xb8 RNG _rng 006f1020 Game::constructor (PM at Game+0x1baa8): RNG default init (seed 0xaa17414f, shifts 5,9,7) at PM+0xb8, esauJr[4] zeroed at PM+0x80 as in REPENTOGON; 006f9000 Game::store_game_state saves its seed (Game+0x1bb60) +ItemPool 0x654 RNG _itemPoolRNG 00734f30 ItemPool::Init stores seed param at this+0x654 and steps it; 00735910 shuffle_pools MTRNG::Init(this+0x654 seed); 007367d0 StoreGameState saves it +ItemPool 0x67c vector_bool _removedCollectibles 00733ff0 Lua RemoveCollectible: bit test/set in *(this+0x67c), bound *(this+0x688) (vector size); 007340b0 ResetCollectible clears bit +ItemPool 0x68c vector_bool _roomBlacklistedCollectibles 005b14b0 Lua AddRoomBlacklist sets bit in *(this+0x68c); 00736f90 ResetRoomBlacklist clears bits up to size *(this+0x698) +ItemPool 0x794 vector_TrinketPoolItem _trinketPoolItems 00734130 Lua RemoveTrinket / 00736a90 ResetTrinkets walk *(this+0x794)..*(this+0x798) stride 8 (id,+4 available,+5 unlocked) +ItemPool 0x7a0 int _numAvailableTrinkets 00734130 RemoveTrinket decrements this+0x7a0; 00736a90 ResetTrinkets recounts it, warns "trinket pool is empty" when 0 +Seeds 0x0 bool _isCustomRun 006b83d0 (Lua Seeds:IsCustomRun binding, misnamed Room::IsInitialized) returns *(byte*)this; 009e9290 ctor / 009e9bc0 Reset clear byte 0 +Seeds 0x4 unsigned int _gameStartSeed 00436140 Lua GetStartSeed returns [this+4] ("Game Start Seed was not set" if 0); 009eb880 set_start_seed writes it; 0085e180 ClearStartSeed zeroes it +Seeds 0x8 RNG _rng 006ef890 Lua GetNextSeed steps xorshift seed this+8 with shifts +0xc/+0x10/+0x14; ctor inits 0xaa17414f,5,9,7; set_start_seed seeds it from start seed +Seeds 0x58 int _seedEffectsCount 0085e1b0 Lua CountSeedEffects returns this+0x58; ClearSeedEffects zeroes it +Seeds 0x54 void* _seedEffects std::set head ptr (new vs REPENTOGON): 009e9290 ctor allocs 0x14-byte tree head at this+0x54; 00685e70 ClearSeedEffects erases tree this+0x54 then count +0x58=0 +TemporaryEffects 0x4 vector_TemporaryEffect _effects 007537a0 Lua GetEffectsList returns this+4; 00930220 AddEffect/009303f0 RemoveEffect walk this[1]..this[2] stride 0x10, push/erase +TemporaryEffects 0x10 bool _shouldEvaluateCache 00930220 AddEffect / 009303f0 RemoveEffect / 009306c0 ClearEffects set byte this+0x10 = 1 after any change +TemporaryEffects 0x11 bool _disabled 00930220 AddEffect, 009303f0 RemoveEffect, 00930680 HasNullEffect, 009306c0 ClearEffects all bail out if byte this+0x11 != 0 +TemporaryEffects 0x14 Entity_Player* _player 00930220 AddEffect: Entity_Player::AddCostume(this[5],...) ; RemoveEffect: this[5]==0 -> Room::TriggerEffectRemoved else Entity_Player::trigger_collectible_effect_removed +TemporaryEffects 0x0 unsigned int _cacheFlags new vs REPENTOGON: 00930220 AddEffect / 009303f0 RemoveEffect OR ItemConfig_Item cacheFlags (+0x54) into *this +ItemConfig_Card 0x68 ModEntry* modEntry 0072cff0 ItemConfig::load_pocketitems_xml: new(0x70) card, [card+0x68]=ModEntry* param (0072e174); null -> vanilla card table, else appended to modded list +ItemConfig_Card 0x6c ANM2* moddedCardFront 0072cff0 load_pocketitems_xml: card+0x6c=0 in ctor, then =&ModEntry+0x9a0 (0072e1af) when the mod has a card-front sprite (ModEntry+0xaa9) +ANM2 0x0 std_string _filename ANM2::Load assigns, AnmCache::AddRef/RemoveRef(this) 0x40e110/0x40e2b0, GetFilename 0x4312e0 (src/anm2/docs/cache_load_decomp.md s2) +ANM2 0x18 std_string _animDefaultName AnmCache::Load 0x40db90 assigns default anim name; GetDefaultAnimationName 0x4a5cf0 returns &+0x18 +ANM2 0x30 AnimationState _animState ctor 0x4074c0 sets main.owner=this; dtor 0x408170; copy 0x4086e0 +ANM2 0x50 AnimationState _overlayAnimState RemoveOverlay 0x40ac60 = overlay(+0x50).SetAnimationData(nullptr) +ANM2 0x70 bool _overlayRenderFirst SetOverlayRenderPriority 0x431300; Render 0x40a0d0 draws overlay first if set; Reset 0x407f10 +ANM2 0x74 AnimationData* _animData AnmCache::Load 0x40db90 copies cache animations ptr +ANM2 0x78 int _animCount AnmCache::Load 0x40db90; PlayRandom 0x40a2b0 rand % +0x78 +ANM2 0x7c LayerState* _layerState AnmCache::Load 0x40db90 new LayerState[cnt] (stride 0xa0); ctor 0x4074c0 nulls +ANM2 0x80 unsigned int _layerCount AnmCache::Load 0x40db90; GetLayerCount 0x440e40 +ANM2 0x84 std_string* _nullLayerNames AnmCache::Load 0x40db90 copies cache nullNames +ANM2 0x88 unsigned int _numNullLayers AnmCache::Load 0x40db90 copies cache nullCount +ANM2 0x8c std_string* _eventNames AnmCache::Load 0x40db90 copies cache eventNames +ANM2 0x90 unsigned int _numEvents AnmCache::Load 0x40db90 copies cache eventCount +ANM2 0x94 Vector _offset Lua Sprite.Offset get 0x49cb40 (&+0x94) / set 0x456340; Reset 0x407f10 = Vector::Zero +ANM2 0x9c Vector _scale Lua Sprite.Scale get 0x417200 / set 0x420170; Reset = Vector::One +ANM2 0xa4 float _rotation Lua Sprite.Rotation get 0x417210 / set 0x43ee80 +ANM2 0xa8 ColorMod _color Lua Sprite.Color get 0x407410 / set 0x4073d0 +ANM2 0xd4 ColorMod _championColor second ColorMod: ctor 0x4074c0, Reset 0x407f10 (alpha 0), copied/swapped like Color +ANM2 0x100 bool _flipX Lua FlipX get 0x407420 / set 0x435c60 +ANM2 0x101 bool _flipY Lua FlipY get 0x407430 / set 0x505b50 +ANM2 0x104 float _playbackSpeed Lua PlaybackSpeed get 0x456360 / set 0x440e50; Reset = 1.0 +ANM2 0x109 bool _loaded IsLoaded 0x420160; Render 0x40a0d0 returns early if 0 +ANM2 0x10c int _shadowLayerIndex not in REPENTOGON: Reset 0x407f10 = -1; AnmCache::Load 0x40db90 sets it to the layer named "shadow" +ANM2 0x110 unsigned int _bitflags renderFlags: OR-ed with LayerState+0x8c in Render (0x4091eb, 0x409a63, 0x409cc0); Load sets 0x400/0x800 +AnimationState 0x0 ANM2* _animation ANM2 ctor 0x4074c0 sets owner=this; copy ctor 0x4086e0(owner, src) +AnimationState 0x4 AnimationData* _animData SetAnimationData 0x408830 stores arg +AnimationState 0x8 int* _layerFrames SetAnimationData 0x408830 allocates anim->layerAnimCount ints +AnimationState 0xc int* _nullLayerFrames SetAnimationData 0x408830 allocates anim->nullAnimCount ints +AnimationState 0x10 float _animFrame SetAnimationData 0x408830 = -1.0f; SetFrame 0x408e00 +AnimationState 0x14 bool _isPlaying Update 0x409030 / ANM2::IsPlaying 0x40a4d0 +AnimationState 0x18 int _currentlyTriggeredEvents IsEventTriggered 0x40add0 tests bit +AnimationState 0x1c int _previouslyTriggeredEvents WasEventTriggered 0x40ae70 tests bit +HUD 0x3778 ANM2 _chargeBarSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_chargebar.anm2; ctor 006f2060 (PlayerHUD 0x6dc x8 + 2 Font = 0x20 below REPENTOGON) +HUD 0x388c ANM2 _chargeBarSmallSprite not in REPENTOGON (unnamed gap): HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_chargebar_small.anm2 +HUD 0x39a0 ANM2 _heartsSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_hearts.anm2 +HUD 0x3ab4 ANM2 _pickupHUDSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/hudpickups.anm2 +HUD 0x3bc8 ANM2 _cardsPillsSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_cardspills.anm2 +HUD 0x3cdc HUD_Message _messageMain ctor 006f2060 HUD_Message ctor 008405b0 right after cardsPills; FUN_009a27d0 resets its streak ANM2 (+0x20=0x3cfc) and _showing (+8=0x3ce4) +HUD 0x3ed0 HUD_Message _messageStack[6] ctor 006f2060 eh-vector-ctor(0x3ed0, 500, 6, 008405b0); HUD::Update 009a2990 ticks 6 +HUD 0x4a88 HUD_Message _messagePlayerHUD[4] ctor 006f2060 eh-vector-ctor(0x4a88, 500, 4, 008405b0); HUD::Update 009a2990 ticks 4 +HUD 0x5258 ANM2 _fortuneSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_FortunePaper.anm2; HUD::Update 009a2990 SlideIn/SlideOut events +HUD 0x5374 ANM2 _statsSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/hudstats.anm2 +HUD 0x5490 float _bossHPBarFill boss bar render FUN_009a7c90: if (0 <= +0x5490) width = +0x5490 * 110.0; HUD reset FUN_009a19a0 = -1.0f +HUD 0x54cd bool _isGraphicsLoaded not in REPENTOGON: HUD::LoadGraphics 009a1a30 sets 1 at end and loads fonts only if 0; FUN_009a1970 clears it before reloading +HUD 0x54d0 int _hudRefreshType FUN_009a6110(type) (HUD refresh request, called by PlayerHUD::Update 00842230 with 1) sets +0x54d0=type, +0x54d8=2; HUD::Update 009a2990 zeroes it when countdown ends +HUD 0x54d8 int _hudRefreshCountdown HUD::Update 009a2990 decrements it, zeroes +0x54d0 at <1; FUN_009a6110 sets 2 +HUD 0x54dc ANM2 _coopMenuSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/coop menu.anm2 (shift -0x18 from here) +HUD 0x55f0 ANM2 _inventorySprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_inventory.anm2 +HUD 0x5704 ANM2 _craftingTableSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_crafting.anm2 +HUD 0x5818 ANM2 _poopSpellsSprite HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_poops.anm2 +HUD 0x59a4 StatHUD _statHUD HUD::Render 009a3eb0: LEA ECX,[EDI+0x59a4] then CALL StatHUD::Render 0084c2c0 (009a568c); its first member ANM2 loads gfx/ui/hudstats2.anm2 (LoadGraphics) +HUD 0x5c54 HistoryHUD _historyHUD HUD::Render 009a3eb0: LEA ECX,[EDI+0x5c54] then CALL 0083ac20 (item-history render); ctor 006f2060 eh-vector-ctor(0x5c54, 0x14, 2) +PlayerHUD 0x0 Entity_Player* _player HUD::FlashChargeBar 009a2bc0 / InvalidateActiveItem 009a2c00 match *(PlayerHUD+0)==player, stride 0x6dc +PlayerHUD 0x4 HUD* _HUD HUD reset FUN_009a19a0 writes PlayerHUD[i]+4 = HUD this +PlayerHUD 0x8 short _playerHudIndex HUD reset FUN_009a19a0 writes (short)i to PlayerHUD[i]+8 +PlayerHUD 0xc int8_t _redHeartFlashCountdown PlayerHUD::UpdateHearts 00841e20 flashes RedHeartFull/CoinHeart/RottenHeart when >0; PlayerHUD::Update 00842230 decrements +PlayerHUD 0xd int8_t _soulHeartFlashCountdown PlayerHUD::UpdateHearts 00841e20 flashes BlueHeart* when >0; PlayerHUD::Update 00842230 decrements +PlayerHUD 0xe int8_t _goldHeartFlashCountdown PlayerHUD::RenderHearts 00843df0 tests it with heart gold flag; PlayerHUD::Update 00842230 decrements; reset 00841cf0 zeroes +PlayerHUD 0x190 PlayerHUDActiveItem _activeItem[4] HUD::InvalidateActiveItem 009a2c00 zeroes PlayerHUD+0x190+i*0x1c; FlashChargeBar 009a2bc0 writes +0x1a8+i*0x1c = 8 (same as REPENTOGON) +Minimap 0x0 int _state Minimap update 0098dba0 (named Game::update_map_input, this=Minimap) sets +0 to 0/1/2 by map-button hold; Minimap::Init 0098d560 zeroes +Minimap 0x4 bool _unkBool Minimap update 0098dba0 toggles byte +4 with state (set 1 with state 2, 0 with state 0); Init 0098d560 zeroes +Minimap 0x8 uint32_t _holdTime Minimap update 0098dba0: ++ while ACTION_MAP held, ==10 triggers, <9 checks, reset 0; Init zeroes +Minimap 0xc float _unkFloat Minimap::Init 0098d560 = 1.0f; Minimap::Render 0098e4d0 uses (w - w * +0xc) * 0.5 (display scale) +Minimap 0x18 MinimapConfig _config[2] Minimap::Init 0098d560 loads gfx/ui/minimap1.anm2 at +0x18 and minimap2.anm2 at +0x178 (stride 0x160), writes config ptr/sizes per element +Minimap 0x2d8 ANM2 _itemIconsSprite Minimap::Init 0098d560 loads gfx/ui/mapitemicons.anm2 at +0x2d8 +Minimap 0x3ec ANM2 _hudPickupSprite Minimap::Init 0098d560 loads gfx/ui/hudpickups.anm2 at +0x3ec +Minimap 0x500 ANM2 _iconsSprite Minimap::Init 0098d560 loads gfx/ui/minimap_icons.anm2 at +0x500 +Minimap 0x61c int _shakeDuration Minimap update 0098dba0: if (+0x61c > 0) decrement and scale shake by it/10; Init zeroes +Minimap 0x620 Vector _shakeOffset Minimap update 0098dba0 writes +0x620/+0x624 from shake; Render 0098e4d0 adds them to the draw position; Init = Vector::Zero +Font 0x0 bool _isLoaded Font::Load 00a1a730 sets *this=1 on success; Font::Unload 00a1ad90 and ctor 00a1a640 clear it +Font 0x4 int16_t _fontSize Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x6 uint8_t _infoBitField Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x7 uint8_t _charSet Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x8 uint16_t _stretchH Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xa uint8_t _aa Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xb uint8_t _paddingUp Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xc uint8_t _paddingRight Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xd uint8_t _paddingDown Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xe uint8_t _paddingLeft Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0xf uint8_t _spacingHoriz Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x10 uint8_t _spacingVert Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x11 uint8_t _outline Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here +Font 0x14 uint16_t _lineHeight Font::GetLineHeight 00a1aea0 returns u16 +0x14; Font::Load 00a1a730 block 2 read into +0x14 +Font 0x16 uint16_t _base Font::GetBaselineHeight 00a1aeb0 returns u16 +0x16; Font::Load block 2 +Font 0x18 uint16_t _scaleW Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x1a uint16_t _scaleH Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x1e uint8_t _commonBitField Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x1f uint8_t _alphaChannel Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x20 uint8_t _redChannel Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x21 uint8_t _greenChannel Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x22 uint8_t _blueChannel Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here +Font 0x1c uint16_t _pages Font::Load 00a1a730 block 2 into +0x14; then uses u16 +0x1c as page count (copied to +0x38, sizes page texture array) +Font 0x24 uint32_t _numChars Font::Load 00a1a730 block 4: +0x24 = blockSize / 0x14; Unload/ctor zero +Font 0x28 FontCharBlock* _chars Font::Load 00a1a730 allocates and reads +0x24 records of 0x14 into +0x28; Unload 00a1ad90 frees it +Font 0x2c vector_KerningPair _kerningPairs Font::Load 00a1a730 block 5: std::vector begin/end/cap at +0x2c/+0x30/+0x34, 0x10-byte pairs (reads 4,4,2 per pair); only 0xc bytes, not 0x14 as REPENTOGON spacing implies +Font 0x38 uint32_t _numPages not in REPENTOGON: Font::Load 00a1a730 sets +0x38 = pages(+0x1c) and loops page textures to it; Unload zeroes +Font 0x3c TexturePtr* _pageTextures not in REPENTOGON: Font::Load 00a1a730 new[] of +0x38 8-byte texture ptrs; Unload 00a1ad90 eh-vector-dtor(8, 0040c440) + delete +Font 0x40 std_map_CharBlocks _charsBlock ctor 00a1a640 allocates map head at +0x40 (size +0x44); Font::SetMissingCharacter 00a1b3b0 _Find_lower_bound in it; Unload erases tree +Font 0x48 int _missingCharacter Font::SetMissingCharacter 00a1b3b0 writes map value or -1; ctor 00a1a640 = -1 +OptionsConfig 0x0 std_string _optionsIniFilePath OptionsConfig::Save 00924d10 opens this std::string (cap check +0x14) as the ini path +OptionsConfig 0x18 float _musicVolume OptionsConfig::Save 00924d10 "MusicVolume=%.4f"; Load 00924440 stores it; Lua Options::MusicVolume 00896810 reads Manager+0x2a354 +OptionsConfig 0x1c float _sfxVolume Save 00924d10 "SFXVolume="; Load 00924440; Lua Options::SFXVolume 008969e0 +OptionsConfig 0x20 float _mapOpacity Save 00924d10 "MapOpacity="; Load 00924440; Lua Options::MapOpacity 00896a50 +OptionsConfig 0x24 bool _isFullscreen Save 00924d10 "Fullscreen="; Lua Options::Fullscreen 00896ab0 +OptionsConfig 0x25 bool _filterEnabled Save 00924d10 "Filter="; Load 00924440; Lua Options::Filter 00896c10 +OptionsConfig 0x28 float _gamma Save 00924d10 "Gamma="; Load 00924440; Lua Options::Gamma 00896c40 +OptionsConfig 0x2c float _exposure Save 00924d10 "Exposure="; Load 00924440 stores "Exposure" +OptionsConfig 0x30 float _brightness Load 00924440 stores the "Brightness" key here +OptionsConfig 0x34 float _contrast Load 00924440 stores the "Contrast" key here +OptionsConfig 0x38 bool _controlHotplugEnabled Save 00924d10 "ControllerHotplug="; Load 00924440 +OptionsConfig 0x3c int _popupsMode Save 00924d10 "PopUps="; Load 00924440; Lua Options::DisplayPopups 00896ca0 +OptionsConfig 0x40 bool _enableFoundHUD Save 00924d10 "FoundHUD="; Load 00924440; Lua Options::FoundHUD 00896f20 +OptionsConfig 0x44 int _cameraStyle Save 00924d10 "CameraStyle="; Lua Options::CameraStyle 00896e20 +OptionsConfig 0x48 int _historyHudMode Save 00924d10 "ShowRecentItems="; Lua Options::ExtraHUDStyle 00896e70 +OptionsConfig 0x4c float _hudOffset Save 00924d10 "HudOffset="; Lua Options::HUDOffset 00896ec0 +OptionsConfig 0x50 bool _tryImportSave Save 00924d10 "TryImportSave="; Load 00924440 +OptionsConfig 0x51 bool _enableMods Save 00924d10 "EnableMods="; Load 00924440 +OptionsConfig 0x52 bool _enableRumble Save 00924d10 "RumbleEnabled="; Lua Options::RumbleEnabled 00896f50 +OptionsConfig 0x53 bool _enableChargeBars Save 00924d10 "ChargeBars="; Lua Options::ChargeBars 00896f80 +OptionsConfig 0x54 bool _enableBulletVisibility Save 00924d10 "BulletVisibility="; Lua Options::BulletVisibility 00896fb0 +OptionsConfig 0x55 bool _enableAimLock Save 00924d10 "AimLock="; Load 00924440 +OptionsConfig 0x58 int _touchMode Save 00924d10 "TouchMode="; Load 00924440 +OptionsConfig 0x5c bool _enableDebugConsole Save 00924d10 "EnableDebugConsole="; Lua Options::DebugConsoleEnabled 00897360 +OptionsConfig 0x60 int _consoleFont Save 00924d10 "ConsoleFont="; Load 00924440; Lua Options::ConsoleFont 008972a0 (REP 0x7c) +OptionsConfig 0x64 bool _enableFadedConsoleDisplay Save 00924d10 "FadedConsoleDisplay="; Lua Options::FadedConsoleDisplay 008972d0 (REP 0x80) +OptionsConfig 0x65 bool _enableSaveCommandHistory Save 00924d10 "SaveCommandHistory="; Lua Options::SaveCommandHistory 00897300 (REP 0x81) +OptionsConfig 0x66 bool _enableBorderlessFullscreen Save 00924d10 "UseExclusiveFullscreen=" (stored flag is exclusive); Lua Options::UseBorderlessFullscreen 00897330 returns !this[0x66] (REP 0x82) +OptionsConfig 0x67 bool _enableVSync Save 00924d10 "VSync="; Lua Options::VSync 00896fe0 (REP 0x5d) +OptionsConfig 0x68 bool _enableSteamCloud Save 00924d10 "SteamCloud="; Load 00924440 (REP 0x5e) +OptionsConfig 0x69 bool _enablePauseOnFocusLost Save 00924d10 "PauseOnFocusLost="; Lua Options::PauseOnFocusLost 00897010 (REP 0x5f) +OptionsConfig 0x6a bool _enableMouseControl Save 00924d10 "MouseControl="; Lua Options::MouseControl 00897040 (REP 0x60) +OptionsConfig 0x6c int _maxScale Save 00924d10 "MaxScale="; Lua Options::MaxScale 008970d0 (REP 0x64) +OptionsConfig 0x70 int _maxRenderScale Save 00924d10 "MaxRenderScale="; Lua Options::MaxRenderScale 00897250 (REP 0x68) +OptionsConfig 0x74 int _windowWidth Save 00924d10 "WindowWidth="; Load 00924440 (REP 0x6c) +OptionsConfig 0x78 int _windowHeight Save 00924d10 "WindowHeight="; Load 00924440 (REP 0x70) +OptionsConfig 0x7c int _windowPosX Save 00924d10 "WindowPosX="; Load 00924440 (REP 0x74) +OptionsConfig 0x80 int _windowPosY Save 00924d10 "WindowPosY="; Load 00924440 (REP 0x78) +OptionsConfig 0x84 bool _enableInterpolation Manager::Update 00954cd0 skips every other frame when this is 0; EntityList::Update 004186c0 branches on it; sits between WindowPosY 0x80 and EpicOverlay 0x85 (REP 0x83) +OptionsConfig 0x85 bool _enableEpicOverlay new: Save 00924d10 "EnableEpicOverlay="; Load 00924440 +OptionsConfig 0x86 bool _enableColorCorrection FUN_00951730 creates "Color Correction Surface" only if set; Manager::Render 009555c0 renders color correction when set (REP 0x84) +OptionsConfig 0x87 bool _enableLighting init_room_render_surfaces 007ea630 creates "Light Overlay Surface" only if set (REP 0x85) +OptionsConfig 0x88 bool _enableShockwave init_room_render_surfaces 007ea630 creates "Shockwave Surface" only if set (REP 0x86) +OptionsConfig 0x89 bool _enableCaustics init_room_render_surfaces 007ea630 loads gfx/backdrop/caustics.png only if set (REP 0x87) +OptionsConfig 0x8a bool _enableFilter FUN_00951730 makes the HQ4X surface only if set; Manager::Render 009555c0 uses it with _filterEnabled 0x25 (REP 0x88) +OptionsConfig 0x8b bool _enablePixelation Game::Render 006fbc10 gates the pixelation effect (Game +0x1ba78 state 2/3) on it (REP 0x89) +OptionsConfig 0x8c bool _enableBloom Game::create_render_surfaces 006f37e0 creates "Bloom Surface" only if set (REP 0x8a) +OptionsConfig 0x8d bool _enableWaterSurface Room::render_water 00820fd0 needs Room _waterAmount>0 and this (REP 0x8b) +OptionsConfig 0x8e bool _getsSetToEnableWaterSurface init_room_render_surfaces 007ea630 creates "Water Overlay Surface" and "Heat Wave Surface" only if set (REP 0x8c) +OptionsConfig 0x8f bool _enableColorModifier Game::Render 006fbc10 and MenuManager::Render 0098a040 apply the color-modifier pass only if set (REP 0x8d) +OptionsConfig 0x90 bool _bossHpOnBottom Save 00924d10 "BossHpOnBottom="; Load 00924440 (REP 0x8e) +OptionsConfig 0x94 int _announcerVoiceMode Save 00924d10 "AnnouncerVoiceMode="; Lua Options::AnnouncerVoiceMode 00897080 (REP 0x90) +OptionsConfig 0x98 int _jacobEsauControls Save 00924d10 "JacobEsauControls="; Lua Options::JacobEsauControls 00897390 (REP 0x94) +OptionsConfig 0x9c bool _ascentVoiceover Save 00924d10 "AscentVoiceOver="; Load 00924440 (REP 0x98) +OptionsConfig 0xa0 int _onlineHud Save 00924d10 "OnlineHud="; Load 00924440 (REP 0x9c) +OptionsConfig 0xa4 bool _streamerMode Save 00924d10 "StreamerMode="; Load 00924440 (REP 0xa0) +OptionsConfig 0xa8 int _onlinePlayerVolume Save 00924d10 "OnlinePlayerVolume="; Load 00924440 (REP 0xa4) +OptionsConfig 0xac int _onlinePlayerOpacity Save 00924d10 "OnlinePlayerOpacity="; Load 00924440 (REP 0xa8) +OptionsConfig 0xb0 bool _onlineChatEnabled Save 00924d10 "OnlineChatEnabled="; Load 00924440 (REP 0xac) +OptionsConfig 0xb1 bool _onlineFilterEnabled Save 00924d10 "OnlineChatFilterEnabled="; Load 00924440 (REP 0xad) +OptionsConfig 0xb4 int _onlineColorSet Save 00924d10 "MultiplayerColorSet="; Load 00924440 (REP 0xb0) +OptionsConfig 0xb8 int _onlineInputDelay Save 00924d10 "OnlineInputDelay="; Load 00924440 (REP 0xb4) +OptionsConfig 0xbc bool _itemInfoDisplayEnabled new: Save 00924d10 "ItemInfoDisplayEnabled="; Load 00924440 +OptionsConfig 0xc0 int _eosCrossplay new: Save 00924d10 "EosCrossplay="; Load 00924440; compared ==2/3 in online code (Manager+0x2a3fc) +OptionsConfig 0xc4 bool _acceptedPublicBeta_VERSION Save 00924d10 "AcceptedPublicBeta_%s="; Load 00924440; disclaimer popup code (Manager+0x2a400) sets it to 1 (REP 0xb8) +OptionsConfig 0xc5 bool _acceptedDataCollectionDisclaimer Save 00924d10 "AcceptedDataCollectionDisclaimer="; Load 00924440; disclaimer code (Manager+0x2a401) sets it (REP 0xba) +Menu_Character 0x0 int Status Menu_Character::Reset 00948fc0 sets 0; Status==1 picks the seeds view position, handle_input 0094c580 tests *this==0 +Menu_Character 0x5 bool IsCharacterUnlocked Menu_Character::UpdateRotations 0094d500 sets it to IsCharacterAvailable(SelectedCharacterID); Reset sets 1 +Menu_Character 0x6 bool IsInputPossible UpdateRotations 0094d500 clears it while the wheel turns and sets it when it settles; Reset sets 1 +Menu_Character 0x8 int Difficulty Reset 00948fc0 copies Manager+0xf20 (difficulty); Update 00949c20 switches on it +Menu_Character 0xc int CooldownWhenHoldDirection handle_input 0094c580 decrements it and reloads 10 on left/right; Reset sets 10 +Menu_Character 0x10 int SelectedCharacterID Reset 00948fc0 sets 1; compared to 0x12 (entry count) and indexes g_MenuCharacterEntries[sel + menu*0x12] +Menu_Character 0x18 float _randomRotationVelocity UpdateRotations 0094d500 lerps it toward the random spin target; Reset sets 0 +Menu_Character 0x20 int _randomRotationAmount UpdateRotations 0094d500 uses (amount-60)/-60 as spin progress +Menu_Character 0x24 float _characterWheelDepth written by Reset 00948fc0, read by UpdateRotations 0094d500 as (depth-1)*t+1 +Menu_Character 0x28 float _scrollSpeed Reset sets 360/numChars/(x*50); UpdateRotations reads it +Menu_Character 0x2c float _characterWheelWidth written by Reset 00948fc0, read by UpdateRotations 0094d500 +Menu_Character 0x38 float _PositionX ctor 00946e70 zeroes it right before _BigCharPageSprite 0x40 +Menu_Character 0x3c float _PositionY ctor 00946e70 zeroes it right before _BigCharPageSprite 0x40 +Menu_Character 0x40 ANM2 _BigCharPageSprite ctor 00946e70 ANM2::constructor at this+0x40 +Menu_Character 0x154 ANM2 _DifficultyOverlaySprite ctor 00946e70 ANM2 at +0x154 +Menu_Character 0x268 ANM2 _GreedDecoOverlaySprite ctor 00946e70 ANM2 at +0x268 +Menu_Character 0x37c ANM2 _CharacterMenuBGSprite ctor 00946e70 ANM2 at +0x37c +Menu_Character 0x490 CompletionWidget _completionWidget ctor 00946e70 builds a sub-object at +0x490 (its ANM2 at +0x494) +Menu_Character 0x5ac ANM2 _DifficultyPageSprite ctor 00946e70 ANM2 at +0x5ac; Reset 00948fc0 plays "Unlocked"/"AB+" on it +Menu_Character 0x6c0 ANM2 _SeedPageSprite ctor 00946e70 ANM2 at +0x6c0 +Menu_Character 0x7d4 ANM2 _WinStreakPageSprite ctor 00946e70 ANM2 at +0x7d4 +Menu_Character 0x8e8 ANM2 _EastereggPageSprite ctor 00946e70 ANM2 at +0x8e8 +Menu_Character 0xa04 ANM2 _SeedUnlockPageSprite ctor 00946e70 ANM2 at +0xa04 +Menu_Character 0xb18 int _numCharacters Reset 00948fc0 counts available g_MenuCharacterEntries into it +Menu_Character 0xb1c int _numCharacters_MINUS_SelectedEntry Reset sets numCharacters-1; UpdateRotations 0094d500 angle = 360/n * this +Menu_Character 0xb20 ANM2 _CharacterPortraitsSprite ctor 00946e70 ANM2 at +0xb20 +Menu_Character 0xc34 float _horizontalScrollPosition Reset 00948fc0 = (n-1)*360/numCharacters; UpdateRotations eases it +Menu_Character 0xc50 ANM2 _SeedEntrySprite ctor 00946e70 ANM2 at +0xc50; Update checks Status==1 and its _loaded +Menu_Character 0xdb4 int _characterMenuShown selects CharacterMenu/CharacterPortraits anm2 path pair [this*3] and entries [sel+this*0x12] (normal/tainted) +Menu_Character 0xdb8 ANM2 _PageSwapWidgetSprite ctor 00946e70 ANM2 at +0xdb8 +Menu_Character 0xecc ANM2 _TaintedMenuBGDecoSprite ctor 00946e70 ANM2 at +0xecc (size ends 0xfe8, SpecialSeeds follows at MenuManager+0x251c) +Menu_Stats 0x0 int _countTotalAchievements Menu_Stats::Update 009ecbc0 zeroes it then counts unlocked achievements (0x282 loop) +Menu_Stats 0x4 int _countItemsInCollection Menu_Stats::Update 009ecbc0 counts touched collectibles (0x2dd loop over Manager+0xafc) +Menu_Stats 0x8 int _countDeaths Menu_Stats::Update 009ecbc0 copies Manager+0x2f8 (deaths stat) +Menu_Stats 0xc int _countMomKills Menu_Stats::Update 009ecbc0 copies Manager+0x2d4 (mom kills stat) +Menu_Stats 0x10 int _statsMenuCurrentSelection FUN_009ede60 (stats-page update called by Update when the achievement screen is closed) reads/writes it 11x +Menu_Stats 0x14 float _PositionX Menu_Stats::Render 009ecdd0 adds it to the draw position; ctor (MenuManager::constructor 00986450) zeroes it +Menu_Stats 0x18 float _PositionY Menu_Stats::Render 009ecdd0 adds it to the draw position; ctor zeroes it +Menu_Stats 0x1c ANM2 _StatsMenuSprite MenuManager::constructor 00986450 ANM2 at Stats+0x1c; Update 009ecbc0 animates it +Menu_Stats 0x130 bool _isAchievementScreenVisible Menu_Stats::Update 009ecbc0 calls update_achievements when set, else FUN_009ede60 +Menu_Stats 0x134 float _achievementScrollInPosition update_achievements 009ee2a0 sets 275.0 then slides it down by 2 to 240 +Menu_Stats 0x138 float _achievementScrollThruListPosition update_achievements 009ee2a0 advances it by 2*_scrollSpeed and resets it to 0 per step +Menu_Stats 0x13c int _selectedAchievmentId update_achievements 009ee2a0 steps it +-1 and wraps it at _maxAchievementID; indexes _achievementIDList +Menu_Stats 0x140 int _IconIDtoUseForAchievementID[642] update_achievements 009ee2a0 reads [this+i*4+0x140]; 642 entries now (achievementsSprite moved to 0xb48) +Menu_Stats 0xb48 ANM2 _achievementsSprite MenuManager::constructor 00986450 ANM2 at Stats+0xb48; update_achievements uses it 16x (REP 0xb44) +Menu_Stats 0xc5c ANM2 _achievementMiniSprite1 MenuManager::constructor 00986450 eh_vector_constructor of 11 ANM2 at Stats+0xc5c (9 minis + 2 cursors) (REP 0xc58) +Menu_Stats 0xd70 ANM2 _achievementMiniSprite2 2nd of the 11-ANM2 run at +0xc5c (ctor 00986450); FUN_009ede60 uses it +Menu_Stats 0xe84 ANM2 _achievementMiniSprite3 3rd of the 11-ANM2 run at +0xc5c (ctor 00986450) +Menu_Stats 0xf98 ANM2 _achievementMiniSprite4 4th of the 11-ANM2 run at +0xc5c (ctor 00986450) +Menu_Stats 0x10ac ANM2 _achievementMiniSprite5 5th of the 11-ANM2 run (ctor 00986450); update_achievements 009ee2a0 uses +0x10ac +Menu_Stats 0x11c0 ANM2 _achievementMiniSprite6 6th of the 11-ANM2 run at +0xc5c (ctor 00986450) +Menu_Stats 0x12d4 ANM2 _achievementMiniSprite7 7th of the 11-ANM2 run at +0xc5c (ctor 00986450) +Menu_Stats 0x13e8 ANM2 _achievementMiniSprite8 8th of the 11-ANM2 run (ctor 00986450); FUN_009ede60 uses +0x13e8 +Menu_Stats 0x14fc ANM2 _achievementMiniSprite9 9th of the 11-ANM2 run (ctor 00986450); FUN_009ede60 uses +0x14fc +Menu_Stats 0x1610 ANM2 _cursorLeftSprite 10th of the 11-ANM2 run (ctor 00986450); Render 009ecdd0 uses +0x1640/+0x1660 inside it +Menu_Stats 0x1724 ANM2 _cursorRightSprite 11th of the 11-ANM2 run (ctor 00986450); Render 009ecdd0 uses +0x1754/+0x1774 inside it +Menu_Stats 0x1838 AchievementOverlay_Entry _achievementOverlayEntries[642] ctor 00986450 eh_vector_constructor 0x282 x 0x34 at Stats+0x1838; Update 009ecbc0 tests [i*0x34+0x1838]==i (REP 0x1834[641]) +Menu_Stats 0x9aa0 int _achievementIDList[642] update_achievements 009ee2a0 and load_achievements_xml 009ed780 index [this+i*4+0x9aa0] (REP 0x9a68[641]) +Menu_Stats 0xa4a8 int _maxAchievementID load_achievements_xml 009ed780 fills it (13 refs); update_achievements wraps _selectedAchievmentId at it (REP 0xa46c) +Menu_Stats 0xa4ac int _holdInputTimer update_achievements 009ee2a0 counts held frames, accelerates past 0x3c/0xb4, resets to 0 (REP 0xa470) +Menu_Stats 0xa4b0 float _scrollSpeed update_achievements 009ee2a0 computes it from the hold timer and adds 2x it to the list position (REP 0xa474) +MenuManager 0x0 std_vector_uint _menuStateHistory new: FUN_0098ae20 (menu state push) appends the new menu id to the vector at +0/+4/+8 (begin/end/cap) before calling SetState FUN_0098aa30; ctor 00986450 zeroes all three +MenuManager 0xc bool _state REP int, only a byte here: SetState FUN_0098aa30 sets it to 1 on a menu change; MenuManager::Update 009897d0 eases _ViewPosition toward _viewPositionSet[_selectedMenuID] while set and clears it on arrival +MenuManager 0xd bool _fadeOutActive new: MenuManager::Update 009897d0 adds 0.025 to _fadeOutProgress each frame while set; Render 0098a040 draws the fade when set +MenuManager 0x10 float _fadeOutProgress MenuManager::Update 009897d0 += 0.025 while 0xd is set; Render 0098a040 uses it as the fade alpha +MenuManager 0x14 bool _fadeInActive REP int, only a byte here: Update 009897d0 subtracts 0.025 from _fadeInProgress while set; Render 0098a040 clears it once progress <= 0; FUN_00959d00 sets it after copying the fade color +MenuManager 0x18 float _fadeInProgress Update 009897d0 -= 0.025 while _fadeInActive; Render 0098a040 uses it as alpha and zeroes it at <= 0 +MenuManager 0x1c KColor _fadeInColor ctor 00986450 KColor::SetFromARGB(0xff000000) on this+0x1c; FUN_00959d00 copies a color into +0x1c..+0x2c; Render 0098a040 draws the fade-in with it +MenuManager 0x34 float _vingnetteIntensity Render 0098a040 eases it by 0.025 toward 0.5 when Menu_Character.Difficulty (+0x153c) is 1 or 3, else 0, and draws an overlay with that alpha +MenuManager 0x40 int _selectedMenuID SetState FUN_0098aa30 writes the new menu id here; Update 009897d0 and Render 0098a040 switch on it; ctor zeroes it +MenuManager 0x44 Vector _ViewPosition Update 009897d0 eases +0x44/+0x48 toward _viewPositionSet[_selectedMenuID]; Render 0098a040 adds it to sprite positions +MenuManager 0x4c ANM2 _MenuShadowSprite ctor 00986450 ANM2::constructor on this+0x4c +MenuManager 0x178 Seeds _seedsObject ctor 00986450 Seeds::constructor 009e9290 on this+0x178 +MenuManager 0x1d4 Menu_Title _menuTitle ctor 00986450 ESI=this+0x1d4: PositionX/Y +0/+4 zeroed, TitleScreenSprite ANM2 at +8 (as REP); its size is 0x120 now (word at +0x11c) +MenuManager 0x2f4 Menu_Save _menuSave ctor 00986450 ESI=this+0x2f4: +0x10/+0x14 zeroed, ANM2 at +0x18, 3 ANM2 at +0x12c, ANM2 +0x470, +0x584 = REP's inner layout; REP 0x2f8 (-4) +MenuManager 0xb90 Menu_Game _menuGame ctor 00986450 ESI=this+0xb90: +8/+0xc zeroed, ANM2 at +0x10 and +0x124 (as REP); size is 0x244 now (+0x240 = -1) +MenuManager 0xdd4 Menu_DailyChallenge _menuDailyChallenge ctor 00986450 EDI=this+0xdd4: +0..+0x10 zeroed, ANM2 +0x14, popup at +0x13c, prompt at +0x270, Leaderboard ctor FUN_00856f70 at +0x3a4 (REP 0xdd0, +4) +MenuManager 0x1534 Menu_Character _menuCharacter ctor 00986450 calls the Menu_Character ctor FUN_00946e70 with this+0x1534; Render 0098a040 reads +0x153c as Menu_Character.Difficulty (REP 0x1530, +4) +MenuManager 0x251c Menu_SpecialSeeds _menuSpecialSeeds ctor 00986450 ESI=this+0x251c, SpecialSeedsSprite ANM2 at +0x1c (REP 0x2518, +4) +MenuManager 0x2688 Menu_Challenge _menuChallenge ctor 00986450 ESI=this+0x2688: +0xc/+0x10 zeroed, ANM2 at +0x14, +0x128/+0x12c (REP 0x2684, +4) +MenuManager 0x27b8 Menu_Collection _menuCollection ctor 00986450 ESI=this+0x27b8: ANM2 at +0x14 and +0x128, +0x240..+0x258 zeroed (REP 0x27b4, +4) +MenuManager 0x2a18 Menu_Stats _menuStats ctor 00986450 ESI=this+0x2a18: ANM2 +0x1c, +0xb48, 11 ANM2 at +0xc5c, 0x282 x 0x34 entries at +0x1838; Render 0098a040 case 9 reads +0x2b48 (Stats+0x130) (REP 0x2a14, +4) +MenuManager 0xcecc Menu_Options _menuOptions ctor 00986450 calls FUN_009b1fc0 (Options ctor: ANM2 at +0x24, +0x138 as REP) with this+0xcecc (REP 0xce8c, +0x40) +MenuManager 0xd154 Menu_ControllerSelect _menuControllerSelect ctor 00986450 ESI=this+0xd154: +8/+0xc zeroed, ANM2 at +0x10, +0x124..+0x12c (REP 0xd114, +0x40) +MenuManager 0xd284 Menu_KeyConfig _menuKeyConfig ctor 00986450 ECX=this+0xd284: +0xc/+0x10 zeroed, ANM2 at +0x14; SetState FUN_0098aa30 resets +0xd288/+0xd28c when entering state 0xc (REP 0xd244, +0x40) +MenuManager 0xd3ac Menu_Cutscenes _menuCutscenes ctor 00986450 ECX=this+0xd3ac: +8/+0xc zeroed, ANM2 at +0x10 (REP 0xd36c, +0x40) +MenuManager 0xd4d0 Menu_Bestiary _menuBestiary ctor 00986450 ESI=this+0xd4d0: PositionX/Y +0/+4, ANM2 at +8, +0x11c, +0x230, +0x350..+0x364 zeroed (REP 0xd490, +0x40) +MenuManager 0xd848 Menu_CustomChallenge _menuCustomChallenge MenuManager::Update 009897d0 calls Menu_CustomChallenge::Update(this+0xd848); ctor ANM2 at +0xd858 (REP 0xd808, +0x40) +MenuManager 0xd96c Menu_Mods _menuMods ctor 00986450 ESI=this+0xd96c: +8/+0xc zeroed, ANM2 at +0x10, +0x128 (REP 0xd92c, +0x40) +MenuManager 0xf704 Vector _viewPositionSet[23] ctor 00986450 zeroes 23 Vectors from +0xf704 (ends at the 0xf7bc bool); Update 009897d0 reads +0xf704/+0xf708 + id*8; SetState writes [12].x (+0xf768) for state 0xc (REP 0xf70c, -8) +MenuManager 0xf7bc bool _shouldLerpColorModState MenuManager::Update 009897d0 lerps while set and clears it once the lerp equals the target; ctor 00986450 sets it to 0 (REP 0xf7c4, -8) +MenuManager 0xf7c0 ColorModState _currentColorModState Render 0098a040 sends +0xf7c0..c8 as tint and +0xf7cc/+0xf7d0/+0xf7d4 as the "Amount"/"Brightness"/"Contrast" uniforms; ctor sets (1,1,1,0,0,1) (REP 0xf7c8, -8) +MenuManager 0xf7d8 ColorModState _targetColorModState Update 009897d0 FUN_006ef410(this+0xf7d8, this+0xf7f0) and compares the result with +0xf7d8..+0xf7ec; ctor (1,1,1,0,0,1) (REP 0xf7e0, -8) +MenuManager 0xf7f0 ColorModState _lerpColorModState second ColorModState arg of the lerp in Update 009897d0; ctor (1,1,1,0,0,1) at +0xf7f0..+0xf804 (REP 0xf7f8, -8) +MenuManager 0xf808 float _scrollinterpolationX -8 like its neighbours; Update 009897d0 sets it to viewPositionSet[1].x + 364 + dist^2*0.004 and Render 0098a040 draws the fly sprite at _ViewPosition + (this, +0xf80c), so it is really the fly's offset (REP 0xf810) +MenuManager 0xf80c float _scrollinterpolationY Update 009897d0 sets viewPositionSet[1].y + 176 + dist*0.004; Render 0098a040 fly sprite y offset (REP 0xf814) +MenuManager 0xf818 ANM2 _flySprite ctor 00986450 ANM2 at this+0xf818 (via ECX=+0xf808,+0x10); Update 009897d0 bobs its layers 0/1 with sin(frame%80); Render 0098a040 draws it (REP 0xf820, -8) +EntityConfig_Entity 0x0 int id EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "id" attr atoi -> +0; GetEntity 00694fb0 key (id<<12|variant)<<8|subtype +EntityConfig_Entity 0x4 int variant EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "variant" atoi -> +4 +EntityConfig_Entity 0x8 int subtype EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "subtype" atoi -> +8 +EntityConfig_Entity 0xc std_string name EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "name" attr string::assign into EBP-0x10204 (+0xc) at 006955c0 +EntityConfig_Entity 0x24 float shadowSize EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shadowSize"/100 -> +0x24; Entity::LoadEntityConfig 006a98b0 copies +0x24 to Entity::_shadowSize +EntityConfig_Entity 0x28 float collisionDamage EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionDamage" atof -> +0x28; Entity::LoadEntityConfig 006a98b0 copies to Entity::_collisionDamage +EntityConfig_Entity 0x2c bool isBoss EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "boss" attr -> byte +0x2c (0/1) +EntityConfig_Entity 0x30 int bossID EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bossID" atoi -> +0x30 +EntityConfig_Entity 0x34 bool canBeChampion EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "champion" -> +0x34 (0/1) +EntityConfig_Entity 0x38 float collisionRadius EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionRadius" -> +0x38; Entity::LoadEntityConfig 006a98b0 passes +0x38 to SetSize +EntityConfig_Entity 0x3c Vector collisionRadiusMulti EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionRadiusXMulti" -> +0x3c, "collisionRadiusYMulti" -> +0x40; Entity::LoadEntityConfig 006a98b0 passes to SetSize +EntityConfig_Entity 0x44 float mass EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionMass" -> +0x44; Entity::LoadEntityConfig 006a98b0 copies +0x44 to Entity mass +EntityConfig_Entity 0x48 unsigned int gridCollisionPoints EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "numGridCollisionPoints" atoi -> +0x48; Entity::LoadEntityConfig 006a98b0 passes to SetSize +EntityConfig_Entity 0x4c float friction EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "friction" -> +0x4c; Entity::LoadEntityConfig 006a98b0 copies +0x4c to Entity friction +EntityConfig_Entity 0x50 float baseHP EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "baseHP" -> +0x50; Entity::LoadEntityConfig 006a98b0 MaxHitPoints = baseHP + stage*stageHP +EntityConfig_Entity 0x54 float stageHP EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "stageHP" -> +0x54; Entity::LoadEntityConfig 006a98b0 scales it by stage +EntityConfig_Entity 0x58 bool shutDoors EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shutdoors" -> +0x58 (0/1) +EntityConfig_Entity 0x5c unsigned int gibsAmount EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "gibAmount" attr and atoi -> +0x5c +EntityConfig_Entity 0x60 unsigned int gibFlags EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it flags -> +0x60 +EntityConfig_Entity 0x64 int portrait EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "portrait" atoi -> +0x64 (negated if negative) +EntityConfig_Entity 0x74 std_string anm2Path EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "anm2path" concat(modpath) -> +0x74; EntityConfig::PreloadResources 0069ba90 AnmCache::Preload(+0x74) +EntityConfig_Entity 0xa4 vector_Devolve devolve EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it push_back of 12-byte {id,var|sub,weight=1.0} into vector end +0xa8 / cap +0xac +EntityConfig_Entity 0xb4 std_string gridCollisionClassString EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "gridCollision" string::assign into +0xb4 (00696030); Entity::LoadEntityConfig 006a98b0 reads size +0xc4 and str_eq "walls"/"ground"/"nopits" +EntityConfig_Entity 0xcc bool reroll EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "reroll" -> +0xcc +EntityConfig_Entity 0xcd bool hasFloorAlts EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "hasFloorAlts" -> +0xcd +EntityConfig_Entity 0xd0 unsigned int collisionInterval EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionInterval" atoi -> +0xd0 +EntityConfig_Entity 0xd8 unsigned int tags EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "tags" -> EntityConfig::parse_entity_tags 00694680 result -> +0xd8 (+0xdc zeroed alongside) +EntityConfig_Entity 0xe0 float shieldStrength EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shieldStrength" atof -> +0xe0 +EntityConfig_Entity 0xe4 int shieldFrames NEW (not in REPENTOGON): EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shieldFrames" atoi -> +0xe4 +EntityConfig_Entity 0xe8 bool bestiary EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiary" attr -> +0xe8; cleared when bestiary parent set +EntityConfig_Entity 0xec Vector bestiaryOffset EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it atof x3 -> +0xec,+0xf0 (offset) and +0xf4 (scale) +EntityConfig_Entity 0xf4 float bestiaryScale EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it third atof -> +0xf4 +EntityConfig_Entity 0xf8 std_string bestiaryAnm2Path EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it concat(modpath) moved into +0xf8 +EntityConfig_Entity 0x110 std_string bestiaryAnim EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiaryAnim" string::assign into EBP-0x10100 (+0x110) at 00696a10 +EntityConfig_Entity 0x128 std_string bestiaryOverlay EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiaryOverlay" string::assign into EBP-0x100e8 (+0x128) at 00696a90 +EntityConfig_Entity 0x140 std_string bestiaryFloorAlt EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it string::assign into EBP-0x100d0 (+0x140) at 00697e5a +EntityConfig_Entity 0x158 int bestiaryParentType EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it atoi -> +0x158; EntityConfig::GetBestiaryConfig 00695030 follows +0x158/+0x15c +EntityConfig_Entity 0x15c int bestiaryParentVariant EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it 2nd atoi -> +0x15c; GetBestiaryConfig 00695030 uses it as variant +EntityConfig_Entity 0x160 ModEntry* modEntry EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it stores param_2 (ModEntry*, 0 for vanilla) -> +0x160 at 0069843c +EntityConfig_Entity 0x98 std_vector_int preloadSounds NEW: EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it push_back(atoi) into +0x98..; EntityConfig::PreloadResources 0069ba90 walks +0x98..+0x9c as sound ids +EntityConfig_Entity 0xb0 bool isPreloaded NEW: EntityConfig::PreloadResources 0069ba90 skips when +0xb0 set, sets it to 1 at end +EntityConfig_Entity 0x164 bool isPortraitModded NEW: EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it after "portrait": 0 when negative, else ModEntry+0xef9 byte (0 for vanilla) -> +0x164 +EntityConfig_Player 0x0 int _id EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "id" atoi -> +0; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148); +0x124 defaults to it +EntityConfig_Player 0x4 std_string _name EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "name" string::assign into EBP-0x10204 (+4) at 00699c9b; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x4 +EntityConfig_Player 0x1c std_string _skinPath EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "skin" concat(root) moved to +0x1c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x1c +EntityConfig_Player 0x34 std_string _nameImagePath EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "nameimage" concat(nameimageroot) -> +0x34; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x34 +EntityConfig_Player 0x4c std_string _portraitPath EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "portrait" concat(portraitroot) -> +0x4c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x4c +EntityConfig_Player 0x64 std_string _unkString copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x64 (0069b894) and dtor at 0069b7e7; not written by any players.xml attribute +EntityConfig_Player 0x7c std_string _extraPortraitPath EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "extraportrait" concat -> +0x7c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x7c +EntityConfig_Player 0x94 std_string _costumeSuffixName EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "costumeSuffix" string::assign into EBP-0x10174 (+0x94) at 0069a7cb; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0x94 +EntityConfig_Player 0xac int _costumeID EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "costume" atoi -> +0xac; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy +EntityConfig_Player 0xb0 int _heart EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "hp" atoi -> +0xb0 +EntityConfig_Player 0xb4 int _armor EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "armor" atoi -> +0xb4 +EntityConfig_Player 0xb8 int _blackHeart EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "black" atoi -> +0xb8 +EntityConfig_Player 0xbc int _coins EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "coins" atoi -> +0xbc +EntityConfig_Player 0xc0 int _bombs EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "bombs" atoi -> +0xc0 +EntityConfig_Player 0xc4 int _keys EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "keys" atoi -> +0xc4 +EntityConfig_Player 0xc8 int _card EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "card" atoi -> +0xc8 +EntityConfig_Player 0xcc int _pill EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "pill" atoi -> +0xcc +EntityConfig_Player 0xd0 bool _canShoot EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "canShoot" true/false -> byte +0xd0; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) byte copy +0xd0 +EntityConfig_Player 0xd4 std_vector_int _collectibles EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "items" list push_back into vector (end +0xd8, cap +0xdc); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) vector copy +0xd4 +EntityConfig_Player 0xe0 int _trinket EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "trinket" atoi -> +0xe0 +EntityConfig_Player 0xe4 int _skinColor EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "skinColor" atoi -> +0xe4 +EntityConfig_Player 0xe8 int _achievement EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "achievement" atoi -> +0xe8 +EntityConfig_Player 0xec int _brokenHeart EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "broken" atoi -> +0xec +EntityConfig_Player 0xf0 uint32_t _pocketActiveID EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "pocketActive" atoi -> +0xf0 +EntityConfig_Player 0xf4 std_string _birthrightDescription EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "birthright" string::assign into EBP-0x10114 (+0xf4) at 0069a95b; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0xf4 +EntityConfig_Player 0x10c std_string _bSkinParentName EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "bSkinParent" string::assign into EBP-0x100fc (+0x10c) at 0069a9cb; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0x10c +EntityConfig_Player 0x124 int _moddedTaintedPlayerID EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) sets +0x124 = own id (vanilla) or players.size() (modded) at 0069abad/0069b325; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy +EntityConfig_Player 0x128 bool _hidden EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "hidden" true/True/atoi -> byte +0x128 (0069ab0c); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) byte copy +EntityConfig_Player 0x12c ModEntry* _modEntry EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) stores the ModEntry* param at +0x12c (0069ab75); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy +EntityConfig_Player 0x130 bool _renderCustomBackground EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) set 1 when the modded menu ANM2 has a "Background" layer (bStack_100e8); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copies 0x130..0x13f +EntityConfig_Player 0x134 ANM2* _moddedMenuBackgroundANM2 EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 from ModEntry+0x550 -> +0x134, then GetLayer("Background") +EntityConfig_Player 0x138 ANM2* _moddedMenuPortraitANM2 EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x31d) -> +0x138 +EntityConfig_Player 0x13c ANM2* _moddedGameOverANM2 EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x431) -> +0x13c +EntityConfig_Player 0x140 ANM2* _moddedCoopMenuANM2 EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x545) -> +0x140 +EntityConfig_Player 0x144 ANM2* _moddedControlsANM2 EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0xbbd) -> +0x144; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) qword copy 0x140..0x147 ends the 0x148 struct +EntityConfig 0x0 std_map_uint_EntityConfigEntityEntry _entities EntityConfig::GetEntity 00694fb0 / GetBestiaryConfig 00695030 lower_bound on map whose head is *this (node key +0x10, value +0x18) +EntityConfig 0x20 vector_EntityConfig_Boss _bosses load_bossportraits_xml 0069c420 resizes (this+0x20) to 0x68 entries of 100 bytes and pushes alts into elem+0x58 +EntityConfig 0x2c vector_string _edenHair EntityConfig::load_players_xml 006998d0: for player id 9 clears vector at +0x2c, reserves 0x80, pushes +ItemConfig 0x3c std_map_string_int _collectibleNameMap LuaEngine::Isaac_GetItemIdByName 0086f640 looks up Manager+0x2a440 = ItemConfig(Manager+0x2a404, Isaac::GetItemConfig 0042ca00)+0x3c, string key, int value at node+0x28; ItemConfig::Load 00725570 clears this+0x3c +Camera 0x8c bool _shouldOverride Camera::SetFocusPosition 00944d10: if !+0x8c push pos into ring +0x50 and set +0x8c=1; Camera::update_follow 009446e0 follows ring +0x50 instead of players when set; Camera::ClampedToRoom 00943490 skips X clamp diff --git a/find.sh b/find.sh index a6da8b8..4aaf976 100755 --- a/find.sh +++ b/find.sh @@ -42,7 +42,7 @@ case "$MODE" in IFS=$'\t' read -r _ _ ENUM TARGET LABEL ANCHOR SHARES <<< "$ROW" echo "---- $ENUM: case at 0x$TARGET, shared with: $SHARES" "$D/decompile.sh" "^Entity_Player::$F\$" | awk -v r="$LABEL" -v a="$ANCHOR" -v n="${3:-60}" \ - 'a == "-" || index($0, a) {on = 1} on && !w && $0 ~ r {w = n; print "---- line " NR} w > 0 {print; if (!--w) exit}' ;; + -v t="LAB_$TARGET:" 'a == "-" || index($0, a) {on = 1} (on && !c && $0 ~ r && ++c) || index($0, t) == 1 {w = n; print "---- line " NR} w > 0 {print; w--}' ;; # also the case code under its LAB_ label (a case that is only a goto) player) H=$(printf '0x%x' "$ARG") # player-type read, then a compare/case with ID within 4 lines awk -v r="([!=]= |case )($H|$ARG)([^0-9a-fx]|$)" '/^\/\/@@ / {h=$2" "$3; next} /_playerType|0x13c0|GetPlayerType/ {w=5} w-- > 0 && $0 ~ r {gsub(/^ +/, ""); print h "\t" $0}' "$T/all.c" ;; enum) grep -P -- "$ARG" "$D/repentogon/libzhl/functions/Global.zhl" | sed 's/^ *//' ;; diff --git a/lua_fields.tsv b/lua_fields.tsv index b6998ec..7274bf2 100644 --- a/lua_fields.tsv +++ b/lua_fields.tsv @@ -1,3 +1,9 @@ +ANM2 0x80 int _layerCount +ANM2 0x94 Vector _offset +ANM2 0x9c Vector _scale +ANM2 0x100 bool _isFlipX +ANM2 0x101 bool _isFlipY +ANM2 0x109 bool _isLoaded Entity 0xdc Vector _spriteOffset Entity 0xe4 Vector _spriteScale Entity 0x148 bool _isFlipX @@ -27,6 +33,7 @@ Entity_Player 0x136c int _numBlueFlies Entity_Player 0x1370 int _numBlueSpiders Entity_Player 0x1378 int _lastActionTriggers Entity_Player 0x1430 int _tractorBeam +Entity_Player 0x1600 int _itemState Entity_Player 0x162c int _fireDirection Entity_Player 0x1630 Vector _aimDirection Entity_Player 0x1638 bool _areOpposingShootDirectionsPressed @@ -48,6 +55,8 @@ Entity_Projectile 0x448 int _wiggleFrameOffset Entity_Projectile 0x450 uint64_t _changeFlags Entity_Projectile 0x45c int _changeTimeout Entity_Tear 0x7ec Vector _posDisplacement +Font 0x14 short _lineHeight +Font 0x16 short _baselineHeight Game 0x26500 int _bossRushParTime Game 0x26504 int _blueWombParTime Game 0x26560 int _stagesWithoutHeartsPicked @@ -59,7 +68,6 @@ GridEntity_Door 0xd4 Vector _spriteOffset GridEntity_Door 0x158 int _slot GridEntity_Door 0x164 int _direction GridEntity_Door 0x391 bool _isBusted -GridEntity_Door 0x394 int _targetRoomIndex Level 0x10 bool _isHeartPicked Level 0x11 bool _isCanSeeEverything Level 0x182cc int _roomCount @@ -87,3 +95,4 @@ Room 0x1d18 int _backdropType Room 0x7068 int _shopLevel Room 0x7229 bool _hasTriggerPressurePlates Room 0x72a0 bool _isFirstEnemyDead +Seeds 0x58 int _countSeedEffects diff --git a/scripts/ApplyTypes.java b/scripts/ApplyTypes.java index 9798dc5..8864f9c 100644 --- a/scripts/ApplyTypes.java +++ b/scripts/ApplyTypes.java @@ -35,10 +35,13 @@ public class ApplyTypes extends GhidraScript { if (depth > 8) return; if (base.containsKey(cls)) addFields(s, base.get(cls), depth + 1); for (String[] f : fields.getOrDefault(cls, List.of())) { - DataType dt = prim(f[2]); + java.util.regex.Matcher arr = java.util.regex.Pattern.compile("\\[(\\w+)\\]\\s*$").matcher(f[2]); // "int _trinketsID[2]" + String decl = arr.find() ? f[2].substring(0, arr.start()) : f[2]; + DataType dt = prim(decl); if (dt == null) continue; + if (arr.find(0)) dt = new ArrayDataType(dt, Integer.decode(arr.group(1)), dt.getLength()); int off = Integer.decode(f[1]); - String nm = f[2].replaceAll(".*\\s", "").replaceAll("[^\\w]", ""); + String nm = decl.trim().replaceAll(".*\\s", "").replaceAll("[^\\w]", ""); try { if (off + dt.getLength() > s.getLength()) s.growStructure(off + dt.getLength() - s.getLength()); s.replaceAtOffset(off, dt, dt.getLength(), nm, null); diff --git a/scripts/headers.py b/scripts/headers.py new file mode 100644 index 0000000..181c8f4 --- /dev/null +++ b/scripts/headers.py @@ -0,0 +1,66 @@ +# Generates src/structs.hpp: one C++ struct per class from the confirmed fields (zhl_fields.tsv, lua_fields.tsv, +# db/fields.tsv; later files win at the same offset), base-class fields flattened in, gaps as explicit padding, and a +# static_assert on every member offset. Only offsets this exe confirms are in these files, so the header is as trustworthy +# as the evidence behind them. Pointers are uint32_t (the game is 32-bit), so it compiles on any host. +# Usage: headers.py out.hpp zhl_fields.tsv lua_fields.tsv db/fields.tsv +import collections, re, sys +out, *srcs = sys.argv[1:] +SIZE = {'bool': 1, 'char': 1, 'int8_t': 1, 'uint8_t': 1, 'unsigned char': 1, 'short': 2, 'int16_t': 2, 'uint16_t': 2, + 'unsigned short': 2, 'int': 4, 'int32_t': 4, 'uint32_t': 4, 'unsigned int': 4, 'unsigned long': 4, 'long': 4, + 'float': 4, 'uint64_t': 8, 'int64_t': 8, 'unsigned long long': 8, 'long long': 8, 'double': 8, 'Vector': 8} +CTYPE = {'unsigned int': 'uint32_t', 'unsigned long': 'uint32_t', 'long': 'int32_t', 'unsigned short': 'uint16_t', + 'unsigned char': 'uint8_t', 'unsigned long long': 'uint64_t', 'long long': 'int64_t', 'char': 'int8_t'} +fields, bases = collections.defaultdict(dict), {} +for p in srcs: + for l in open(p): + if l.startswith('#') or not l.strip(): continue + c = l.rstrip('\n').split('\t') + if c[1] == 'base': bases[c[0]] = c[2]; continue + decl = c[2].replace('const ', '').strip() + count = re.search(r'\[(\w+)\]\s*$', decl) # "int _trinketsID[2]" + if count: decl = decl[:count.start()] + typ, name = decl.rsplit(None, 1) if ' ' in decl else (decl, '_unnamed') + fields[c[0]][int(c[1], 16)] = (typ.strip(), re.sub(r'\W', '', name), c[3] if len(c) > 3 else '', int(count.group(1), 0) if count else 1) +def flat(cls, depth=0): + f = dict(flat(bases[cls], depth + 1)) if cls in bases and depth < 8 else {} + f.update(fields.get(cls, {})) + return f +done, order = {}, [] +def size_of(t): + if t.endswith('*'): return 4 + return SIZE.get(t) or done.get(t) +def emit(cls, stack=()): + if cls in done or cls in stack: return + f = flat(cls) + for t, *_ in f.values(): + if t in fields and not t.endswith('*'): emit(t, stack + (cls,)) + lines, asserts, pos = [], [], 0 + for off in sorted(f): + t, name, note, count = f[off] + if off < pos: continue # overlaps the previous member (e.g. a union view): keep the first + if off > pos: lines.append(f' uint8_t _pad_0x{pos:x}[0x{off - pos:x}];') + sz = size_of(t) and size_of(t) * count + dim = f'[{count}]' if count > 1 else '' + nxt = min([o for o in f if o > off], default=None) + if sz and (nxt is None or off + sz <= nxt): + ct = 'uint32_t' if t.endswith('*') else CTYPE.get(t, t) + cmt = f' // {t}' if t.endswith('*') else '' + lines.append(f' {ct} {name}{dim};{cmt}' + (f' // {note}' if note else '')) + asserts.append(f'static_assert(offsetof({cls}, {name}) == 0x{off:x});') + pos = off + sz + else: # unknown size: a byte span up to the next member + n = (nxt - off) if nxt else 4 + lines.append(f' uint8_t {name}[0x{n:x}]; // {t}' + (f'; {note}' if note else '')) + asserts.append(f'static_assert(offsetof({cls}, {name}) == 0x{off:x});') + pos = off + n + if not lines: return + done[cls] = pos + order.append(f'struct {cls} {{' + (f' // : {bases[cls]} (flattened)' if cls in bases else '') + '\n' + '\n'.join(lines) + '\n};\n' + '\n'.join(asserts) + '\n') +for c in sorted(set(fields) | set(bases)): emit(c) +dupes = [c for c in done if len({v[1] for v in flat(c).values()}) != len(flat(c))] # same name at two offsets +with open(out, 'w') as o: + o.write('// Generated by scripts/headers.py from the confirmed struct fields of isaac-ng.exe v1.9.7.17. Do not edit:\n' + '// add or fix fields in db/fields.tsv and regenerate. Offsets not confirmed in this exe are padding.\n' + '#pragma once\n#include \n#include \n\n#pragma pack(push, 1)\n' + 'struct Vector { float x, y; };\n\n' + '\n'.join(o_ for o_ in order if not o_.startswith('struct Vector ')) + '#pragma pack(pop)\n') +print(f'headers: {len(done)} structs' + (f'; duplicate member names in {dupes}' if dupes else '')) diff --git a/scripts/zhl_fields.py b/scripts/zhl_fields.py new file mode 100644 index 0000000..974ebd2 --- /dev/null +++ b/scripts/zhl_fields.py @@ -0,0 +1,57 @@ +# REPENTOGON's struct offsets target an older exe (1.9.7.12); fields drift as the game adds members, so they are only +# kept where THIS exe confirms them. Evidence ("anchors"): a trivial getter in the corpus ("Class::GetFoo" returning +# this+N anchors field "_foo" at N) or the game's Lua field table (lua_bindings.tsv: "EntityNPC State field+0xb64"). +# A field is kept when it is anchored, or lies between two anchors of its class with the same shift; everything else +# is dropped (the decompiler then shows field_0xNNN) until db/fields.tsv confirms it. Base-class rows are always kept. +# Usage: zhl_fields.py all.c zhl_dir lua_bindings.tsv out.tsv [names.tsv: addr \t Class::Member, overrides corpus names] +# Prints per class: kept/total and the shifts seen. +import collections, glob, os, re, sys +src, zdir, lua, fout = sys.argv[1:5] +rename = dict(l.split('\t')[:2] for l in open(sys.argv[5])) if len(sys.argv) > 5 else {} +norm = lambda s: re.sub(r'^(get|is|has)', '', s.lower().lstrip('_')) +cls_of = lambda c: {'Item': 'ItemConfig_Item', 'Card': 'ItemConfig_Card', 'PillEffect': 'ItemConfig_Pill', 'Costume': 'ItemConfig_Costume', + 'GridEntityDoor': 'GridEntity_Door'}.get(c, re.sub(r'^Entity(?=[A-Z])', 'Entity_', c)) + +# raw fields: "int _a : 0x0, _b : 0x4;" is two fields +raw, bases = collections.defaultdict(list), [] +for f in sorted(glob.glob(os.path.join(zdir, '*.zhl'))): + struct_ = None + for l in open(f, errors='replace'): + m = re.match(r'^\s*struct\s+(\w+)', l) + if m: + struct_ = m.group(1) + b = re.search(r':\s*public\s+(\w+)', l) + if b: bases.append((struct_, b.group(1))) + if not (struct_ and re.match(r'^\s*([\w:<>,\s\*&]+?)\s*:\s*(0x[0-9a-fA-F]+)\s*;', l)): continue + parts = re.findall(r'([^,:]+?)\s*:\s*(0x[0-9a-fA-F]+)', l.split(';')[0]) + ftype = parts[0][0].split()[:-1] + for decl, off in parts: + words = decl.split() + raw[struct_].append((int(off, 16), ' '.join(words if len(words) > 1 else ftype + words))) + +anchor = {} # (class, normalised member) -> offset in this exe +name, n = None, 0 +for line in open(src, errors='replace'): + if line.startswith('//@@ '): name, n = rename.get(line.split()[1], line.split()[2]), 0; continue + n += 1 + m = n < 14 and '::' in name and re.search(r'return (?:\*\([\w ]+\*\)\((?:in_ECX|this|param_1) \+ (0x[0-9a-f]+)\)|(?:in_ECX|this|param_1) \+ (0x[0-9a-f]+));', line) + if m: + cls, meth = name.rsplit('::', 1) + anchor.setdefault((cls_of(cls), norm(meth)), int(m.group(1) or m.group(2), 16)) +for l in open(lua): + c = l.rstrip('\n').split('\t') + m = len(c) > 2 and re.match(r'field\+(0x[0-9a-f]+)$', c[2]) + if m: anchor[(cls_of(c[0]), norm(c[1]))] = int(m.group(1), 16) # the game's own table wins over a getter guess + +with open(fout, 'w') as o: + for c, b in bases: o.write(f'{c}\tbase\t{b}\n') + for c, fields in sorted(raw.items()): + shifts = sorted((off, anchor[(c, norm(d.split()[-1]))] - off) for off, d in fields if (c, norm(d.split()[-1])) in anchor) + kept = 0 + for off, d in fields: + lo = [s for a, s in shifts if a <= off]; hi = [s for a, s in shifts if a >= off] + if (c, norm(d.split()[-1])) in anchor: new = anchor[(c, norm(d.split()[-1]))] + elif lo and hi and lo[-1] == hi[0]: new = off + lo[-1] + else: continue + o.write(f'{c}\t0x{new:x}\t{d}\n'); kept += 1 + if shifts: print(f'{c}: kept {kept}/{len(fields)}, shifts ' + ' '.join(f'{a:x}{s:+#x}' for a, s in shifts if s)) diff --git a/scripts/zhl_match.py b/scripts/zhl_match.py index 9338a52..0461e74 100644 --- a/scripts/zhl_match.py +++ b/scripts/zhl_match.py @@ -87,21 +87,4 @@ with open(os.path.join(os.path.dirname(out), 'zhl_vtables.tsv'), 'w') as o: name = nm.group(1) if nm else None if name and name != 'skip': o.write('%s\t%d\t%s\n' % (cls, slot, name)) slot += 1 - -# struct fields from zhl: struct \t offset \t type name -with open(os.path.join(os.path.dirname(out), 'zhl_fields.tsv'), 'w') as o: - for f in sorted(glob.glob(os.path.join(zdir, '*.zhl'))): - struct_ = None - for l in open(f, errors='replace'): - m = structP.match(l) - if m: - struct_ = m.group(1) - b = re.search(r':\s*public\s+(\w+)', l) - if b: o.write('%s\tbase\t%s\n' % (struct_, b.group(1))) - m = re.match(r'^\s*([\w:<>,\s\*&]+?)\s*:\s*(0x[0-9a-fA-F]+)\s*;', l) - if not (m and struct_): continue - parts = re.findall(r'([^,:]+?)\s*:\s*(0x[0-9a-fA-F]+)', l.split(';')[0]) # "int _a : 0x0, _b : 0x4;" is two fields - ftype = parts[0][0].split()[:-1] - for decl, off in parts: - words = decl.split() - o.write('%s\t%s\t%s\n' % (struct_, off.lower(), ' '.join((words if len(words) > 1 else ftype + words)))) +# struct fields: scripts/zhl_fields.py (keeps only the ones this exe confirms) diff --git a/src/structs.hpp b/src/structs.hpp new file mode 100644 index 0000000..952bfec --- /dev/null +++ b/src/structs.hpp @@ -0,0 +1,4878 @@ +// Generated by scripts/headers.py from the confirmed struct fields of isaac-ng.exe v1.9.7.17. Do not edit: +// add or fix fields in db/fields.tsv and regenerate. Offsets not confirmed in this exe are padding. +#pragma once +#include +#include + +#pragma pack(push, 1) +struct Vector { float x, y; }; + +struct AnimationState { + uint32_t _animation; // ANM2* // ANM2 ctor 0x4074c0 sets owner=this; copy ctor 0x4086e0(owner, src) + uint32_t _animData; // AnimationData* // SetAnimationData 0x408830 stores arg + uint32_t _layerFrames; // int* // SetAnimationData 0x408830 allocates anim->layerAnimCount ints + uint32_t _nullLayerFrames; // int* // SetAnimationData 0x408830 allocates anim->nullAnimCount ints + float _animFrame; // SetAnimationData 0x408830 = -1.0f; SetFrame 0x408e00 + bool _isPlaying; // Update 0x409030 / ANM2::IsPlaying 0x40a4d0 + uint8_t _pad_0x15[0x3]; + int _currentlyTriggeredEvents; // IsEventTriggered 0x40add0 tests bit + int _previouslyTriggeredEvents; // WasEventTriggered 0x40ae70 tests bit +}; +static_assert(offsetof(AnimationState, _animation) == 0x0); +static_assert(offsetof(AnimationState, _animData) == 0x4); +static_assert(offsetof(AnimationState, _layerFrames) == 0x8); +static_assert(offsetof(AnimationState, _nullLayerFrames) == 0xc); +static_assert(offsetof(AnimationState, _animFrame) == 0x10); +static_assert(offsetof(AnimationState, _isPlaying) == 0x14); +static_assert(offsetof(AnimationState, _currentlyTriggeredEvents) == 0x18); +static_assert(offsetof(AnimationState, _previouslyTriggeredEvents) == 0x1c); + +struct ANM2 { + uint8_t _filename[0x18]; // std_string; ANM2::Load assigns, AnmCache::AddRef/RemoveRef(this) 0x40e110/0x40e2b0, GetFilename 0x4312e0 (src/anm2/docs/cache_load_decomp.md s2) + uint8_t _animDefaultName[0x18]; // std_string; AnmCache::Load 0x40db90 assigns default anim name; GetDefaultAnimationName 0x4a5cf0 returns &+0x18 + AnimationState _animState; // ctor 0x4074c0 sets main.owner=this; dtor 0x408170; copy 0x4086e0 + AnimationState _overlayAnimState; // RemoveOverlay 0x40ac60 = overlay(+0x50).SetAnimationData(nullptr) + bool _overlayRenderFirst; // SetOverlayRenderPriority 0x431300; Render 0x40a0d0 draws overlay first if set; Reset 0x407f10 + uint8_t _pad_0x71[0x3]; + uint32_t _animData; // AnimationData* // AnmCache::Load 0x40db90 copies cache animations ptr + int _animCount; // AnmCache::Load 0x40db90; PlayRandom 0x40a2b0 rand % +0x78 + uint32_t _layerState; // LayerState* // AnmCache::Load 0x40db90 new LayerState[cnt] (stride 0xa0); ctor 0x4074c0 nulls + uint32_t _layerCount; // AnmCache::Load 0x40db90; GetLayerCount 0x440e40 + uint32_t _nullLayerNames; // std_string* // AnmCache::Load 0x40db90 copies cache nullNames + uint32_t _numNullLayers; // AnmCache::Load 0x40db90 copies cache nullCount + uint32_t _eventNames; // std_string* // AnmCache::Load 0x40db90 copies cache eventNames + uint32_t _numEvents; // AnmCache::Load 0x40db90 copies cache eventCount + Vector _offset; // Lua Sprite.Offset get 0x49cb40 (&+0x94) / set 0x456340; Reset 0x407f10 = Vector::Zero + Vector _scale; // Lua Sprite.Scale get 0x417200 / set 0x420170; Reset = Vector::One + float _rotation; // Lua Sprite.Rotation get 0x417210 / set 0x43ee80 + uint8_t _color[0x2c]; // ColorMod; Lua Sprite.Color get 0x407410 / set 0x4073d0 + uint8_t _championColor[0x2c]; // ColorMod; second ColorMod: ctor 0x4074c0, Reset 0x407f10 (alpha 0), copied/swapped like Color + bool _flipX; // Lua FlipX get 0x407420 / set 0x435c60 + bool _flipY; // Lua FlipY get 0x407430 / set 0x505b50 + uint8_t _pad_0x102[0x2]; + float _playbackSpeed; // Lua PlaybackSpeed get 0x456360 / set 0x440e50; Reset = 1.0 + uint8_t _pad_0x108[0x1]; + bool _loaded; // IsLoaded 0x420160; Render 0x40a0d0 returns early if 0 + uint8_t _pad_0x10a[0x2]; + int _shadowLayerIndex; // not in REPENTOGON: Reset 0x407f10 = -1; AnmCache::Load 0x40db90 sets it to the layer named "shadow" + uint32_t _bitflags; // renderFlags: OR-ed with LayerState+0x8c in Render (0x4091eb, 0x409a63, 0x409cc0); Load sets 0x400/0x800 +}; +static_assert(offsetof(ANM2, _filename) == 0x0); +static_assert(offsetof(ANM2, _animDefaultName) == 0x18); +static_assert(offsetof(ANM2, _animState) == 0x30); +static_assert(offsetof(ANM2, _overlayAnimState) == 0x50); +static_assert(offsetof(ANM2, _overlayRenderFirst) == 0x70); +static_assert(offsetof(ANM2, _animData) == 0x74); +static_assert(offsetof(ANM2, _animCount) == 0x78); +static_assert(offsetof(ANM2, _layerState) == 0x7c); +static_assert(offsetof(ANM2, _layerCount) == 0x80); +static_assert(offsetof(ANM2, _nullLayerNames) == 0x84); +static_assert(offsetof(ANM2, _numNullLayers) == 0x88); +static_assert(offsetof(ANM2, _eventNames) == 0x8c); +static_assert(offsetof(ANM2, _numEvents) == 0x90); +static_assert(offsetof(ANM2, _offset) == 0x94); +static_assert(offsetof(ANM2, _scale) == 0x9c); +static_assert(offsetof(ANM2, _rotation) == 0xa4); +static_assert(offsetof(ANM2, _color) == 0xa8); +static_assert(offsetof(ANM2, _championColor) == 0xd4); +static_assert(offsetof(ANM2, _flipX) == 0x100); +static_assert(offsetof(ANM2, _flipY) == 0x101); +static_assert(offsetof(ANM2, _playbackSpeed) == 0x104); +static_assert(offsetof(ANM2, _loaded) == 0x109); +static_assert(offsetof(ANM2, _shadowLayerIndex) == 0x10c); +static_assert(offsetof(ANM2, _bitflags) == 0x110); + +struct ActiveItemDesc { + int _item; + int _unk; + int _charge; + int _batteryCharge; + int _subCharge; + int _timeRechargeCooldown; + int _partialCharge; + int _varData; +}; +static_assert(offsetof(ActiveItemDesc, _item) == 0x0); +static_assert(offsetof(ActiveItemDesc, _unk) == 0x4); +static_assert(offsetof(ActiveItemDesc, _charge) == 0x8); +static_assert(offsetof(ActiveItemDesc, _batteryCharge) == 0xc); +static_assert(offsetof(ActiveItemDesc, _subCharge) == 0x10); +static_assert(offsetof(ActiveItemDesc, _timeRechargeCooldown) == 0x14); +static_assert(offsetof(ActiveItemDesc, _partialCharge) == 0x18); +static_assert(offsetof(ActiveItemDesc, _varData) == 0x1c); + +struct Camera { + uint8_t _pad_0x0[0x8c]; + bool _shouldOverride; // Camera::SetFocusPosition 00944d10: if !+0x8c push pos into ring +0x50 and set +0x8c=1; Camera::update_follow 009446e0 follows ring +0x50 instead of players when set; Camera::ClampedToRoom 00943490 skips X clamp +}; +static_assert(offsetof(Camera, _shouldOverride) == 0x8c); + +struct Entity { + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it +}; +static_assert(offsetof(Entity, _index) == 0x20); +static_assert(offsetof(Entity, _collisionIndex) == 0x24); +static_assert(offsetof(Entity, _type) == 0x28); +static_assert(offsetof(Entity, _variant) == 0x2c); +static_assert(offsetof(Entity, _subtype) == 0x30); +static_assert(offsetof(Entity, _spawnerType) == 0x34); +static_assert(offsetof(Entity, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity, _sprite) == 0x48); +static_assert(offsetof(Entity, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity, _spriteScale) == 0xe4); +static_assert(offsetof(Entity, _isFlipX) == 0x148); +static_assert(offsetof(Entity, _shadowSize) == 0x15c); +static_assert(offsetof(Entity, _flags) == 0x168); +static_assert(offsetof(Entity, _valid) == 0x170); +static_assert(offsetof(Entity, _visible) == 0x171); +static_assert(offsetof(Entity, _exists) == 0x172); +static_assert(offsetof(Entity, _dead) == 0x173); +static_assert(offsetof(Entity, _removedByFactory) == 0x177); +static_assert(offsetof(Entity, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity, _colorParams) == 0x1ac); +static_assert(offsetof(Entity, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity, _damageCountdown) == 0x214); +static_assert(offsetof(Entity, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity, _fearCountdown) == 0x230); +static_assert(offsetof(Entity, _burnCountdown) == 0x234); +static_assert(offsetof(Entity, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity, _poisonDamage) == 0x278); +static_assert(offsetof(Entity, _burnDamage) == 0x27c); +static_assert(offsetof(Entity, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity, _mass) == 0x2d4); +static_assert(offsetof(Entity, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity, _iceCountdown) == 0x300); +static_assert(offsetof(Entity, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity, _targetPosition) == 0x334); +static_assert(offsetof(Entity, _pos) == 0x33c); +static_assert(offsetof(Entity, _posOffset) == 0x34c); +static_assert(offsetof(Entity, _renderZOffset) == 0x354); +static_assert(offsetof(Entity, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity, _velocity) == 0x360); +static_assert(offsetof(Entity, _size) == 0x370); +static_assert(offsetof(Entity, _health) == 0x380); +static_assert(offsetof(Entity, _collisionDamage) == 0x388); +static_assert(offsetof(Entity, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity, _parent) == 0x3bc); +static_assert(offsetof(Entity, _child) == 0x3c0); +static_assert(offsetof(Entity, _target) == 0x3c4); +static_assert(offsetof(Entity, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity, _minecart) == 0x3d4); +static_assert(offsetof(Entity, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity, _initSeed) == 0x3ec); +static_assert(offsetof(Entity, _luaBridgeRef) == 0x408); + +struct EntityConfig { + uint8_t _entities[0x20]; // std_map_uint_EntityConfigEntityEntry; EntityConfig::GetEntity 00694fb0 / GetBestiaryConfig 00695030 lower_bound on map whose head is *this (node key +0x10, value +0x18) + uint8_t _bosses[0xc]; // vector_EntityConfig_Boss; load_bossportraits_xml 0069c420 resizes (this+0x20) to 0x68 entries of 100 bytes and pushes alts into elem+0x58 + uint8_t _edenHair[0x4]; // vector_string; EntityConfig::load_players_xml 006998d0: for player id 9 clears vector at +0x2c, reserves 0x80, pushes +}; +static_assert(offsetof(EntityConfig, _entities) == 0x0); +static_assert(offsetof(EntityConfig, _bosses) == 0x20); +static_assert(offsetof(EntityConfig, _edenHair) == 0x2c); + +struct EntityConfig_Entity { + int id; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "id" attr atoi -> +0; GetEntity 00694fb0 key (id<<12|variant)<<8|subtype + int variant; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "variant" atoi -> +4 + int subtype; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "subtype" atoi -> +8 + uint8_t name[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it; "name" attr string::assign into EBP-0x10204 (+0xc) at 006955c0 + float shadowSize; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shadowSize"/100 -> +0x24; Entity::LoadEntityConfig 006a98b0 copies +0x24 to Entity::_shadowSize + float collisionDamage; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionDamage" atof -> +0x28; Entity::LoadEntityConfig 006a98b0 copies to Entity::_collisionDamage + bool isBoss; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "boss" attr -> byte +0x2c (0/1) + uint8_t _pad_0x2d[0x3]; + int bossID; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bossID" atoi -> +0x30 + bool canBeChampion; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "champion" -> +0x34 (0/1) + uint8_t _pad_0x35[0x3]; + float collisionRadius; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionRadius" -> +0x38; Entity::LoadEntityConfig 006a98b0 passes +0x38 to SetSize + Vector collisionRadiusMulti; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionRadiusXMulti" -> +0x3c, "collisionRadiusYMulti" -> +0x40; Entity::LoadEntityConfig 006a98b0 passes to SetSize + float mass; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionMass" -> +0x44; Entity::LoadEntityConfig 006a98b0 copies +0x44 to Entity mass + uint32_t gridCollisionPoints; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "numGridCollisionPoints" atoi -> +0x48; Entity::LoadEntityConfig 006a98b0 passes to SetSize + float friction; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "friction" -> +0x4c; Entity::LoadEntityConfig 006a98b0 copies +0x4c to Entity friction + float baseHP; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "baseHP" -> +0x50; Entity::LoadEntityConfig 006a98b0 MaxHitPoints = baseHP + stage*stageHP + float stageHP; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "stageHP" -> +0x54; Entity::LoadEntityConfig 006a98b0 scales it by stage + bool shutDoors; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shutdoors" -> +0x58 (0/1) + uint8_t _pad_0x59[0x3]; + uint32_t gibsAmount; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "gibAmount" attr and atoi -> +0x5c + uint32_t gibFlags; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it flags -> +0x60 + int portrait; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "portrait" atoi -> +0x64 (negated if negative) + uint8_t _pad_0x68[0xc]; + uint8_t anm2Path[0x24]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "anm2path" concat(modpath) -> +0x74; EntityConfig::PreloadResources 0069ba90 AnmCache::Preload(+0x74) + uint8_t preloadSounds[0xc]; // std_vector_int; NEW: EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it push_back(atoi) into +0x98..; EntityConfig::PreloadResources 0069ba90 walks +0x98..+0x9c as sound ids + uint8_t devolve[0xc]; // vector_Devolve; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it push_back of 12-byte {id,var|sub,weight=1.0} into vector end +0xa8 / cap +0xac + bool isPreloaded; // NEW: EntityConfig::PreloadResources 0069ba90 skips when +0xb0 set, sets it to 1 at end + uint8_t _pad_0xb1[0x3]; + uint8_t gridCollisionClassString[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "gridCollision" string::assign into +0xb4 (00696030); Entity::LoadEntityConfig 006a98b0 reads size +0xc4 and str_eq "walls"/"ground"/"nopits" + bool reroll; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "reroll" -> +0xcc + bool hasFloorAlts; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "hasFloorAlts" -> +0xcd + uint8_t _pad_0xce[0x2]; + uint32_t collisionInterval; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "collisionInterval" atoi -> +0xd0 + uint8_t _pad_0xd4[0x4]; + uint32_t tags; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "tags" -> EntityConfig::parse_entity_tags 00694680 result -> +0xd8 (+0xdc zeroed alongside) + uint8_t _pad_0xdc[0x4]; + float shieldStrength; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shieldStrength" atof -> +0xe0 + int shieldFrames; // NEW (not in REPENTOGON): EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "shieldFrames" atoi -> +0xe4 + bool bestiary; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiary" attr -> +0xe8; cleared when bestiary parent set + uint8_t _pad_0xe9[0x3]; + Vector bestiaryOffset; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it atof x3 -> +0xec,+0xf0 (offset) and +0xf4 (scale) + float bestiaryScale; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it third atof -> +0xf4 + uint8_t bestiaryAnm2Path[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it concat(modpath) moved into +0xf8 + uint8_t bestiaryAnim[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiaryAnim" string::assign into EBP-0x10100 (+0x110) at 00696a10 + uint8_t bestiaryOverlay[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it "bestiaryOverlay" string::assign into EBP-0x100e8 (+0x128) at 00696a90 + uint8_t bestiaryFloorAlt[0x18]; // std_string; EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it string::assign into EBP-0x100d0 (+0x140) at 00697e5a + int bestiaryParentType; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it atoi -> +0x158; EntityConfig::GetBestiaryConfig 00695030 follows +0x158/+0x15c + int bestiaryParentVariant; // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it 2nd atoi -> +0x15c; GetBestiaryConfig 00695030 uses it as variant + uint32_t modEntry; // ModEntry* // EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it stores param_2 (ModEntry*, 0 for vanilla) -> +0x160 at 0069843c + bool isPortraitModded; // NEW: EntityConfig::LoadEntities 006950c0 parses entities2.xml into a stack EntityConfig_Entity (id @EBP-0x10210) then inserts it after "portrait": 0 when negative, else ModEntry+0xef9 byte (0 for vanilla) -> +0x164 +}; +static_assert(offsetof(EntityConfig_Entity, id) == 0x0); +static_assert(offsetof(EntityConfig_Entity, variant) == 0x4); +static_assert(offsetof(EntityConfig_Entity, subtype) == 0x8); +static_assert(offsetof(EntityConfig_Entity, name) == 0xc); +static_assert(offsetof(EntityConfig_Entity, shadowSize) == 0x24); +static_assert(offsetof(EntityConfig_Entity, collisionDamage) == 0x28); +static_assert(offsetof(EntityConfig_Entity, isBoss) == 0x2c); +static_assert(offsetof(EntityConfig_Entity, bossID) == 0x30); +static_assert(offsetof(EntityConfig_Entity, canBeChampion) == 0x34); +static_assert(offsetof(EntityConfig_Entity, collisionRadius) == 0x38); +static_assert(offsetof(EntityConfig_Entity, collisionRadiusMulti) == 0x3c); +static_assert(offsetof(EntityConfig_Entity, mass) == 0x44); +static_assert(offsetof(EntityConfig_Entity, gridCollisionPoints) == 0x48); +static_assert(offsetof(EntityConfig_Entity, friction) == 0x4c); +static_assert(offsetof(EntityConfig_Entity, baseHP) == 0x50); +static_assert(offsetof(EntityConfig_Entity, stageHP) == 0x54); +static_assert(offsetof(EntityConfig_Entity, shutDoors) == 0x58); +static_assert(offsetof(EntityConfig_Entity, gibsAmount) == 0x5c); +static_assert(offsetof(EntityConfig_Entity, gibFlags) == 0x60); +static_assert(offsetof(EntityConfig_Entity, portrait) == 0x64); +static_assert(offsetof(EntityConfig_Entity, anm2Path) == 0x74); +static_assert(offsetof(EntityConfig_Entity, preloadSounds) == 0x98); +static_assert(offsetof(EntityConfig_Entity, devolve) == 0xa4); +static_assert(offsetof(EntityConfig_Entity, isPreloaded) == 0xb0); +static_assert(offsetof(EntityConfig_Entity, gridCollisionClassString) == 0xb4); +static_assert(offsetof(EntityConfig_Entity, reroll) == 0xcc); +static_assert(offsetof(EntityConfig_Entity, hasFloorAlts) == 0xcd); +static_assert(offsetof(EntityConfig_Entity, collisionInterval) == 0xd0); +static_assert(offsetof(EntityConfig_Entity, tags) == 0xd8); +static_assert(offsetof(EntityConfig_Entity, shieldStrength) == 0xe0); +static_assert(offsetof(EntityConfig_Entity, shieldFrames) == 0xe4); +static_assert(offsetof(EntityConfig_Entity, bestiary) == 0xe8); +static_assert(offsetof(EntityConfig_Entity, bestiaryOffset) == 0xec); +static_assert(offsetof(EntityConfig_Entity, bestiaryScale) == 0xf4); +static_assert(offsetof(EntityConfig_Entity, bestiaryAnm2Path) == 0xf8); +static_assert(offsetof(EntityConfig_Entity, bestiaryAnim) == 0x110); +static_assert(offsetof(EntityConfig_Entity, bestiaryOverlay) == 0x128); +static_assert(offsetof(EntityConfig_Entity, bestiaryFloorAlt) == 0x140); +static_assert(offsetof(EntityConfig_Entity, bestiaryParentType) == 0x158); +static_assert(offsetof(EntityConfig_Entity, bestiaryParentVariant) == 0x15c); +static_assert(offsetof(EntityConfig_Entity, modEntry) == 0x160); +static_assert(offsetof(EntityConfig_Entity, isPortraitModded) == 0x164); + +struct EntityConfig_Player { + int _id; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "id" atoi -> +0; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148); +0x124 defaults to it + uint8_t _name[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "name" string::assign into EBP-0x10204 (+4) at 00699c9b; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x4 + uint8_t _skinPath[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "skin" concat(root) moved to +0x1c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x1c + uint8_t _nameImagePath[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "nameimage" concat(nameimageroot) -> +0x34; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x34 + uint8_t _portraitPath[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "portrait" concat(portraitroot) -> +0x4c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x4c + uint8_t _unkString[0x18]; // std_string; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x64 (0069b894) and dtor at 0069b7e7; not written by any players.xml attribute + uint8_t _extraPortraitPath[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "extraportrait" concat -> +0x7c; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) string copy +0x7c + uint8_t _costumeSuffixName[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "costumeSuffix" string::assign into EBP-0x10174 (+0x94) at 0069a7cb; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0x94 + int _costumeID; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "costume" atoi -> +0xac; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy + int _heart; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "hp" atoi -> +0xb0 + int _armor; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "armor" atoi -> +0xb4 + int _blackHeart; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "black" atoi -> +0xb8 + int _coins; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "coins" atoi -> +0xbc + int _bombs; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "bombs" atoi -> +0xc0 + int _keys; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "keys" atoi -> +0xc4 + int _card; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "card" atoi -> +0xc8 + int _pill; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "pill" atoi -> +0xcc + bool _canShoot; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "canShoot" true/false -> byte +0xd0; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) byte copy +0xd0 + uint8_t _pad_0xd1[0x3]; + uint8_t _collectibles[0xc]; // std_vector_int; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "items" list push_back into vector (end +0xd8, cap +0xdc); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) vector copy +0xd4 + int _trinket; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "trinket" atoi -> +0xe0 + int _skinColor; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "skinColor" atoi -> +0xe4 + int _achievement; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "achievement" atoi -> +0xe8 + int _brokenHeart; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "broken" atoi -> +0xec + uint32_t _pocketActiveID; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "pocketActive" atoi -> +0xf0 + uint8_t _birthrightDescription[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "birthright" string::assign into EBP-0x10114 (+0xf4) at 0069a95b; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0xf4 + uint8_t _bSkinParentName[0x18]; // std_string; EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "bSkinParent" string::assign into EBP-0x100fc (+0x10c) at 0069a9cb; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copy +0x10c + int _moddedTaintedPlayerID; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) sets +0x124 = own id (vanilla) or players.size() (modded) at 0069abad/0069b325; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy + bool _hidden; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) "hidden" true/True/atoi -> byte +0x128 (0069ab0c); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) byte copy + uint8_t _pad_0x129[0x3]; + uint32_t _modEntry; // ModEntry* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) stores the ModEntry* param at +0x12c (0069ab75); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) dword copy + bool _renderCustomBackground; // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) set 1 when the modded menu ANM2 has a "Background" layer (bStack_100e8); copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) copies 0x130..0x13f + uint8_t _pad_0x131[0x3]; + uint32_t _moddedMenuBackgroundANM2; // ANM2* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 from ModEntry+0x550 -> +0x134, then GetLayer("Background") + uint32_t _moddedMenuPortraitANM2; // ANM2* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x31d) -> +0x138 + uint32_t _moddedGameOverANM2; // ANM2* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x431) -> +0x13c + uint32_t _moddedCoopMenuANM2; // ANM2* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0x545) -> +0x140 + uint32_t _moddedControlsANM2; // ANM2* // EntityConfig::load_players_xml 006998d0 (stack player, id @EBP-0x10208) allocates ANM2 (ModEntry flag +0xbbd) -> +0x144; copy-ctor FUN_0069b810 (push_back of EntityConfig_Player, size 0x148) qword copy 0x140..0x147 ends the 0x148 struct +}; +static_assert(offsetof(EntityConfig_Player, _id) == 0x0); +static_assert(offsetof(EntityConfig_Player, _name) == 0x4); +static_assert(offsetof(EntityConfig_Player, _skinPath) == 0x1c); +static_assert(offsetof(EntityConfig_Player, _nameImagePath) == 0x34); +static_assert(offsetof(EntityConfig_Player, _portraitPath) == 0x4c); +static_assert(offsetof(EntityConfig_Player, _unkString) == 0x64); +static_assert(offsetof(EntityConfig_Player, _extraPortraitPath) == 0x7c); +static_assert(offsetof(EntityConfig_Player, _costumeSuffixName) == 0x94); +static_assert(offsetof(EntityConfig_Player, _costumeID) == 0xac); +static_assert(offsetof(EntityConfig_Player, _heart) == 0xb0); +static_assert(offsetof(EntityConfig_Player, _armor) == 0xb4); +static_assert(offsetof(EntityConfig_Player, _blackHeart) == 0xb8); +static_assert(offsetof(EntityConfig_Player, _coins) == 0xbc); +static_assert(offsetof(EntityConfig_Player, _bombs) == 0xc0); +static_assert(offsetof(EntityConfig_Player, _keys) == 0xc4); +static_assert(offsetof(EntityConfig_Player, _card) == 0xc8); +static_assert(offsetof(EntityConfig_Player, _pill) == 0xcc); +static_assert(offsetof(EntityConfig_Player, _canShoot) == 0xd0); +static_assert(offsetof(EntityConfig_Player, _collectibles) == 0xd4); +static_assert(offsetof(EntityConfig_Player, _trinket) == 0xe0); +static_assert(offsetof(EntityConfig_Player, _skinColor) == 0xe4); +static_assert(offsetof(EntityConfig_Player, _achievement) == 0xe8); +static_assert(offsetof(EntityConfig_Player, _brokenHeart) == 0xec); +static_assert(offsetof(EntityConfig_Player, _pocketActiveID) == 0xf0); +static_assert(offsetof(EntityConfig_Player, _birthrightDescription) == 0xf4); +static_assert(offsetof(EntityConfig_Player, _bSkinParentName) == 0x10c); +static_assert(offsetof(EntityConfig_Player, _moddedTaintedPlayerID) == 0x124); +static_assert(offsetof(EntityConfig_Player, _hidden) == 0x128); +static_assert(offsetof(EntityConfig_Player, _modEntry) == 0x12c); +static_assert(offsetof(EntityConfig_Player, _renderCustomBackground) == 0x130); +static_assert(offsetof(EntityConfig_Player, _moddedMenuBackgroundANM2) == 0x134); +static_assert(offsetof(EntityConfig_Player, _moddedMenuPortraitANM2) == 0x138); +static_assert(offsetof(EntityConfig_Player, _moddedGameOverANM2) == 0x13c); +static_assert(offsetof(EntityConfig_Player, _moddedCoopMenuANM2) == 0x140); +static_assert(offsetof(EntityConfig_Player, _moddedControlsANM2) == 0x144); + +struct Entity_Bomb { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + int _explosionCountdown1; // Lua EntityBomb.SetExplosionCountdown 00452c40 writes this+0x410 (and +0x414) + uint8_t _pad_0x414[0x4]; + float _explosionDamage; // (not in REPENTOGON) Lua EntityBomb.ExplosionDamage getter (folded with Entity_Tear::FallingAcceleration 00435e50) returns this+0x418; Init sets 100.0 + float _fallSpeed; // Entity_Bomb::Update 006a24d0 adds this+0x41c to _posOffset.y, then adds this+0x420 to it; bounce sets it to -0.7*speed + float _fallAcceleration; // Entity_Bomb::Update 006a24d0 adds this+0x420 (default 0.8 when 0) to _fallSpeed each frame + uint8_t _pad_0x424[0x4]; + float _rocketAngle; // Entity_Bomb::Update 006a24d0 (rockets) velocity += sin/cos(this+0x428 deg); Angelic Prism (Familiar::Update) sets it via 00456820 on copies + float _rocketSpeed; // Entity_Bomb::Update 006a24d0 this+0x42c += _speedMultiplier and scales rocket thrust; prism copies set it via 0060ce10 + uint8_t _pad_0x430[0x4]; + float _scale; // Entity_Bomb::Update 006a24d0 multiplies SetSize/sprite scale by this+0x434; Init 006a2050 sets 1.0 + uint8_t _tearFlags[0x10]; // BitSet128; (not in REPENTOGON) Lua EntityBomb.Flags 005cd560 copies 16 bytes from this+0x438 + bool _isFetus; + uint8_t _pad_0x449[0x3]; + float _radiusMultiplier; // (not in REPENTOGON) Lua EntityBomb.RadiusMultiplier 0060cdc0 returns this+0x44c; Init sets 1.0 + uint8_t _pad_0x450[0x10]; + bool _prismTouched; // Entity_Familiar::Update 0061da10 (Angelic Prism) copies a Dr.Fetus bomb only if bomb+0x460==0 (0060cdd0) and sets it on the copies (0060cde0); REPENTOGON 0x45c is an int countdown here (Update sets 90, decrements) + uint8_t _pad_0x461[0x2]; + bool _loadCostumes; // set to 1 by 006a6910 (sets flags at +0x438) and 006a6930 (sets _scale); Entity_Bomb::Update 006a24d0 calls 006a6f10 (loads costume ANM2s at +0x464) when this+0x463 != 0 + ANM2 _bombCostumesSprites[5]; // 006a6f10 (named update_sparks, actually costume load) ANM2::Load into this+0x464...; ctor 006a1e80 eh-vector-constructs ANM2s at +0x464 + uint8_t _hitList[0x4]; // std_vector_uint; Entity_Bomb::HandleCollision 006a5f00 (6a61dd) passes this+0x9c8 to EntityList::HitListContains +}; +static_assert(offsetof(Entity_Bomb, _index) == 0x20); +static_assert(offsetof(Entity_Bomb, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Bomb, _type) == 0x28); +static_assert(offsetof(Entity_Bomb, _variant) == 0x2c); +static_assert(offsetof(Entity_Bomb, _subtype) == 0x30); +static_assert(offsetof(Entity_Bomb, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Bomb, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Bomb, _sprite) == 0x48); +static_assert(offsetof(Entity_Bomb, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Bomb, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Bomb, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Bomb, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Bomb, _flags) == 0x168); +static_assert(offsetof(Entity_Bomb, _valid) == 0x170); +static_assert(offsetof(Entity_Bomb, _visible) == 0x171); +static_assert(offsetof(Entity_Bomb, _exists) == 0x172); +static_assert(offsetof(Entity_Bomb, _dead) == 0x173); +static_assert(offsetof(Entity_Bomb, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Bomb, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Bomb, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Bomb, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Bomb, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Bomb, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Bomb, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Bomb, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Bomb, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Bomb, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Bomb, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Bomb, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Bomb, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Bomb, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Bomb, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Bomb, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Bomb, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Bomb, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Bomb, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Bomb, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Bomb, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Bomb, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Bomb, _mass) == 0x2d4); +static_assert(offsetof(Entity_Bomb, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Bomb, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Bomb, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Bomb, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Bomb, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Bomb, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Bomb, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Bomb, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Bomb, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Bomb, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Bomb, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Bomb, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Bomb, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Bomb, _pos) == 0x33c); +static_assert(offsetof(Entity_Bomb, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Bomb, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Bomb, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Bomb, _velocity) == 0x360); +static_assert(offsetof(Entity_Bomb, _size) == 0x370); +static_assert(offsetof(Entity_Bomb, _health) == 0x380); +static_assert(offsetof(Entity_Bomb, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Bomb, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Bomb, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Bomb, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Bomb, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Bomb, _parent) == 0x3bc); +static_assert(offsetof(Entity_Bomb, _child) == 0x3c0); +static_assert(offsetof(Entity_Bomb, _target) == 0x3c4); +static_assert(offsetof(Entity_Bomb, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Bomb, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Bomb, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Bomb, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Bomb, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Bomb, _explosionCountdown1) == 0x410); +static_assert(offsetof(Entity_Bomb, _explosionDamage) == 0x418); +static_assert(offsetof(Entity_Bomb, _fallSpeed) == 0x41c); +static_assert(offsetof(Entity_Bomb, _fallAcceleration) == 0x420); +static_assert(offsetof(Entity_Bomb, _rocketAngle) == 0x428); +static_assert(offsetof(Entity_Bomb, _rocketSpeed) == 0x42c); +static_assert(offsetof(Entity_Bomb, _scale) == 0x434); +static_assert(offsetof(Entity_Bomb, _tearFlags) == 0x438); +static_assert(offsetof(Entity_Bomb, _isFetus) == 0x448); +static_assert(offsetof(Entity_Bomb, _radiusMultiplier) == 0x44c); +static_assert(offsetof(Entity_Bomb, _prismTouched) == 0x460); +static_assert(offsetof(Entity_Bomb, _loadCostumes) == 0x463); +static_assert(offsetof(Entity_Bomb, _bombCostumesSprites) == 0x464); +static_assert(offsetof(Entity_Bomb, _hitList) == 0x9c8); + +struct Entity_Effect { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x14]; + uint8_t _varData[0x30]; // BitSet128; Entity_Effect::CreateTimer 0060af00 stores the timer callback/delay/times in effect(1000.119)+0x420/+0x424/+0x428 (per-variant scratch data) + int _state; + uint8_t _pad_0x454[0x8]; + int _timeout; + int _lifespan; + uint8_t _pad_0x464[0x44]; + uint8_t _hitList[0x4]; // std_vector_uint; (not in REPENTOGON) Entity_Effect::Update passes this+0x4a8 to EntityList::HitListContains 00431640 (5df65f, 5ecd27); ctor 005cd960 zeroes +0x4a8..0x4b0 +}; +static_assert(offsetof(Entity_Effect, _index) == 0x20); +static_assert(offsetof(Entity_Effect, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Effect, _type) == 0x28); +static_assert(offsetof(Entity_Effect, _variant) == 0x2c); +static_assert(offsetof(Entity_Effect, _subtype) == 0x30); +static_assert(offsetof(Entity_Effect, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Effect, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Effect, _sprite) == 0x48); +static_assert(offsetof(Entity_Effect, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Effect, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Effect, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Effect, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Effect, _flags) == 0x168); +static_assert(offsetof(Entity_Effect, _valid) == 0x170); +static_assert(offsetof(Entity_Effect, _visible) == 0x171); +static_assert(offsetof(Entity_Effect, _exists) == 0x172); +static_assert(offsetof(Entity_Effect, _dead) == 0x173); +static_assert(offsetof(Entity_Effect, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Effect, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Effect, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Effect, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Effect, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Effect, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Effect, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Effect, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Effect, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Effect, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Effect, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Effect, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Effect, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Effect, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Effect, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Effect, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Effect, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Effect, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Effect, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Effect, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Effect, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Effect, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Effect, _mass) == 0x2d4); +static_assert(offsetof(Entity_Effect, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Effect, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Effect, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Effect, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Effect, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Effect, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Effect, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Effect, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Effect, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Effect, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Effect, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Effect, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Effect, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Effect, _pos) == 0x33c); +static_assert(offsetof(Entity_Effect, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Effect, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Effect, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Effect, _velocity) == 0x360); +static_assert(offsetof(Entity_Effect, _size) == 0x370); +static_assert(offsetof(Entity_Effect, _health) == 0x380); +static_assert(offsetof(Entity_Effect, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Effect, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Effect, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Effect, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Effect, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Effect, _parent) == 0x3bc); +static_assert(offsetof(Entity_Effect, _child) == 0x3c0); +static_assert(offsetof(Entity_Effect, _target) == 0x3c4); +static_assert(offsetof(Entity_Effect, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Effect, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Effect, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Effect, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Effect, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Effect, _varData) == 0x420); +static_assert(offsetof(Entity_Effect, _state) == 0x450); +static_assert(offsetof(Entity_Effect, _timeout) == 0x45c); +static_assert(offsetof(Entity_Effect, _lifespan) == 0x460); +static_assert(offsetof(Entity_Effect, _hitList) == 0x4a8); + +struct Entity_Familiar { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + uint32_t _player; // Entity_Player* + uint8_t _pad_0x414[0x1e4]; + int _moveDelayNum; + uint8_t _pathfinder[0x778]; // NPCAI_Pathfinder + bool _isFollower; + bool _isDelayed; + uint8_t _pad_0xd76[0x6]; + int _coins; + int _hearts; + int _keys; + int _state; + uint8_t _pad_0xd8c[0x20]; + uint8_t _hitList[0x18]; // std_vector_uint; (not in REPENTOGON) Entity_Familiar::HandleCollision 006261f0, ai_umbilical_baby, ai_pickup_sack, apollyons_best_friend pass this+0xdac to EntityList::HitListContains + uint32_t _weapon; // Weapon* // Entity_Familiar::update_weapon 0062e620 stores Isaac::CreateWeapon() in this+0xdc4 / destroys it; delirium_morph 00631b20 frees it + bool _isLilDelirium; // Entity_Familiar::delirium_morph 00631b20 sets this+0xdc8=1; Entity_Familiar::Update 0061da10 tests it each frame + uint8_t _pad_0xdc9[0x3]; + ANM2 _chargeBarSprite; // (not in REPENTOGON) Entity_Familiar::Init 0060de70 loads gfx/chargebar.anm2 into this+0xdcc; ctor 0060d200 constructs an ANM2 there + uint8_t _pad_0xee0[0x8]; + uint32_t _item; // ItemConfig_Item* // Isaac::SpawnLocust 005b35c0 stores the ItemConfig collectible entry at this+0xee8 (Init 0060de70 does too for subtype 55555) + uint8_t _pad_0xeec[0x8]; + uint8_t _dirtColor[0x2c]; // ColorMod; Entity_Familiar::UpdateDirtColor 0064ca30 writes Room::GetFloorColorAt*2 to this+0xef4..0xefc (+0xf00=1.0) and lerps layers toward it + int _wispCollectibleType; // Entity_Familiar::WispInit 00436330 stores the source collectible (712 Lemegeton, or the original 515/490 before rerolling the subtype) in this+0xf20 +}; +static_assert(offsetof(Entity_Familiar, _index) == 0x20); +static_assert(offsetof(Entity_Familiar, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Familiar, _type) == 0x28); +static_assert(offsetof(Entity_Familiar, _variant) == 0x2c); +static_assert(offsetof(Entity_Familiar, _subtype) == 0x30); +static_assert(offsetof(Entity_Familiar, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Familiar, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Familiar, _sprite) == 0x48); +static_assert(offsetof(Entity_Familiar, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Familiar, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Familiar, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Familiar, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Familiar, _flags) == 0x168); +static_assert(offsetof(Entity_Familiar, _valid) == 0x170); +static_assert(offsetof(Entity_Familiar, _visible) == 0x171); +static_assert(offsetof(Entity_Familiar, _exists) == 0x172); +static_assert(offsetof(Entity_Familiar, _dead) == 0x173); +static_assert(offsetof(Entity_Familiar, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Familiar, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Familiar, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Familiar, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Familiar, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Familiar, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Familiar, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Familiar, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Familiar, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Familiar, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Familiar, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Familiar, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Familiar, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Familiar, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Familiar, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Familiar, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Familiar, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Familiar, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Familiar, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Familiar, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Familiar, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Familiar, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Familiar, _mass) == 0x2d4); +static_assert(offsetof(Entity_Familiar, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Familiar, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Familiar, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Familiar, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Familiar, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Familiar, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Familiar, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Familiar, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Familiar, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Familiar, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Familiar, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Familiar, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Familiar, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Familiar, _pos) == 0x33c); +static_assert(offsetof(Entity_Familiar, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Familiar, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Familiar, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Familiar, _velocity) == 0x360); +static_assert(offsetof(Entity_Familiar, _size) == 0x370); +static_assert(offsetof(Entity_Familiar, _health) == 0x380); +static_assert(offsetof(Entity_Familiar, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Familiar, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Familiar, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Familiar, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Familiar, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Familiar, _parent) == 0x3bc); +static_assert(offsetof(Entity_Familiar, _child) == 0x3c0); +static_assert(offsetof(Entity_Familiar, _target) == 0x3c4); +static_assert(offsetof(Entity_Familiar, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Familiar, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Familiar, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Familiar, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Familiar, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Familiar, _player) == 0x410); +static_assert(offsetof(Entity_Familiar, _moveDelayNum) == 0x5f8); +static_assert(offsetof(Entity_Familiar, _pathfinder) == 0x5fc); +static_assert(offsetof(Entity_Familiar, _isFollower) == 0xd74); +static_assert(offsetof(Entity_Familiar, _isDelayed) == 0xd75); +static_assert(offsetof(Entity_Familiar, _coins) == 0xd7c); +static_assert(offsetof(Entity_Familiar, _hearts) == 0xd80); +static_assert(offsetof(Entity_Familiar, _keys) == 0xd84); +static_assert(offsetof(Entity_Familiar, _state) == 0xd88); +static_assert(offsetof(Entity_Familiar, _hitList) == 0xdac); +static_assert(offsetof(Entity_Familiar, _weapon) == 0xdc4); +static_assert(offsetof(Entity_Familiar, _isLilDelirium) == 0xdc8); +static_assert(offsetof(Entity_Familiar, _chargeBarSprite) == 0xdcc); +static_assert(offsetof(Entity_Familiar, _item) == 0xee8); +static_assert(offsetof(Entity_Familiar, _dirtColor) == 0xef4); +static_assert(offsetof(Entity_Familiar, _wispCollectibleType) == 0xf20); + +struct Entity_Knife { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + uint8_t _tearFlags[0x34]; // BitSet128; Lua EntityKnife.TearFlags getter 0085de90 copies 16 bytes from this+0x410 + float _knifeDistance; // Lua EntityKnife.GetKnifeDistance 0085deb0 returns this+0x444 + float _knifeVelocity; // Lua EntityKnife.GetKnifeVelocity 004d77a0 returns this+0x448 + uint8_t _pad_0x44c[0x18]; + bool _isFlying; + bool _isSwinging; // Entity_Knife::SetAttackAnimation 009680d0 (Attack*/Swing anims) sets this+0x465=1 (word 0x101 with +0x466); SpinAttack 00968430 sets it too + uint8_t _pad_0x466[0x5e]; + float _pathOffset; + float _pathFollowSpeed; + uint8_t _pad_0x4cc[0x19]; + bool _prismApplied; // Entity_Knife::spawn_child_knife 00961870, called from the Angelic Prism block of Entity_Familiar::Update 0061da10 for flying knives, returns if this+0x4e5 set then sets it + bool _multidimensionalApplied; // Entity_Familiar::multidimensional_baby_copy_knife 009615e0 returns if knife+0x4e6 set, then sets it to 1 and spawns the two copies + uint8_t _pad_0x4e7[0x3]; + bool _isSpinAttack; // Entity_Knife::SpinAttack 00968430 (Spin* anims) sets this+0x4ea=1; SetAttackAnimation 009680d0 clears it +}; +static_assert(offsetof(Entity_Knife, _index) == 0x20); +static_assert(offsetof(Entity_Knife, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Knife, _type) == 0x28); +static_assert(offsetof(Entity_Knife, _variant) == 0x2c); +static_assert(offsetof(Entity_Knife, _subtype) == 0x30); +static_assert(offsetof(Entity_Knife, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Knife, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Knife, _sprite) == 0x48); +static_assert(offsetof(Entity_Knife, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Knife, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Knife, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Knife, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Knife, _flags) == 0x168); +static_assert(offsetof(Entity_Knife, _valid) == 0x170); +static_assert(offsetof(Entity_Knife, _visible) == 0x171); +static_assert(offsetof(Entity_Knife, _exists) == 0x172); +static_assert(offsetof(Entity_Knife, _dead) == 0x173); +static_assert(offsetof(Entity_Knife, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Knife, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Knife, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Knife, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Knife, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Knife, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Knife, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Knife, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Knife, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Knife, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Knife, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Knife, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Knife, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Knife, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Knife, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Knife, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Knife, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Knife, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Knife, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Knife, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Knife, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Knife, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Knife, _mass) == 0x2d4); +static_assert(offsetof(Entity_Knife, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Knife, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Knife, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Knife, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Knife, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Knife, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Knife, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Knife, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Knife, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Knife, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Knife, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Knife, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Knife, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Knife, _pos) == 0x33c); +static_assert(offsetof(Entity_Knife, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Knife, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Knife, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Knife, _velocity) == 0x360); +static_assert(offsetof(Entity_Knife, _size) == 0x370); +static_assert(offsetof(Entity_Knife, _health) == 0x380); +static_assert(offsetof(Entity_Knife, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Knife, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Knife, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Knife, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Knife, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Knife, _parent) == 0x3bc); +static_assert(offsetof(Entity_Knife, _child) == 0x3c0); +static_assert(offsetof(Entity_Knife, _target) == 0x3c4); +static_assert(offsetof(Entity_Knife, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Knife, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Knife, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Knife, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Knife, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Knife, _tearFlags) == 0x410); +static_assert(offsetof(Entity_Knife, _knifeDistance) == 0x444); +static_assert(offsetof(Entity_Knife, _knifeVelocity) == 0x448); +static_assert(offsetof(Entity_Knife, _isFlying) == 0x464); +static_assert(offsetof(Entity_Knife, _isSwinging) == 0x465); +static_assert(offsetof(Entity_Knife, _pathOffset) == 0x4c4); +static_assert(offsetof(Entity_Knife, _pathFollowSpeed) == 0x4c8); +static_assert(offsetof(Entity_Knife, _prismApplied) == 0x4e5); +static_assert(offsetof(Entity_Knife, _multidimensionalApplied) == 0x4e6); +static_assert(offsetof(Entity_Knife, _isSpinAttack) == 0x4ea); + +struct Entity_Laser { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x1c]; + uint8_t _tearFlags[0x30]; // BitSet128 + int _timeout; + uint8_t _pad_0x45c[0x1]; + bool _sampleLaser; + bool _shrink; + uint8_t _pad_0x45f[0x5]; + uint8_t _homingLaser[0x6c]; // HomingLaser + float _maxDistance; + uint32_t _homingType; + Vector _endPoint; + float _scale; + bool _disableFollowParent; + uint8_t _pad_0x4e5[0x1b]; + bool _multidimensionalTouched; + uint8_t _pad_0x501[0x13]; + bool _prismTouched; + bool _oneHit; + uint8_t _pad_0x516[0x2]; + bool _disableInitSound; // Entity_Laser::PlayInitSound 0096f880 returns at once if this+0x518 != 0; update_laser 00973c60 sets it on chained child lasers it spawns + uint8_t _pad_0x519[0x3]; + float _damageMultiplier; // Entity_Player::FireTechLaser 007aab70 stores its damageScale arg in laser+0x51c; Entity_Laser::Init 0096f590 sets 1.0 + uint8_t _hitList[0x40]; // std_vector_uint; Entity_Laser::CanDamageEntity 0096cf80 passes this+0x520 (or the parent laser chain via +0x52c) to EntityList::HitListContains + int _chainedLasers; // Entity_Laser::update_laser 00973c60 spawns a child laser with child+0x560 = this+0x560 - 1 while > 0, then zeroes it; copy_from_parent 0096f070 copies it +}; +static_assert(offsetof(Entity_Laser, _index) == 0x20); +static_assert(offsetof(Entity_Laser, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Laser, _type) == 0x28); +static_assert(offsetof(Entity_Laser, _variant) == 0x2c); +static_assert(offsetof(Entity_Laser, _subtype) == 0x30); +static_assert(offsetof(Entity_Laser, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Laser, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Laser, _sprite) == 0x48); +static_assert(offsetof(Entity_Laser, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Laser, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Laser, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Laser, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Laser, _flags) == 0x168); +static_assert(offsetof(Entity_Laser, _valid) == 0x170); +static_assert(offsetof(Entity_Laser, _visible) == 0x171); +static_assert(offsetof(Entity_Laser, _exists) == 0x172); +static_assert(offsetof(Entity_Laser, _dead) == 0x173); +static_assert(offsetof(Entity_Laser, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Laser, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Laser, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Laser, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Laser, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Laser, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Laser, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Laser, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Laser, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Laser, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Laser, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Laser, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Laser, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Laser, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Laser, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Laser, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Laser, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Laser, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Laser, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Laser, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Laser, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Laser, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Laser, _mass) == 0x2d4); +static_assert(offsetof(Entity_Laser, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Laser, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Laser, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Laser, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Laser, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Laser, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Laser, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Laser, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Laser, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Laser, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Laser, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Laser, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Laser, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Laser, _pos) == 0x33c); +static_assert(offsetof(Entity_Laser, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Laser, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Laser, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Laser, _velocity) == 0x360); +static_assert(offsetof(Entity_Laser, _size) == 0x370); +static_assert(offsetof(Entity_Laser, _health) == 0x380); +static_assert(offsetof(Entity_Laser, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Laser, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Laser, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Laser, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Laser, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Laser, _parent) == 0x3bc); +static_assert(offsetof(Entity_Laser, _child) == 0x3c0); +static_assert(offsetof(Entity_Laser, _target) == 0x3c4); +static_assert(offsetof(Entity_Laser, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Laser, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Laser, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Laser, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Laser, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Laser, _tearFlags) == 0x428); +static_assert(offsetof(Entity_Laser, _timeout) == 0x458); +static_assert(offsetof(Entity_Laser, _sampleLaser) == 0x45d); +static_assert(offsetof(Entity_Laser, _shrink) == 0x45e); +static_assert(offsetof(Entity_Laser, _homingLaser) == 0x464); +static_assert(offsetof(Entity_Laser, _maxDistance) == 0x4d0); +static_assert(offsetof(Entity_Laser, _homingType) == 0x4d4); +static_assert(offsetof(Entity_Laser, _endPoint) == 0x4d8); +static_assert(offsetof(Entity_Laser, _scale) == 0x4e0); +static_assert(offsetof(Entity_Laser, _disableFollowParent) == 0x4e4); +static_assert(offsetof(Entity_Laser, _multidimensionalTouched) == 0x500); +static_assert(offsetof(Entity_Laser, _prismTouched) == 0x514); +static_assert(offsetof(Entity_Laser, _oneHit) == 0x515); +static_assert(offsetof(Entity_Laser, _disableInitSound) == 0x518); +static_assert(offsetof(Entity_Laser, _damageMultiplier) == 0x51c); +static_assert(offsetof(Entity_Laser, _hitList) == 0x520); +static_assert(offsetof(Entity_Laser, _chainedLasers) == 0x560); + +struct Entity_NPC { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + int _stateFrame; + uint8_t _pathfinder[0x750]; // NPCAI_Pathfinder + int _state; + uint8_t _pad_0xb68[0x38]; + int _projectileCooldown; + int _projectileDelay; + uint8_t _pad_0xba8[0x8]; + Vector _v1; + Vector _v2; + int _i1; + int _i2; + uint32_t _deliriumBossType; + uint32_t _deliriumBossVariant; + uint16_t _deliriumTransformationTimer; + uint8_t _deliriumRemainingAttacks; + uint8_t _deliriumState; + uint8_t _pad_0xbd4[0x4]; + uint32_t _deliriumAttackID; + uint8_t _deliriumAttackAngle; + uint8_t _pad_0xbdd[0x3]; + uint32_t _deliriumCycleID; + uint8_t _pad_0xbe4[0x59]; + bool _isBoss; + uint8_t _pad_0xc3e[0x2]; + float _shieldStrength; + uint8_t _pad_0xc44[0x1f]; + bool _isChampion; + int _championColorIdx; + uint8_t _pad_0xc68[0xc]; + uint16_t _championRegenTimer; + uint8_t _pad_0xc76[0x2]; + int _bosscoloridx; + uint8_t _pad_0xc7c[0x30]; + uint8_t _dirtColor[0x140]; // ColorMod; Entity_NPC::UpdateDirtColor 006c04b0 writes Room::GetFloorColorAt*2 to this+0xcac..0xcb4 and lerps sprite layers toward it + ANM2 _chargeBarSprite; // gfx/chargebar.anm2 loaded by Entity_NPC::UpdateChargeBar (006d8e40) + uint8_t _hitList[0x1c]; // std_vector_uint; Entity_NPC::HandleCollision 006cd410 (6cdfb3, 6cfdfa...) and NpcAI::ENTITY_DARK_ESAU 005542e0 pass this+0xf00 to EntityList::HitListContains 00431640 + int32_t _controllerID; // Entity_NPC::IsControllerActionPressed 006d8260 passes this+0xf1c to input_is_action_pressed (-1 = none); GetControllerMovementInput 006d85a0 / UpdateControllerMovement 006d9050 test it + Vector _controllerMovement; // movement written by Entity_NPC::UpdateControllerMovement (006d9050); 21 AIs reset it each frame + uint32_t _aimTargetEffect; // void* // effect 1000.30 an NPC under player control aims at (Entity_NPC::GetAimTargetPosition 006d8d30) + uint8_t _pad_0xf2c[0x14]; + uint32_t _sirenPlayerEntity; // Entity_Player* // NpcHelper::siren_charmed_count 0058e590 counts familiars whose _player (+0x410) == npc+0xf40; NpcAI::siren_release_stolen_items 005911b0 animates the collectible pickup on it + uint8_t _pad_0xf44[0xc]; + uint32_t _pickupGhostsEntity; // Entity_Effect* // Entity_NPC::UpdatePickupGhosts 006da530 passes/stores this+0xf50 through Entity_Effect::CreateLootPreview and removes it +}; +static_assert(offsetof(Entity_NPC, _index) == 0x20); +static_assert(offsetof(Entity_NPC, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_NPC, _type) == 0x28); +static_assert(offsetof(Entity_NPC, _variant) == 0x2c); +static_assert(offsetof(Entity_NPC, _subtype) == 0x30); +static_assert(offsetof(Entity_NPC, _spawnerType) == 0x34); +static_assert(offsetof(Entity_NPC, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_NPC, _sprite) == 0x48); +static_assert(offsetof(Entity_NPC, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_NPC, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_NPC, _isFlipX) == 0x148); +static_assert(offsetof(Entity_NPC, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_NPC, _flags) == 0x168); +static_assert(offsetof(Entity_NPC, _valid) == 0x170); +static_assert(offsetof(Entity_NPC, _visible) == 0x171); +static_assert(offsetof(Entity_NPC, _exists) == 0x172); +static_assert(offsetof(Entity_NPC, _dead) == 0x173); +static_assert(offsetof(Entity_NPC, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_NPC, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_NPC, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_NPC, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_NPC, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_NPC, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_NPC, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_NPC, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_NPC, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_NPC, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_NPC, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_NPC, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_NPC, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_NPC, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_NPC, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_NPC, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_NPC, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_NPC, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_NPC, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_NPC, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_NPC, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_NPC, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_NPC, _mass) == 0x2d4); +static_assert(offsetof(Entity_NPC, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_NPC, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_NPC, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_NPC, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_NPC, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_NPC, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_NPC, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_NPC, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_NPC, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_NPC, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_NPC, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_NPC, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_NPC, _targetPosition) == 0x334); +static_assert(offsetof(Entity_NPC, _pos) == 0x33c); +static_assert(offsetof(Entity_NPC, _posOffset) == 0x34c); +static_assert(offsetof(Entity_NPC, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_NPC, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_NPC, _velocity) == 0x360); +static_assert(offsetof(Entity_NPC, _size) == 0x370); +static_assert(offsetof(Entity_NPC, _health) == 0x380); +static_assert(offsetof(Entity_NPC, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_NPC, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_NPC, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_NPC, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_NPC, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_NPC, _parent) == 0x3bc); +static_assert(offsetof(Entity_NPC, _child) == 0x3c0); +static_assert(offsetof(Entity_NPC, _target) == 0x3c4); +static_assert(offsetof(Entity_NPC, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_NPC, _minecart) == 0x3d4); +static_assert(offsetof(Entity_NPC, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_NPC, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_NPC, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_NPC, _stateFrame) == 0x410); +static_assert(offsetof(Entity_NPC, _pathfinder) == 0x414); +static_assert(offsetof(Entity_NPC, _state) == 0xb64); +static_assert(offsetof(Entity_NPC, _projectileCooldown) == 0xba0); +static_assert(offsetof(Entity_NPC, _projectileDelay) == 0xba4); +static_assert(offsetof(Entity_NPC, _v1) == 0xbb0); +static_assert(offsetof(Entity_NPC, _v2) == 0xbb8); +static_assert(offsetof(Entity_NPC, _i1) == 0xbc0); +static_assert(offsetof(Entity_NPC, _i2) == 0xbc4); +static_assert(offsetof(Entity_NPC, _deliriumBossType) == 0xbc8); +static_assert(offsetof(Entity_NPC, _deliriumBossVariant) == 0xbcc); +static_assert(offsetof(Entity_NPC, _deliriumTransformationTimer) == 0xbd0); +static_assert(offsetof(Entity_NPC, _deliriumRemainingAttacks) == 0xbd2); +static_assert(offsetof(Entity_NPC, _deliriumState) == 0xbd3); +static_assert(offsetof(Entity_NPC, _deliriumAttackID) == 0xbd8); +static_assert(offsetof(Entity_NPC, _deliriumAttackAngle) == 0xbdc); +static_assert(offsetof(Entity_NPC, _deliriumCycleID) == 0xbe0); +static_assert(offsetof(Entity_NPC, _isBoss) == 0xc3d); +static_assert(offsetof(Entity_NPC, _shieldStrength) == 0xc40); +static_assert(offsetof(Entity_NPC, _isChampion) == 0xc63); +static_assert(offsetof(Entity_NPC, _championColorIdx) == 0xc64); +static_assert(offsetof(Entity_NPC, _championRegenTimer) == 0xc74); +static_assert(offsetof(Entity_NPC, _bosscoloridx) == 0xc78); +static_assert(offsetof(Entity_NPC, _dirtColor) == 0xcac); +static_assert(offsetof(Entity_NPC, _chargeBarSprite) == 0xdec); +static_assert(offsetof(Entity_NPC, _hitList) == 0xf00); +static_assert(offsetof(Entity_NPC, _controllerID) == 0xf1c); +static_assert(offsetof(Entity_NPC, _controllerMovement) == 0xf20); +static_assert(offsetof(Entity_NPC, _aimTargetEffect) == 0xf28); +static_assert(offsetof(Entity_NPC, _sirenPlayerEntity) == 0xf40); +static_assert(offsetof(Entity_NPC, _pickupGhostsEntity) == 0xf50); + +struct Entity_Pickup { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + ANM2 _priceANM2; // Entity_Pickup::update_price_sprite 006e2570 ANM2::Reset/Load (shop price sprite) on this+0x410; ctor 006e0010 constructs ANM2 there + int _charge; + int _optionsPickupIndex; + bool _isTouched; + uint8_t _pad_0x52d[0x1]; + bool _isForceBlind; // Entity_Pickup::SetForceBlind 006e1e60 stores the arg at this+0x52e and calls UpdateSprite when a collectible changes + uint8_t _pad_0x52f[0x5]; + int _price; + bool _isAutoUpdatePrice; + uint8_t _pad_0x539[0x3]; + int _shopItemId; + int _timeout; + int _wait; + uint8_t _pad_0x548[0xc]; + int _dropDelay; // Entity_Pickup::Update 006e3940 starts: if this+0x554>0 decrement and skip the update; Entity_Player::AddCollectible staggers spawned pickups via +0x554 + uint8_t _pad_0x558[0x38]; + uint32_t _pickupGhost; // Entity_Effect* // Entity_Pickup::UpdateLootPreview 006e17c0 (Guppys Eye) stores Entity_Effect::CreateLootPreview result at this+0x590 and removes it + uint32_t _megaChestCollectible[2]; // Entity_Pickup* // Entity_Pickup::SetAlternatePedestal 006e1a80 links two pedestals at the same position (types 14/19) via this+0x594 / other+0x598 + int _varData; // Entity_Player::DropCollectible 00790530 copies the active slot _varData (player+0x1580+i*0x20+0x1c) into pickup+0x59c next to _charge (+0x524); Morph 006e30a0 zeroes it + uint32_t _cycleCollectibleList[8]; // Entity_Pickup::TryFlip 006e1640 rebuilds the cycle list: this[+0x5a0 + count*4] = id, count at +0x5c0 + uint32_t _cycleCollectibleCount; // Entity_Pickup::TryFlip 006e1640 zeroes and increments this+0x5c0 while filling +0x5a0[] + uint8_t _pad_0x5c4[0x4]; + uint8_t _flipSaveState[0x8]; // KAGE_SmartPointer_EntitySaveState; Entity_Pickup::TryFlip 006e1640 requires this+0x5c8 != 0 and swaps the pedestal with that save state; ctor zeroes +0x5c8/+0x5cc (smart pointer) + ANM2 _altPedestalANM2; // Entity_Pickup::Update 006e3940: when +0x5c8 set and a player has Flip (711), copies the main sprite into this+0x5d0 and load_collectible_gfx of the flip item (the ghost item sprite); ANM2::Reset otherwise +}; +static_assert(offsetof(Entity_Pickup, _index) == 0x20); +static_assert(offsetof(Entity_Pickup, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Pickup, _type) == 0x28); +static_assert(offsetof(Entity_Pickup, _variant) == 0x2c); +static_assert(offsetof(Entity_Pickup, _subtype) == 0x30); +static_assert(offsetof(Entity_Pickup, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Pickup, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Pickup, _sprite) == 0x48); +static_assert(offsetof(Entity_Pickup, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Pickup, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Pickup, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Pickup, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Pickup, _flags) == 0x168); +static_assert(offsetof(Entity_Pickup, _valid) == 0x170); +static_assert(offsetof(Entity_Pickup, _visible) == 0x171); +static_assert(offsetof(Entity_Pickup, _exists) == 0x172); +static_assert(offsetof(Entity_Pickup, _dead) == 0x173); +static_assert(offsetof(Entity_Pickup, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Pickup, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Pickup, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Pickup, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Pickup, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Pickup, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Pickup, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Pickup, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Pickup, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Pickup, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Pickup, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Pickup, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Pickup, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Pickup, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Pickup, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Pickup, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Pickup, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Pickup, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Pickup, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Pickup, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Pickup, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Pickup, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Pickup, _mass) == 0x2d4); +static_assert(offsetof(Entity_Pickup, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Pickup, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Pickup, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Pickup, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Pickup, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Pickup, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Pickup, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Pickup, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Pickup, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Pickup, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Pickup, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Pickup, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Pickup, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Pickup, _pos) == 0x33c); +static_assert(offsetof(Entity_Pickup, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Pickup, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Pickup, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Pickup, _velocity) == 0x360); +static_assert(offsetof(Entity_Pickup, _size) == 0x370); +static_assert(offsetof(Entity_Pickup, _health) == 0x380); +static_assert(offsetof(Entity_Pickup, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Pickup, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Pickup, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Pickup, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Pickup, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Pickup, _parent) == 0x3bc); +static_assert(offsetof(Entity_Pickup, _child) == 0x3c0); +static_assert(offsetof(Entity_Pickup, _target) == 0x3c4); +static_assert(offsetof(Entity_Pickup, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Pickup, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Pickup, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Pickup, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Pickup, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Pickup, _priceANM2) == 0x410); +static_assert(offsetof(Entity_Pickup, _charge) == 0x524); +static_assert(offsetof(Entity_Pickup, _optionsPickupIndex) == 0x528); +static_assert(offsetof(Entity_Pickup, _isTouched) == 0x52c); +static_assert(offsetof(Entity_Pickup, _isForceBlind) == 0x52e); +static_assert(offsetof(Entity_Pickup, _price) == 0x534); +static_assert(offsetof(Entity_Pickup, _isAutoUpdatePrice) == 0x538); +static_assert(offsetof(Entity_Pickup, _shopItemId) == 0x53c); +static_assert(offsetof(Entity_Pickup, _timeout) == 0x540); +static_assert(offsetof(Entity_Pickup, _wait) == 0x544); +static_assert(offsetof(Entity_Pickup, _dropDelay) == 0x554); +static_assert(offsetof(Entity_Pickup, _pickupGhost) == 0x590); +static_assert(offsetof(Entity_Pickup, _megaChestCollectible) == 0x594); +static_assert(offsetof(Entity_Pickup, _varData) == 0x59c); +static_assert(offsetof(Entity_Pickup, _cycleCollectibleList) == 0x5a0); +static_assert(offsetof(Entity_Pickup, _cycleCollectibleCount) == 0x5c0); +static_assert(offsetof(Entity_Pickup, _flipSaveState) == 0x5c8); +static_assert(offsetof(Entity_Pickup, _altPedestalANM2) == 0x5d0); + +struct TemporaryEffects { + uint32_t _cacheFlags; // new vs REPENTOGON: 00930220 AddEffect / 009303f0 RemoveEffect OR ItemConfig_Item cacheFlags (+0x54) into *this + uint8_t _effects[0xc]; // vector_TemporaryEffect; 007537a0 Lua GetEffectsList returns this+4; 00930220 AddEffect/009303f0 RemoveEffect walk this[1]..this[2] stride 0x10, push/erase + bool _shouldEvaluateCache; // 00930220 AddEffect / 009303f0 RemoveEffect / 009306c0 ClearEffects set byte this+0x10 = 1 after any change + bool _disabled; // 00930220 AddEffect, 009303f0 RemoveEffect, 00930680 HasNullEffect, 009306c0 ClearEffects all bail out if byte this+0x11 != 0 + uint8_t _pad_0x12[0x2]; + uint32_t _player; // Entity_Player* // 00930220 AddEffect: Entity_Player::AddCostume(this[5],...) ; RemoveEffect: this[5]==0 -> Room::TriggerEffectRemoved else Entity_Player::trigger_collectible_effect_removed +}; +static_assert(offsetof(TemporaryEffects, _cacheFlags) == 0x0); +static_assert(offsetof(TemporaryEffects, _effects) == 0x4); +static_assert(offsetof(TemporaryEffects, _shouldEvaluateCache) == 0x10); +static_assert(offsetof(TemporaryEffects, _disabled) == 0x11); +static_assert(offsetof(TemporaryEffects, _player) == 0x14); + +struct Entity_Player { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + bool _isControlsEnabled; + uint8_t _pad_0x411[0x3]; + int _controlsCooldown; + uint8_t _pad_0x418[0x4]; + ANM2 _bodySprite; // ctor 00753da0 builds ANM2 here first; Render 0078b640 checks its _loaded and reads its null frame for the held item + uint8_t _pad_0x530[0x9b4]; + ANM2 _bloodGushSprite; // ctor 00753da0 builds ANM2 here after the 7-sprite array at 0x758; Update 00782af0 ANM2::Update on it; same layout as REPENTOGON (shift 0 up to 0x1368) + ANM2 _heldSprite; // ctor 00753da0 ANM2; AnimateCollectible 007ab380 loads the item graphic into it, rewinds and plays it + uint8_t _pad_0x110c[0x114]; + uint8_t _costumeSpriteDescs[0x100]; // vector_CostumeSpriteDesc; ctor 00753da0 zeroes a 3-dword vector at 0x1220..0x1228 right after the ANM2 at 0x110c; shift-0 region bracketed by 0xff8 and 0x1340 + uint8_t _headAnim[0x18]; // std_string; ctor 00753da0 inits an MSVC std::string at 0x1320 (size 0x1330=0, cap 0x1334=0xf); shift-0 region + int _blinkTime; // Lua field HeadFrameDelay = +0x1338; update_shooting 0077b020 sets 8/10 and counts it down + int _headDirectionTime; // update_shooting 0077b020 counts it down beside 0x1338 and only refocuses the head while it is <0; bracketed by 0x1338 and 0x1340 (shift 0) + int _maxHearts; + int _redHearts; + int _eternalHearts; + int _soulHearts; + int _blackHearts; + int _jarHearts; + int _jarFlies; + int _numKeys; + bool _hasGoldenKey; + bool _hasGoldenBomb; + uint8_t _pad_0x1362[0x2]; + int _numBombs; + int _numCoins; + int _numBlueFlies; + int _numBlueSpiders; + int _gnawedLeafTimer; // Update 00782af0: HasCollectible(210 Gnawed Leaf) with no action triggers -> ++, >60 adds the null costume; reset to 0 otherwise + int _lastActionTriggers; + short _bloodLustCounter; // EvaluateItems 00763570 reads it as short beside GetCollectibleEffectNum(411 Blood Lust); TakeDamage 007729d0 increments it + uint8_t _pad_0x137e[0xa]; + int _metronomeCollectibleID; // UseActiveItem 005b39d0 Metronome case stores the rolled item id; GetCollectibleNum 00770ca0 +1 when HasCollectibleEffect(488) and id matches; room_exit 007a6680 clears it + uint8_t _pad_0x138c[0x8]; + int _monkeyPawCounter; // TakeDamage 007729d0 decrements it, at <1 TryRemoveTrinket(20 Monkey Paw) and resets to 3 + uint8_t _pad_0x1398[0x24]; + int _damageCooldown; + int _playerType; + uint8_t _pad_0x13c4[0x48]; + uint32_t _markedTarget; // Entity_Effect* + uint32_t _heldEntity; // Entity* + uint8_t _pad_0x1414[0x1c]; + int _tractorBeam; + uint8_t _pad_0x1434[0x24]; + uint32_t _megaBlastLaser; // Entity_Laser* + int _rUaWizardTimer; + float _maxfiredelay; + float _shotspeed; + uint8_t _pad_0x1468[0x8]; + float _damage; + float _tearheight; + float _tearfallspeed; + float _tearfallaccel; + float _tearrange; + uint8_t _pad_0x1484[0x40]; + uint8_t _laserColor[0x44]; // ColorMod + TemporaryEffects _temporaryeffects; + int _speedModifier; + int _fireDelayModifier; + int _damageModifier; + int _tearRangeModifier; + int _shotSpeedModifier; // EvaluateItems 00763570 shot-speed block: shotspeed = (this+0x1530 + ...)*0.2 + ...; zeroed under Curse Mist/coop ghost like the kept 0x1520..0x152c modifiers (shift +8) + int _luckModifier; // EvaluateItems 00763570 luck block (cache 0x400) adds it, zeroed under Curse Mist/coop ghost (shift +8) + int _donateLuck; // DonateLuck 007b2200 (Lua EntityPlayer:DonateLuck) adds the argument here and sets cache flag 0x400; EvaluateItems adds it to luck + int _potatoPeelerCounter; // EvaluateItems 00763570: damage += (0x153c+0x1540)*0.2 and Cube of Meat level = 0x153c + GetCollectibleNum(73) + effect num(73) (shift +8) + uint8_t _pad_0x1540[0xc]; + float _edenSpeed; // EvaluateItems 00763570 speed block (cache 0x10) writes it into the per-player-type base speed table at Eden (9) and Tainted Eden (0x1e) slots + float _edenFireDelay; // EvaluateItems 00763570 fire-delay block (cache 2) adds it when playerType is 9/0x1e (shift +0xc) + float _edenDamage; // EvaluateItems 00763570 damage block adds it when playerType is 9/0x1e (shift +0xc) + float _edenTearRange; // EvaluateItems 00763570 range block (beside the -80/-60 per-character range) adds it when playerType is 9/0x1e + float _edenShotSpeed; // EvaluateItems 00763570 shot-speed block: shotspeed += it when playerType is 9/0x1e + float _edenLuck; // EvaluateItems 00763570 luck block (cache 0x400) sums it with the luck modifiers; last of the 6-float Eden block 0x154c..0x1560, right before kept _movespeed 0x1568 + uint8_t _pad_0x1564[0x4]; + float _movespeed; + float _luck; + bool _canFly; + uint8_t _pad_0x1571[0x3]; + uint32_t _cacheFlags; + int8_t _tearDisplacement; + uint8_t _pad_0x1579[0x3]; + float _meleeDamage; // EvaluateItems' damage before weapon multipliers; the hug's 2x base (characters_9.md) + uint8_t _pad_0x1580[0x80]; + int _itemState; + int _itemStateCooldown; + uint32_t _vampireCharmKills; + uint8_t _pad_0x160c[0x4]; + int _bombPlaceDelay; + int _forgottenSwapFormCooldown; + int _controllerIndex; + int _playerIndex; + uint8_t _pad_0x1620[0x4]; + int _moveDirection; + int _headDirection; + int _fireDirection; + Vector _aimDirection; + bool _areOpposingShootDirectionsPressed; + uint8_t _pad_0x1639[0x3]; + Vector _lastDirection; + Vector _movementVector; + Vector _tearsOffset; + Vector _recentMovementVector; + uint8_t _pad_0x165c[0x4c]; + uint64_t _lastDamageFlags; + uint8_t _pad_0x16b0[0x4]; + int _totalDamageTaken; + uint8_t _pad_0x16b8[0x8]; + uint32_t _trinketsID[2]; // not in the input list (REPENTOGON 0x16b0): HasGoldenTrinket 00771620 and FUN_007a42b0 loop 2 slots at 0x16c0 masking id 0x7fff / golden 0x8000 + uint8_t _collectibleCounts[0x80]; // std_vector_int; GetCollectibleNum 00770ca0 indexes begin 0x16c8 / end 0x16cc by collectible id (shift +0x10) + uint8_t _smeltedTrinkets[0xc]; // vector_SmeltedTrinketDesc; HasGoldenTrinket 00771620 indexes *(this+0x1748) by trinket id *4 and tests the short at +2; TryRemoveSmeltedTrinket 00772260 (shift +0x10) + uint8_t _voidedCollectibles[0x6c]; // std_vector_int; VoidHasCollectible 007711a0: when an active slot holds 477 Void, scans begin 0x1754 / end 0x1758 for the id (shift +0x10) + uint32_t _actionHoldDrop; // FUN_007a42b0 (called by Update): ++ while ACTION_DROP (11) is pressed, 0 when released; >=0x79 frames drops both trinkets and pocket items + uint8_t _pad_0x17c4[0x60]; + bool _postLevelInitFinished; // InitPostLevelInitStats 007bc740 sets it to 1 at the end; PlayerManager::replace_player 009bee80 calls InitPostLevelInitStats when it is 0; level_start 007a4ba0 returns early when 0 + bool _canShoot; + uint8_t _pad_0x1826[0x2]; + uint8_t _footprintColor1[0x2c]; // ColorMod + uint8_t _footprintColor2[0x34]; // ColorMod + int _ponyCharge; + int _planCKillCountdown; + uint8_t _pad_0x1890[0x4]; + int _headColor; + int _bodyColor; + uint8_t _pad_0x189c[0x8]; + int _epiphoraCharge; + uint8_t _pad_0x18a8[0x8]; + uint32_t _deadEyeCharges; + uint32_t _deadEyeMisses; + uint8_t _pad_0x18b8[0x4]; + uint32_t _mawOfTheVoidChargeTimer; + uint8_t _pad_0x18c0[0x28]; + uint32_t _imExcitedSpeedupCountdown; + uint8_t _pad_0x18ec[0x8]; + int _megaBlastDuration; + int _peeBurstCooldown; + int _maxPeeBurstCooldown; + int _bladderCharge; + int _maxBladderCharge; + bool _isUrethraBlocked; + uint8_t _pad_0x1909[0x3]; + int _nextUrethraBlockFrame; + uint8_t _friendBallEnemy[0x1c]; // EntityDesc + int _purityState; + int _immaculateConceptionState; + int _cambionConceptionState; + uint32_t _conceptionFamiliarFlags; + float _d8DamageModifier; + float _d8SpeedModifier; + float _d8RangeModifier; + float _d8FireDelayModifier; + int _goldenHearts; + uint8_t _pad_0x1950[0x19c]; + int _babySkin; + uint8_t _pad_0x1af0[0x28c]; + uint8_t _movingBoxContents[0xc]; // vector_EntitySaveState + int _boneHearts; + int _boneHeartsMask; + int _hallowedGroundCountdown; + uint8_t _pad_0x1d94[0x4]; + int _subPlayer; + uint8_t _pad_0x1d9c[0x4]; + int _brokenHearts; + int _rottenHearts; + int _effectiveSoulCharge; + int _effectiveBloodCharge; + uint8_t _pad_0x1db0[0x20]; + uint32_t _urnSouls; + int _numGigaBombs; + uint8_t _pad_0x1dd8[0x14]; + uint8_t _history[0x14]; // History; DischargeActiveItem 007ac7e0 calls History::AddHistoryItem 00721a70 with ECX = this+0x1dec; ctor 00753da0 inits 0x1dec..0x1dfc (owner ptr = this at +0x10) right before _inventory 0x1e00 (shift +0x14) + int _inventory[16]; // Tainted Isaac's slots of history indices, -1 empty; slot 0 dropped by a pickup past GetMaxInventorySize (characters_9.md) + uint8_t _pad_0x1e40[0x14]; + uint8_t _afterImageFrames[0x14]; // deque_afterImageFrames; Render 0078ca00 walks a deque (map 0x1e58, mapsize 0x1e5c, off 0x1e60, size 0x1e64) of frames and redraws the player at each stored position with alpha frame/10 (the after images); ctor 00753da0 inits it with a proxy (shift +0x1c) + uint8_t _twinPlayer[0x4]; // EntityPtr; InitTwin 007d2000 sets it on both twins with the EntityPtr multiset erase/insert; GetOtherTwin 00417820 returns it (same member as the Lua _otherTwin; shift +0x1c) + uint32_t _backupPlayer; // Entity_Player* // GetCollectibleNum 00770ca0 adds GetCollectibleNum(*(this+0x1e6c)) for tag-0x40000000 items and AddCostume 0075d1d0 mirrors costumes onto it, as REPENTOGON's GetOwners/GetTotalCount do with _backupPlayer + uint8_t _pad_0x1e70[0x4]; + int _redStewBonusDuration; // EvaluateItems 00763570 damage += (it/10)*0.04 while >0; update_effects 00794e50 counts it down and re-evaluates at each /10 step; UseActiveItem 005b39d0 adds 2700 behind a HasCollectible test; bracketed by _backupPlayer 0x1e6c and Mars 0x1e8c, all +0x1c + uint8_t _pad_0x1e78[0x14]; + int _marsUnk1; // ctor 00753da0 inits it to 90; update_body_animations 00779b40 copies it into the Mars cooldown 0x1e90 on a dash (it is the dash cooldown length) + int _marsCooldown; // update_body_animations 00779b40: a Mars (593) double tap dashes only while it is <1, then it is set from 0x1e8c + int _marsUnk2; // ctor inits -1; update_body_animations 00779b40 stores the dash direction (the tapped action) here on a Mars dash + bool _marsUnkBool; // ctor inits 1; update_body_animations 00779b40 clears it when a Mars dash starts + uint8_t _pad_0x1e99[0x3]; + int _marsLastTapDirection; // not in REPENTOGON: update_body_animations 00779b40 stores the last tapped move action (0..3); a repeat within 11 frames triggers the Mars dash + int _marsTapFrames; // not in REPENTOGON: update_body_animations 00779b40 frames since the last move tap, ++ each frame capped at 10000, reset to 0 on a tap; <0xb means double tap + uint8_t _pad_0x1ea4[0xc]; + float _rockBottomMoveSpeed; // EvaluateItems 00763570 Rock Bottom (562) block, cache 0x10: movespeed = max(movespeed, this+0x1eb0) and stores it back (shift +0x1c) + float _rockBottomMaxFireDelay; // EvaluateItems 00763570 Rock Bottom block, cache 2: stores max(30/(maxfiredelay+1), it), the tears rate, then rebuilds maxfiredelay from it + float _rockBottomDamage; // EvaluateItems 00763570 Rock Bottom block, cache 1: damage = max(damage, it), stored back + float _rockBottomTearRange; // EvaluateItems 00763570 Rock Bottom block, cache 8: tearrange = max(tearrange, it), stored back + float _rockBottomShotSpeed; // EvaluateItems 00763570 Rock Bottom block, cache 4: shotspeed = max(shotspeed, it), stored back + float _rockBottomLuck; // EvaluateItems 00763570 Rock Bottom block, cache 0x400: luck = max(luck, it), stored back + uint8_t _pad_0x1ec8[0x14]; + uint32_t _revelationChargeTimer; // update_shooting 0077b020: with Revelation (643) fires the laser once it is >150 (shift +0x1c) + uint32_t _montezumaChargeTimer; // update_shooting 0077b020: with Montezuma's Revenge (680) fires the backward laser once it is >150 (shift +0x1c) + uint8_t _pad_0x1ee4[0x10]; + uint32_t _maggyHealthDrainCooldown; // Update 00782af0: set to 300 and counted down; at <1 drains one red/soul heart (Tainted Magdalene temporary hearts); TakeDamage 007729d0 resets it to 0 (shift +0x24) + int _maggySwingCooldown; // same member as db/fields.tsv _hugCountdown (Tainted Magdalene swing: 9 on a swing, swings again under 3); REPENTOGON 0x1ed4 +0x24 like its neighbour 0x1ef4 + uint8_t _pad_0x1efc[0x30]; + int _suplexState; // update_suplex 007d4390: state machine (1 aim, 2 grab, 3 leap up, 5 super leap) at this+0x7cb*4 + int _suplexAimCountdown; // update_suplex 007d4390 counts it down (this+0x7cc*4) and ends the aim at <=0; update_effects 00794e50 sets it to 60 when Suplex starts + Vector _suplexTargetPos; // update_suplex 007d4390 stores the held entity's (or own) position here on LeapUp (this+0x7cd/0x7ce*4) + Vector _suplexLandPos; // update_suplex 007d4390 stores the player's own position here on LeapUp (this+1999/2000*4), right after _suplexTargetPos + int8_t _bagOfCraftingContent[8]; // not in the input list (REPENTOGON 0x1f20): FUN_007a42b0 rotates the 8 bytes at 0x1f44 on the drop button when playerType is 23 Tainted Cain (shift +0x24) + uint8_t _bagOfCraftingOutput[0x8]; // BagOfCraftingOutput; ControlActiveItem 00791a40: with item state 710 Bag of Crafting, holding 30 frames queues collectible *(this+0x1f4c) from pool *(this+0x1f50), then clears it to 0/-1 with the 8-byte bag at 0x1f44; UseActiveItem 005b39d0 fills both + int _poopMana; + uint8_t _pad_0x1f58[0x24]; + int _eveSumptoriumCharge; + uint8_t _itemWispsList[0x38]; // std_map_int_int + int _modelingClayEffect; + int _keepersSackBonus; // FUN_007d8630 adds coins spent here when HasCollectible(716 Keeper's Sack); EvaluateItems 00763570 turns it into damage/range/speed bonuses (shift +0x24) + uint8_t _pad_0x1fc0[0x44]; + bool _darkArtsBlastPending; // set as Dark Arts ends; the blast waits for the last snare (characters_9.md) + uint8_t _pad_0x2005[0x3]; + float _darkArtsDamage; // the snares' summed damage, the end blast's DamageRadius damage (characters_9.md) + uint32_t _darkArtsLastSnare; // Entity* // the newest 1000.194 Dark Snare (characters_9.md) + uint8_t _pad_0x2010[0x1c]; + bool _hasCurseMistEffect; + uint8_t _pad_0x202d[0x3]; + uint8_t _consumablesBackup[0x60]; // ConsumableData; AddCurseMistEffect 007d8980 copies coins/keys/bombs/golden key/golden bomb/soul charge/giga bombs/poop mana/blood charge into 0x2030..0x204c in ConsumableData order (shift +0x1c) + uint8_t _wildCardItemType; // UseCard 007b78de case CARD_WILD (80): switches on this byte (0 pill, 1 card, 2 active item) (shift +0x2c) + uint8_t _pad_0x2091[0x3]; + int _wildCardItem; // UseCard case CARD_WILD (80) reuses this id as the pill/card/active item; 0x2098 holds the pill flags / active var data passed with it + uint8_t _pad_0x2098[0x11]; + bool _isCoopGhost; + uint8_t _pad_0x20aa[0x2a]; + uint32_t _playerHUD; // PlayerHUD* // Update 00782af0 (00782b86): MOV ECX,[EDI+0x20d4]; if non-null CALL PlayerHUD::Update 00842230 (shift +0x2c) + uint8_t _pad_0x20d8[0x10]; + bool _hasUnlistedRestoreState; // PlayerManager::replace_player 009bee80 sets it to 1 after StoreGameState into 0x20ec; when set on the incoming player it restores from 0x20ec and clears it + uint8_t _pad_0x20e9[0x3]; + uint8_t _unlistedRestoreState[0x5dc]; // GameStatePlayer; PlayerManager::replace_player 009bee80: GameStatePlayer::Init + Entity_Player::StoreGameState on this+0x20ec, and RestoreGameState from it later + uint32_t _replacedPlayer; // Entity_Player* // PlayerManager::replace_player 009bee80 writes the other player into 0x26c8 of both the old and the new player (shift +0x4c: GameStatePlayer grew by 0x20) +}; +static_assert(offsetof(Entity_Player, _index) == 0x20); +static_assert(offsetof(Entity_Player, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Player, _type) == 0x28); +static_assert(offsetof(Entity_Player, _variant) == 0x2c); +static_assert(offsetof(Entity_Player, _subtype) == 0x30); +static_assert(offsetof(Entity_Player, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Player, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Player, _sprite) == 0x48); +static_assert(offsetof(Entity_Player, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Player, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Player, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Player, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Player, _flags) == 0x168); +static_assert(offsetof(Entity_Player, _valid) == 0x170); +static_assert(offsetof(Entity_Player, _visible) == 0x171); +static_assert(offsetof(Entity_Player, _exists) == 0x172); +static_assert(offsetof(Entity_Player, _dead) == 0x173); +static_assert(offsetof(Entity_Player, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Player, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Player, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Player, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Player, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Player, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Player, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Player, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Player, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Player, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Player, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Player, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Player, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Player, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Player, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Player, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Player, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Player, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Player, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Player, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Player, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Player, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Player, _mass) == 0x2d4); +static_assert(offsetof(Entity_Player, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Player, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Player, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Player, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Player, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Player, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Player, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Player, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Player, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Player, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Player, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Player, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Player, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Player, _pos) == 0x33c); +static_assert(offsetof(Entity_Player, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Player, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Player, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Player, _velocity) == 0x360); +static_assert(offsetof(Entity_Player, _size) == 0x370); +static_assert(offsetof(Entity_Player, _health) == 0x380); +static_assert(offsetof(Entity_Player, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Player, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Player, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Player, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Player, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Player, _parent) == 0x3bc); +static_assert(offsetof(Entity_Player, _child) == 0x3c0); +static_assert(offsetof(Entity_Player, _target) == 0x3c4); +static_assert(offsetof(Entity_Player, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Player, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Player, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Player, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Player, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Player, _isControlsEnabled) == 0x410); +static_assert(offsetof(Entity_Player, _controlsCooldown) == 0x414); +static_assert(offsetof(Entity_Player, _bodySprite) == 0x41c); +static_assert(offsetof(Entity_Player, _bloodGushSprite) == 0xee4); +static_assert(offsetof(Entity_Player, _heldSprite) == 0xff8); +static_assert(offsetof(Entity_Player, _costumeSpriteDescs) == 0x1220); +static_assert(offsetof(Entity_Player, _headAnim) == 0x1320); +static_assert(offsetof(Entity_Player, _blinkTime) == 0x1338); +static_assert(offsetof(Entity_Player, _headDirectionTime) == 0x133c); +static_assert(offsetof(Entity_Player, _maxHearts) == 0x1340); +static_assert(offsetof(Entity_Player, _redHearts) == 0x1344); +static_assert(offsetof(Entity_Player, _eternalHearts) == 0x1348); +static_assert(offsetof(Entity_Player, _soulHearts) == 0x134c); +static_assert(offsetof(Entity_Player, _blackHearts) == 0x1350); +static_assert(offsetof(Entity_Player, _jarHearts) == 0x1354); +static_assert(offsetof(Entity_Player, _jarFlies) == 0x1358); +static_assert(offsetof(Entity_Player, _numKeys) == 0x135c); +static_assert(offsetof(Entity_Player, _hasGoldenKey) == 0x1360); +static_assert(offsetof(Entity_Player, _hasGoldenBomb) == 0x1361); +static_assert(offsetof(Entity_Player, _numBombs) == 0x1364); +static_assert(offsetof(Entity_Player, _numCoins) == 0x1368); +static_assert(offsetof(Entity_Player, _numBlueFlies) == 0x136c); +static_assert(offsetof(Entity_Player, _numBlueSpiders) == 0x1370); +static_assert(offsetof(Entity_Player, _gnawedLeafTimer) == 0x1374); +static_assert(offsetof(Entity_Player, _lastActionTriggers) == 0x1378); +static_assert(offsetof(Entity_Player, _bloodLustCounter) == 0x137c); +static_assert(offsetof(Entity_Player, _metronomeCollectibleID) == 0x1388); +static_assert(offsetof(Entity_Player, _monkeyPawCounter) == 0x1394); +static_assert(offsetof(Entity_Player, _damageCooldown) == 0x13bc); +static_assert(offsetof(Entity_Player, _playerType) == 0x13c0); +static_assert(offsetof(Entity_Player, _markedTarget) == 0x140c); +static_assert(offsetof(Entity_Player, _heldEntity) == 0x1410); +static_assert(offsetof(Entity_Player, _tractorBeam) == 0x1430); +static_assert(offsetof(Entity_Player, _megaBlastLaser) == 0x1458); +static_assert(offsetof(Entity_Player, _rUaWizardTimer) == 0x145c); +static_assert(offsetof(Entity_Player, _maxfiredelay) == 0x1460); +static_assert(offsetof(Entity_Player, _shotspeed) == 0x1464); +static_assert(offsetof(Entity_Player, _damage) == 0x1470); +static_assert(offsetof(Entity_Player, _tearheight) == 0x1474); +static_assert(offsetof(Entity_Player, _tearfallspeed) == 0x1478); +static_assert(offsetof(Entity_Player, _tearfallaccel) == 0x147c); +static_assert(offsetof(Entity_Player, _tearrange) == 0x1480); +static_assert(offsetof(Entity_Player, _laserColor) == 0x14c4); +static_assert(offsetof(Entity_Player, _temporaryeffects) == 0x1508); +static_assert(offsetof(Entity_Player, _speedModifier) == 0x1520); +static_assert(offsetof(Entity_Player, _fireDelayModifier) == 0x1524); +static_assert(offsetof(Entity_Player, _damageModifier) == 0x1528); +static_assert(offsetof(Entity_Player, _tearRangeModifier) == 0x152c); +static_assert(offsetof(Entity_Player, _shotSpeedModifier) == 0x1530); +static_assert(offsetof(Entity_Player, _luckModifier) == 0x1534); +static_assert(offsetof(Entity_Player, _donateLuck) == 0x1538); +static_assert(offsetof(Entity_Player, _potatoPeelerCounter) == 0x153c); +static_assert(offsetof(Entity_Player, _edenSpeed) == 0x154c); +static_assert(offsetof(Entity_Player, _edenFireDelay) == 0x1550); +static_assert(offsetof(Entity_Player, _edenDamage) == 0x1554); +static_assert(offsetof(Entity_Player, _edenTearRange) == 0x1558); +static_assert(offsetof(Entity_Player, _edenShotSpeed) == 0x155c); +static_assert(offsetof(Entity_Player, _edenLuck) == 0x1560); +static_assert(offsetof(Entity_Player, _movespeed) == 0x1568); +static_assert(offsetof(Entity_Player, _luck) == 0x156c); +static_assert(offsetof(Entity_Player, _canFly) == 0x1570); +static_assert(offsetof(Entity_Player, _cacheFlags) == 0x1574); +static_assert(offsetof(Entity_Player, _tearDisplacement) == 0x1578); +static_assert(offsetof(Entity_Player, _meleeDamage) == 0x157c); +static_assert(offsetof(Entity_Player, _itemState) == 0x1600); +static_assert(offsetof(Entity_Player, _itemStateCooldown) == 0x1604); +static_assert(offsetof(Entity_Player, _vampireCharmKills) == 0x1608); +static_assert(offsetof(Entity_Player, _bombPlaceDelay) == 0x1610); +static_assert(offsetof(Entity_Player, _forgottenSwapFormCooldown) == 0x1614); +static_assert(offsetof(Entity_Player, _controllerIndex) == 0x1618); +static_assert(offsetof(Entity_Player, _playerIndex) == 0x161c); +static_assert(offsetof(Entity_Player, _moveDirection) == 0x1624); +static_assert(offsetof(Entity_Player, _headDirection) == 0x1628); +static_assert(offsetof(Entity_Player, _fireDirection) == 0x162c); +static_assert(offsetof(Entity_Player, _aimDirection) == 0x1630); +static_assert(offsetof(Entity_Player, _areOpposingShootDirectionsPressed) == 0x1638); +static_assert(offsetof(Entity_Player, _lastDirection) == 0x163c); +static_assert(offsetof(Entity_Player, _movementVector) == 0x1644); +static_assert(offsetof(Entity_Player, _tearsOffset) == 0x164c); +static_assert(offsetof(Entity_Player, _recentMovementVector) == 0x1654); +static_assert(offsetof(Entity_Player, _lastDamageFlags) == 0x16a8); +static_assert(offsetof(Entity_Player, _totalDamageTaken) == 0x16b4); +static_assert(offsetof(Entity_Player, _trinketsID) == 0x16c0); +static_assert(offsetof(Entity_Player, _collectibleCounts) == 0x16c8); +static_assert(offsetof(Entity_Player, _smeltedTrinkets) == 0x1748); +static_assert(offsetof(Entity_Player, _voidedCollectibles) == 0x1754); +static_assert(offsetof(Entity_Player, _actionHoldDrop) == 0x17c0); +static_assert(offsetof(Entity_Player, _postLevelInitFinished) == 0x1824); +static_assert(offsetof(Entity_Player, _canShoot) == 0x1825); +static_assert(offsetof(Entity_Player, _footprintColor1) == 0x1828); +static_assert(offsetof(Entity_Player, _footprintColor2) == 0x1854); +static_assert(offsetof(Entity_Player, _ponyCharge) == 0x1888); +static_assert(offsetof(Entity_Player, _planCKillCountdown) == 0x188c); +static_assert(offsetof(Entity_Player, _headColor) == 0x1894); +static_assert(offsetof(Entity_Player, _bodyColor) == 0x1898); +static_assert(offsetof(Entity_Player, _epiphoraCharge) == 0x18a4); +static_assert(offsetof(Entity_Player, _deadEyeCharges) == 0x18b0); +static_assert(offsetof(Entity_Player, _deadEyeMisses) == 0x18b4); +static_assert(offsetof(Entity_Player, _mawOfTheVoidChargeTimer) == 0x18bc); +static_assert(offsetof(Entity_Player, _imExcitedSpeedupCountdown) == 0x18e8); +static_assert(offsetof(Entity_Player, _megaBlastDuration) == 0x18f4); +static_assert(offsetof(Entity_Player, _peeBurstCooldown) == 0x18f8); +static_assert(offsetof(Entity_Player, _maxPeeBurstCooldown) == 0x18fc); +static_assert(offsetof(Entity_Player, _bladderCharge) == 0x1900); +static_assert(offsetof(Entity_Player, _maxBladderCharge) == 0x1904); +static_assert(offsetof(Entity_Player, _isUrethraBlocked) == 0x1908); +static_assert(offsetof(Entity_Player, _nextUrethraBlockFrame) == 0x190c); +static_assert(offsetof(Entity_Player, _friendBallEnemy) == 0x1910); +static_assert(offsetof(Entity_Player, _purityState) == 0x192c); +static_assert(offsetof(Entity_Player, _immaculateConceptionState) == 0x1930); +static_assert(offsetof(Entity_Player, _cambionConceptionState) == 0x1934); +static_assert(offsetof(Entity_Player, _conceptionFamiliarFlags) == 0x1938); +static_assert(offsetof(Entity_Player, _d8DamageModifier) == 0x193c); +static_assert(offsetof(Entity_Player, _d8SpeedModifier) == 0x1940); +static_assert(offsetof(Entity_Player, _d8RangeModifier) == 0x1944); +static_assert(offsetof(Entity_Player, _d8FireDelayModifier) == 0x1948); +static_assert(offsetof(Entity_Player, _goldenHearts) == 0x194c); +static_assert(offsetof(Entity_Player, _babySkin) == 0x1aec); +static_assert(offsetof(Entity_Player, _movingBoxContents) == 0x1d7c); +static_assert(offsetof(Entity_Player, _boneHearts) == 0x1d88); +static_assert(offsetof(Entity_Player, _boneHeartsMask) == 0x1d8c); +static_assert(offsetof(Entity_Player, _hallowedGroundCountdown) == 0x1d90); +static_assert(offsetof(Entity_Player, _subPlayer) == 0x1d98); +static_assert(offsetof(Entity_Player, _brokenHearts) == 0x1da0); +static_assert(offsetof(Entity_Player, _rottenHearts) == 0x1da4); +static_assert(offsetof(Entity_Player, _effectiveSoulCharge) == 0x1da8); +static_assert(offsetof(Entity_Player, _effectiveBloodCharge) == 0x1dac); +static_assert(offsetof(Entity_Player, _urnSouls) == 0x1dd0); +static_assert(offsetof(Entity_Player, _numGigaBombs) == 0x1dd4); +static_assert(offsetof(Entity_Player, _history) == 0x1dec); +static_assert(offsetof(Entity_Player, _inventory) == 0x1e00); +static_assert(offsetof(Entity_Player, _afterImageFrames) == 0x1e54); +static_assert(offsetof(Entity_Player, _twinPlayer) == 0x1e68); +static_assert(offsetof(Entity_Player, _backupPlayer) == 0x1e6c); +static_assert(offsetof(Entity_Player, _redStewBonusDuration) == 0x1e74); +static_assert(offsetof(Entity_Player, _marsUnk1) == 0x1e8c); +static_assert(offsetof(Entity_Player, _marsCooldown) == 0x1e90); +static_assert(offsetof(Entity_Player, _marsUnk2) == 0x1e94); +static_assert(offsetof(Entity_Player, _marsUnkBool) == 0x1e98); +static_assert(offsetof(Entity_Player, _marsLastTapDirection) == 0x1e9c); +static_assert(offsetof(Entity_Player, _marsTapFrames) == 0x1ea0); +static_assert(offsetof(Entity_Player, _rockBottomMoveSpeed) == 0x1eb0); +static_assert(offsetof(Entity_Player, _rockBottomMaxFireDelay) == 0x1eb4); +static_assert(offsetof(Entity_Player, _rockBottomDamage) == 0x1eb8); +static_assert(offsetof(Entity_Player, _rockBottomTearRange) == 0x1ebc); +static_assert(offsetof(Entity_Player, _rockBottomShotSpeed) == 0x1ec0); +static_assert(offsetof(Entity_Player, _rockBottomLuck) == 0x1ec4); +static_assert(offsetof(Entity_Player, _revelationChargeTimer) == 0x1edc); +static_assert(offsetof(Entity_Player, _montezumaChargeTimer) == 0x1ee0); +static_assert(offsetof(Entity_Player, _maggyHealthDrainCooldown) == 0x1ef4); +static_assert(offsetof(Entity_Player, _maggySwingCooldown) == 0x1ef8); +static_assert(offsetof(Entity_Player, _suplexState) == 0x1f2c); +static_assert(offsetof(Entity_Player, _suplexAimCountdown) == 0x1f30); +static_assert(offsetof(Entity_Player, _suplexTargetPos) == 0x1f34); +static_assert(offsetof(Entity_Player, _suplexLandPos) == 0x1f3c); +static_assert(offsetof(Entity_Player, _bagOfCraftingContent) == 0x1f44); +static_assert(offsetof(Entity_Player, _bagOfCraftingOutput) == 0x1f4c); +static_assert(offsetof(Entity_Player, _poopMana) == 0x1f54); +static_assert(offsetof(Entity_Player, _eveSumptoriumCharge) == 0x1f7c); +static_assert(offsetof(Entity_Player, _itemWispsList) == 0x1f80); +static_assert(offsetof(Entity_Player, _modelingClayEffect) == 0x1fb8); +static_assert(offsetof(Entity_Player, _keepersSackBonus) == 0x1fbc); +static_assert(offsetof(Entity_Player, _darkArtsBlastPending) == 0x2004); +static_assert(offsetof(Entity_Player, _darkArtsDamage) == 0x2008); +static_assert(offsetof(Entity_Player, _darkArtsLastSnare) == 0x200c); +static_assert(offsetof(Entity_Player, _hasCurseMistEffect) == 0x202c); +static_assert(offsetof(Entity_Player, _consumablesBackup) == 0x2030); +static_assert(offsetof(Entity_Player, _wildCardItemType) == 0x2090); +static_assert(offsetof(Entity_Player, _wildCardItem) == 0x2094); +static_assert(offsetof(Entity_Player, _isCoopGhost) == 0x20a9); +static_assert(offsetof(Entity_Player, _playerHUD) == 0x20d4); +static_assert(offsetof(Entity_Player, _hasUnlistedRestoreState) == 0x20e8); +static_assert(offsetof(Entity_Player, _unlistedRestoreState) == 0x20ec); +static_assert(offsetof(Entity_Player, _replacedPlayer) == 0x26c8); + +struct Entity_Projectile { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + float _height; // Planetoid Blow resets it to -23; BACKSPLIT children copy it (Entity_Projectile::Update 00654686) + float _fallingSpeed; // Planetoid shot/Blow set 0 (ENTITY_SWARMER 00518e20) + float _fallingAccel; // setter 00444c90; Planetoid -.095/-.085, BACKSPLIT children -.04 + uint8_t _pad_0x41c[0x10]; + float _acceleration; // setter 004aad70; ACCELERATE multiplies velocity by it a tick (00659a62) + float _orbitDistance; // orbit target distance R in the ORBIT_CW/CCW steering (Planetoid 80, Blow 0) + uint8_t _pad_0x434[0x4]; + uint64_t _projectileFlags; + uint8_t _pad_0x440[0x8]; + int _wiggleFrameOffset; + uint8_t _pad_0x44c[0x4]; + uint64_t _changeFlags; + uint8_t _pad_0x458[0x4]; + int _changeTimeout; +}; +static_assert(offsetof(Entity_Projectile, _index) == 0x20); +static_assert(offsetof(Entity_Projectile, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Projectile, _type) == 0x28); +static_assert(offsetof(Entity_Projectile, _variant) == 0x2c); +static_assert(offsetof(Entity_Projectile, _subtype) == 0x30); +static_assert(offsetof(Entity_Projectile, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Projectile, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Projectile, _sprite) == 0x48); +static_assert(offsetof(Entity_Projectile, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Projectile, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Projectile, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Projectile, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Projectile, _flags) == 0x168); +static_assert(offsetof(Entity_Projectile, _valid) == 0x170); +static_assert(offsetof(Entity_Projectile, _visible) == 0x171); +static_assert(offsetof(Entity_Projectile, _exists) == 0x172); +static_assert(offsetof(Entity_Projectile, _dead) == 0x173); +static_assert(offsetof(Entity_Projectile, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Projectile, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Projectile, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Projectile, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Projectile, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Projectile, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Projectile, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Projectile, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Projectile, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Projectile, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Projectile, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Projectile, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Projectile, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Projectile, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Projectile, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Projectile, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Projectile, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Projectile, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Projectile, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Projectile, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Projectile, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Projectile, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Projectile, _mass) == 0x2d4); +static_assert(offsetof(Entity_Projectile, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Projectile, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Projectile, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Projectile, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Projectile, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Projectile, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Projectile, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Projectile, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Projectile, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Projectile, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Projectile, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Projectile, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Projectile, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Projectile, _pos) == 0x33c); +static_assert(offsetof(Entity_Projectile, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Projectile, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Projectile, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Projectile, _velocity) == 0x360); +static_assert(offsetof(Entity_Projectile, _size) == 0x370); +static_assert(offsetof(Entity_Projectile, _health) == 0x380); +static_assert(offsetof(Entity_Projectile, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Projectile, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Projectile, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Projectile, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Projectile, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Projectile, _parent) == 0x3bc); +static_assert(offsetof(Entity_Projectile, _child) == 0x3c0); +static_assert(offsetof(Entity_Projectile, _target) == 0x3c4); +static_assert(offsetof(Entity_Projectile, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Projectile, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Projectile, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Projectile, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Projectile, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Projectile, _height) == 0x410); +static_assert(offsetof(Entity_Projectile, _fallingSpeed) == 0x414); +static_assert(offsetof(Entity_Projectile, _fallingAccel) == 0x418); +static_assert(offsetof(Entity_Projectile, _acceleration) == 0x42c); +static_assert(offsetof(Entity_Projectile, _orbitDistance) == 0x430); +static_assert(offsetof(Entity_Projectile, _projectileFlags) == 0x438); +static_assert(offsetof(Entity_Projectile, _wiggleFrameOffset) == 0x448); +static_assert(offsetof(Entity_Projectile, _changeFlags) == 0x450); +static_assert(offsetof(Entity_Projectile, _changeTimeout) == 0x45c); + +struct Entity_Slot { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it +}; +static_assert(offsetof(Entity_Slot, _index) == 0x20); +static_assert(offsetof(Entity_Slot, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Slot, _type) == 0x28); +static_assert(offsetof(Entity_Slot, _variant) == 0x2c); +static_assert(offsetof(Entity_Slot, _subtype) == 0x30); +static_assert(offsetof(Entity_Slot, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Slot, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Slot, _sprite) == 0x48); +static_assert(offsetof(Entity_Slot, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Slot, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Slot, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Slot, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Slot, _flags) == 0x168); +static_assert(offsetof(Entity_Slot, _valid) == 0x170); +static_assert(offsetof(Entity_Slot, _visible) == 0x171); +static_assert(offsetof(Entity_Slot, _exists) == 0x172); +static_assert(offsetof(Entity_Slot, _dead) == 0x173); +static_assert(offsetof(Entity_Slot, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Slot, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Slot, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Slot, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Slot, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Slot, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Slot, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Slot, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Slot, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Slot, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Slot, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Slot, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Slot, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Slot, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Slot, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Slot, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Slot, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Slot, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Slot, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Slot, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Slot, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Slot, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Slot, _mass) == 0x2d4); +static_assert(offsetof(Entity_Slot, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Slot, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Slot, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Slot, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Slot, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Slot, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Slot, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Slot, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Slot, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Slot, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Slot, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Slot, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Slot, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Slot, _pos) == 0x33c); +static_assert(offsetof(Entity_Slot, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Slot, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Slot, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Slot, _velocity) == 0x360); +static_assert(offsetof(Entity_Slot, _size) == 0x370); +static_assert(offsetof(Entity_Slot, _health) == 0x380); +static_assert(offsetof(Entity_Slot, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Slot, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Slot, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Slot, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Slot, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Slot, _parent) == 0x3bc); +static_assert(offsetof(Entity_Slot, _child) == 0x3c0); +static_assert(offsetof(Entity_Slot, _target) == 0x3c4); +static_assert(offsetof(Entity_Slot, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Slot, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Slot, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Slot, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Slot, _luaBridgeRef) == 0x408); + +struct Entity_Tear { // : Entity (flattened) + uint8_t _pad_0x0[0x20]; + uint32_t _index; // Lua Entity.Index getter (folded as PathFinder::GetGridIndex 00456370) returns this+0x20 + uint32_t _collisionIndex; // EntityList::rebuild_sublists 00419e70 assigns a running index to this+0x24 for each entity with _entityCollisionClass!=0 + uint32_t _type; + uint32_t _variant; + uint32_t _subtype; + uint32_t _spawnerType; + uint32_t _spawnerVariant; + uint8_t _pad_0x3c[0xc]; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + Vector _spriteScale; + uint8_t _pad_0xec[0x5c]; + bool _isFlipX; + uint8_t _pad_0x149[0x13]; + float _shadowSize; + uint8_t _pad_0x160[0x8]; + uint64_t _flags; + bool _valid; + bool _visible; + bool _exists; + bool _dead; + uint8_t _pad_0x174[0x3]; + bool _removedByFactory; + uint8_t _pad_0x178[0xc]; + int _entityGridCollisionClass; + int _entityCollisionClass; + uint8_t _pad_0x18c[0x2]; + uint16_t _entityExtraDataPtrUpperBytes; + bool _collidesWithGrid; + uint8_t _pad_0x191[0x1]; + uint16_t _entityExtraDataPtrLowerBytes; + uint8_t _pad_0x194[0x18]; + uint8_t _colorParams[0x64]; // vector_ColorParams + int _fireDamageCountdown; + int _damageCountdown; + int _freezeCountdown; + int _poisonCountdown; + int _slowingCountdown; + int _charmedCountdown; + int _confusionCountdown; + int _midasFreezeCountdown; + int _fearCountdown; + int _burnCountdown; + int _bossStatusEffectCooldown; + int _shrinkCountdown; + uint8_t _pad_0x240[0x38]; + float _poisonDamage; + float _burnDamage; + uint8_t _pad_0x280[0x30]; + float _depthOffset; + uint8_t _pad_0x2b4[0x20]; + float _mass; + uint8_t _pad_0x2d8[0x8]; + int _poisonDamageTimer; + int _burnDamageTimer; + int _bleedingCountdown; + uint8_t _pad_0x2ec[0x4]; + int _magnetizedCountdown; + int _baitedCountdown; + int _knockbackCountdown; + int _weaknessCountdown; + int _iceCountdown; + int _brimstoneMarkCountdown; + Vector _knockbackDirection; + uint8_t _pad_0x310[0xc]; + int _pauseTimer; + uint8_t _pad_0x320[0xc]; + int _spawnGridIndex; + uint8_t _pad_0x330[0x4]; + Vector _targetPosition; + Vector _pos; + uint8_t _pad_0x344[0x8]; + Vector _posOffset; + int _renderZOffset; + uint8_t _pad_0x358[0x4]; + int _sortingLayer; + Vector _velocity; + uint8_t _pad_0x368[0x8]; + float _size; + uint8_t _pad_0x374[0xc]; + float _health; + uint8_t _pad_0x384[0x4]; + float _collisionDamage; + uint8_t _pad_0x38c[0x10]; + float _speedMultiplier; + uint8_t _pad_0x3a0[0x10]; + bool _isInvicible; + uint8_t _pad_0x3b1[0x3]; + float _shrinkStatus1; + float _shrinkStatus2; + uint8_t _parent[0x4]; // EntityPtr + uint8_t _child[0x4]; // EntityPtr + uint8_t _target[0x4]; // EntityPtr + uint8_t _spawnerEntity[0xc]; // EntityPtr + uint8_t _minecart[0x8]; // EntityPtr + uint8_t _dropRNG[0x10]; // RNG + uint32_t _initSeed; + uint8_t _pad_0x3f0[0x18]; + uint32_t _luaBridgeRef; // LuaBridgeRef* // Lua Entity.GetData 006b5e60 lazily allocates {lua_State,luaL_ref} into this+0x408; ctor 006a8290 nulls it + uint8_t _pad_0x40c[0x4]; + float _height; // Lua EntityTear.Height getter 00431750 returns this+0x410 + float _fallingSpeed; // Lua EntityTear.FallingSpeed getter 00456440 returns this+0x414 + float _fallingAccel; // Lua EntityTear.FallingAcceleration getter 00435e50 returns this+0x418 + float _homingFriction; + float _fScale; + float _baseScale; + uint8_t _tearFlags[0x10]; // BitSet128 + int _waitFrames; + Vector _continueVelocity; + uint8_t _hitList[0xc]; // std_vector_uint + int _tearIdx; + float _baseDamage; + float _rotation; + int _scaleAnimNum; + float _knockbackMultiplier; + float _deadEyeIntensity; // Entity_Tear::SetDeadEyeIntensity 00679e80 writes this+0x464 + bool _multidimensionalTouched; // Entity_Familiar::Update 0061da10 (Multidimensional Baby) reads tear+0x468 via 0060cd60, sets it via 0060cd70 before Entity_Tear::MakeMultidimensionalCopy 0067a190 (which copies it) + bool _prismTouched; // Entity_Familiar::Update 0061da10 (Angelic Prism) skips tears with +0x469 set (0060cd80) and sets it on the split copies (0060cd90) + uint8_t _pad_0x46a[0x42]; + ANM2 _tearHaloANM2; // Entity_Tear::SetTearFlags 00676150 loads gfx/TearHalo.anm2 into this+0x4ac + ANM2 _tearEffectANM2; // Entity_Tear::SetTearFlags 00676150 loads LittleHorn/Mysterious/DarkMatter/FireMind/JacobsLadder TearEffect anm2s into this+0x5c0 + ANM2 _deadEyeANM2; // Entity_Tear::SetDeadEyeIntensity 00679e80 loads gfx/DeadEyeTearEffect.anm2 into this+0x6d4 + uint8_t _pad_0x7e8[0x4]; + Vector _posDisplacement; + uint8_t _pad_0x7f4[0x2c]; + float _tearRange; // Entity_Player::FireTear 00790af0 copies player _tearrange (+0x1480) to tear+0x820; Entity_Tear::Init 006660a0 sets 260.0; Update compares it to +0x3a4 +}; +static_assert(offsetof(Entity_Tear, _index) == 0x20); +static_assert(offsetof(Entity_Tear, _collisionIndex) == 0x24); +static_assert(offsetof(Entity_Tear, _type) == 0x28); +static_assert(offsetof(Entity_Tear, _variant) == 0x2c); +static_assert(offsetof(Entity_Tear, _subtype) == 0x30); +static_assert(offsetof(Entity_Tear, _spawnerType) == 0x34); +static_assert(offsetof(Entity_Tear, _spawnerVariant) == 0x38); +static_assert(offsetof(Entity_Tear, _sprite) == 0x48); +static_assert(offsetof(Entity_Tear, _spriteOffset) == 0xdc); +static_assert(offsetof(Entity_Tear, _spriteScale) == 0xe4); +static_assert(offsetof(Entity_Tear, _isFlipX) == 0x148); +static_assert(offsetof(Entity_Tear, _shadowSize) == 0x15c); +static_assert(offsetof(Entity_Tear, _flags) == 0x168); +static_assert(offsetof(Entity_Tear, _valid) == 0x170); +static_assert(offsetof(Entity_Tear, _visible) == 0x171); +static_assert(offsetof(Entity_Tear, _exists) == 0x172); +static_assert(offsetof(Entity_Tear, _dead) == 0x173); +static_assert(offsetof(Entity_Tear, _removedByFactory) == 0x177); +static_assert(offsetof(Entity_Tear, _entityGridCollisionClass) == 0x184); +static_assert(offsetof(Entity_Tear, _entityCollisionClass) == 0x188); +static_assert(offsetof(Entity_Tear, _entityExtraDataPtrUpperBytes) == 0x18e); +static_assert(offsetof(Entity_Tear, _collidesWithGrid) == 0x190); +static_assert(offsetof(Entity_Tear, _entityExtraDataPtrLowerBytes) == 0x192); +static_assert(offsetof(Entity_Tear, _colorParams) == 0x1ac); +static_assert(offsetof(Entity_Tear, _fireDamageCountdown) == 0x210); +static_assert(offsetof(Entity_Tear, _damageCountdown) == 0x214); +static_assert(offsetof(Entity_Tear, _freezeCountdown) == 0x218); +static_assert(offsetof(Entity_Tear, _poisonCountdown) == 0x21c); +static_assert(offsetof(Entity_Tear, _slowingCountdown) == 0x220); +static_assert(offsetof(Entity_Tear, _charmedCountdown) == 0x224); +static_assert(offsetof(Entity_Tear, _confusionCountdown) == 0x228); +static_assert(offsetof(Entity_Tear, _midasFreezeCountdown) == 0x22c); +static_assert(offsetof(Entity_Tear, _fearCountdown) == 0x230); +static_assert(offsetof(Entity_Tear, _burnCountdown) == 0x234); +static_assert(offsetof(Entity_Tear, _bossStatusEffectCooldown) == 0x238); +static_assert(offsetof(Entity_Tear, _shrinkCountdown) == 0x23c); +static_assert(offsetof(Entity_Tear, _poisonDamage) == 0x278); +static_assert(offsetof(Entity_Tear, _burnDamage) == 0x27c); +static_assert(offsetof(Entity_Tear, _depthOffset) == 0x2b0); +static_assert(offsetof(Entity_Tear, _mass) == 0x2d4); +static_assert(offsetof(Entity_Tear, _poisonDamageTimer) == 0x2e0); +static_assert(offsetof(Entity_Tear, _burnDamageTimer) == 0x2e4); +static_assert(offsetof(Entity_Tear, _bleedingCountdown) == 0x2e8); +static_assert(offsetof(Entity_Tear, _magnetizedCountdown) == 0x2f0); +static_assert(offsetof(Entity_Tear, _baitedCountdown) == 0x2f4); +static_assert(offsetof(Entity_Tear, _knockbackCountdown) == 0x2f8); +static_assert(offsetof(Entity_Tear, _weaknessCountdown) == 0x2fc); +static_assert(offsetof(Entity_Tear, _iceCountdown) == 0x300); +static_assert(offsetof(Entity_Tear, _brimstoneMarkCountdown) == 0x304); +static_assert(offsetof(Entity_Tear, _knockbackDirection) == 0x308); +static_assert(offsetof(Entity_Tear, _pauseTimer) == 0x31c); +static_assert(offsetof(Entity_Tear, _spawnGridIndex) == 0x32c); +static_assert(offsetof(Entity_Tear, _targetPosition) == 0x334); +static_assert(offsetof(Entity_Tear, _pos) == 0x33c); +static_assert(offsetof(Entity_Tear, _posOffset) == 0x34c); +static_assert(offsetof(Entity_Tear, _renderZOffset) == 0x354); +static_assert(offsetof(Entity_Tear, _sortingLayer) == 0x35c); +static_assert(offsetof(Entity_Tear, _velocity) == 0x360); +static_assert(offsetof(Entity_Tear, _size) == 0x370); +static_assert(offsetof(Entity_Tear, _health) == 0x380); +static_assert(offsetof(Entity_Tear, _collisionDamage) == 0x388); +static_assert(offsetof(Entity_Tear, _speedMultiplier) == 0x39c); +static_assert(offsetof(Entity_Tear, _isInvicible) == 0x3b0); +static_assert(offsetof(Entity_Tear, _shrinkStatus1) == 0x3b4); +static_assert(offsetof(Entity_Tear, _shrinkStatus2) == 0x3b8); +static_assert(offsetof(Entity_Tear, _parent) == 0x3bc); +static_assert(offsetof(Entity_Tear, _child) == 0x3c0); +static_assert(offsetof(Entity_Tear, _target) == 0x3c4); +static_assert(offsetof(Entity_Tear, _spawnerEntity) == 0x3c8); +static_assert(offsetof(Entity_Tear, _minecart) == 0x3d4); +static_assert(offsetof(Entity_Tear, _dropRNG) == 0x3dc); +static_assert(offsetof(Entity_Tear, _initSeed) == 0x3ec); +static_assert(offsetof(Entity_Tear, _luaBridgeRef) == 0x408); +static_assert(offsetof(Entity_Tear, _height) == 0x410); +static_assert(offsetof(Entity_Tear, _fallingSpeed) == 0x414); +static_assert(offsetof(Entity_Tear, _fallingAccel) == 0x418); +static_assert(offsetof(Entity_Tear, _homingFriction) == 0x41c); +static_assert(offsetof(Entity_Tear, _fScale) == 0x420); +static_assert(offsetof(Entity_Tear, _baseScale) == 0x424); +static_assert(offsetof(Entity_Tear, _tearFlags) == 0x428); +static_assert(offsetof(Entity_Tear, _waitFrames) == 0x438); +static_assert(offsetof(Entity_Tear, _continueVelocity) == 0x43c); +static_assert(offsetof(Entity_Tear, _hitList) == 0x444); +static_assert(offsetof(Entity_Tear, _tearIdx) == 0x450); +static_assert(offsetof(Entity_Tear, _baseDamage) == 0x454); +static_assert(offsetof(Entity_Tear, _rotation) == 0x458); +static_assert(offsetof(Entity_Tear, _scaleAnimNum) == 0x45c); +static_assert(offsetof(Entity_Tear, _knockbackMultiplier) == 0x460); +static_assert(offsetof(Entity_Tear, _deadEyeIntensity) == 0x464); +static_assert(offsetof(Entity_Tear, _multidimensionalTouched) == 0x468); +static_assert(offsetof(Entity_Tear, _prismTouched) == 0x469); +static_assert(offsetof(Entity_Tear, _tearHaloANM2) == 0x4ac); +static_assert(offsetof(Entity_Tear, _tearEffectANM2) == 0x5c0); +static_assert(offsetof(Entity_Tear, _deadEyeANM2) == 0x6d4); +static_assert(offsetof(Entity_Tear, _posDisplacement) == 0x7ec); +static_assert(offsetof(Entity_Tear, _tearRange) == 0x820); + +struct Font { + bool _isLoaded; // Font::Load 00a1a730 sets *this=1 on success; Font::Unload 00a1ad90 and ctor 00a1a640 clear it + uint8_t _pad_0x1[0x3]; + int16_t _fontSize; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _infoBitField; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _charSet; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint16_t _stretchH; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _aa; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _paddingUp; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _paddingRight; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _paddingDown; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _paddingLeft; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _spacingHoriz; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _spacingVert; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _outline; // Font::Load 00a1a730 reads BMFont v3 block 1 (info, 0x10 bytes) straight into +0x4; BMFont info layout puts this field here + uint8_t _pad_0x12[0x2]; + uint16_t _lineHeight; // Font::GetLineHeight 00a1aea0 returns u16 +0x14; Font::Load 00a1a730 block 2 read into +0x14 + uint16_t _base; // Font::GetBaselineHeight 00a1aeb0 returns u16 +0x16; Font::Load block 2 + uint16_t _scaleW; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint16_t _scaleH; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint16_t _pages; // Font::Load 00a1a730 block 2 into +0x14; then uses u16 +0x1c as page count (copied to +0x38, sizes page texture array) + uint8_t _commonBitField; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint8_t _alphaChannel; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint8_t _redChannel; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint8_t _greenChannel; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint8_t _blueChannel; // Font::Load 00a1a730 reads BMFont v3 block 2 (common, 0x10 bytes) straight into +0x14; BMFont common layout puts this field here + uint8_t _pad_0x23[0x1]; + uint32_t _numChars; // Font::Load 00a1a730 block 4: +0x24 = blockSize / 0x14; Unload/ctor zero + uint32_t _chars; // FontCharBlock* // Font::Load 00a1a730 allocates and reads +0x24 records of 0x14 into +0x28; Unload 00a1ad90 frees it + uint8_t _kerningPairs[0xc]; // vector_KerningPair; Font::Load 00a1a730 block 5: std::vector begin/end/cap at +0x2c/+0x30/+0x34, 0x10-byte pairs (reads 4,4,2 per pair); only 0xc bytes, not 0x14 as REPENTOGON spacing implies + uint32_t _numPages; // not in REPENTOGON: Font::Load 00a1a730 sets +0x38 = pages(+0x1c) and loops page textures to it; Unload zeroes + uint32_t _pageTextures; // TexturePtr* // not in REPENTOGON: Font::Load 00a1a730 new[] of +0x38 8-byte texture ptrs; Unload 00a1ad90 eh-vector-dtor(8, 0040c440) + delete + uint8_t _charsBlock[0x8]; // std_map_CharBlocks; ctor 00a1a640 allocates map head at +0x40 (size +0x44); Font::SetMissingCharacter 00a1b3b0 _Find_lower_bound in it; Unload erases tree + int _missingCharacter; // Font::SetMissingCharacter 00a1b3b0 writes map value or -1; ctor 00a1a640 = -1 +}; +static_assert(offsetof(Font, _isLoaded) == 0x0); +static_assert(offsetof(Font, _fontSize) == 0x4); +static_assert(offsetof(Font, _infoBitField) == 0x6); +static_assert(offsetof(Font, _charSet) == 0x7); +static_assert(offsetof(Font, _stretchH) == 0x8); +static_assert(offsetof(Font, _aa) == 0xa); +static_assert(offsetof(Font, _paddingUp) == 0xb); +static_assert(offsetof(Font, _paddingRight) == 0xc); +static_assert(offsetof(Font, _paddingDown) == 0xd); +static_assert(offsetof(Font, _paddingLeft) == 0xe); +static_assert(offsetof(Font, _spacingHoriz) == 0xf); +static_assert(offsetof(Font, _spacingVert) == 0x10); +static_assert(offsetof(Font, _outline) == 0x11); +static_assert(offsetof(Font, _lineHeight) == 0x14); +static_assert(offsetof(Font, _base) == 0x16); +static_assert(offsetof(Font, _scaleW) == 0x18); +static_assert(offsetof(Font, _scaleH) == 0x1a); +static_assert(offsetof(Font, _pages) == 0x1c); +static_assert(offsetof(Font, _commonBitField) == 0x1e); +static_assert(offsetof(Font, _alphaChannel) == 0x1f); +static_assert(offsetof(Font, _redChannel) == 0x20); +static_assert(offsetof(Font, _greenChannel) == 0x21); +static_assert(offsetof(Font, _blueChannel) == 0x22); +static_assert(offsetof(Font, _numChars) == 0x24); +static_assert(offsetof(Font, _chars) == 0x28); +static_assert(offsetof(Font, _kerningPairs) == 0x2c); +static_assert(offsetof(Font, _numPages) == 0x38); +static_assert(offsetof(Font, _pageTextures) == 0x3c); +static_assert(offsetof(Font, _charsBlock) == 0x40); +static_assert(offsetof(Font, _missingCharacter) == 0x48); + +struct ItemPool { + uint8_t _pad_0x0[0x650]; + int _lastPool; + uint8_t _itemPoolRNG[0x28]; // RNG; 00734f30 ItemPool::Init stores seed param at this+0x654 and steps it; 00735910 shuffle_pools MTRNG::Init(this+0x654 seed); 007367d0 StoreGameState saves it + uint8_t _removedCollectibles[0x10]; // vector_bool; 00733ff0 Lua RemoveCollectible: bit test/set in *(this+0x67c), bound *(this+0x688) (vector size); 007340b0 ResetCollectible clears bit + uint8_t _roomBlacklistedCollectibles[0x108]; // vector_bool; 005b14b0 Lua AddRoomBlacklist sets bit in *(this+0x68c); 00736f90 ResetRoomBlacklist clears bits up to size *(this+0x698) + uint8_t _trinketPoolItems[0xc]; // vector_TrinketPoolItem; 00734130 Lua RemoveTrinket / 00736a90 ResetTrinkets walk *(this+0x794)..*(this+0x798) stride 8 (id,+4 available,+5 unlocked) + int _numAvailableTrinkets; // 00734130 RemoveTrinket decrements this+0x7a0; 00736a90 ResetTrinkets recounts it, warns "trinket pool is empty" when 0 +}; +static_assert(offsetof(ItemPool, _lastPool) == 0x650); +static_assert(offsetof(ItemPool, _itemPoolRNG) == 0x654); +static_assert(offsetof(ItemPool, _removedCollectibles) == 0x67c); +static_assert(offsetof(ItemPool, _roomBlacklistedCollectibles) == 0x68c); +static_assert(offsetof(ItemPool, _trinketPoolItems) == 0x794); +static_assert(offsetof(ItemPool, _numAvailableTrinkets) == 0x7a0); + +struct PlayerManager { + uint8_t _playerList[0xb8]; // vector_EntityPlayerPtr; 009b92c0 PlayerManager::GetPlayer indexes *this..this[1] (>>2), logs "There are no players"; IsCoopPlay/GetRandomPlayer iterate it + uint8_t _rng[0x4]; // RNG; 006f1020 Game::constructor (PM at Game+0x1baa8): RNG default init (seed 0xaa17414f, shifts 5,9,7) at PM+0xb8, esauJr[4] zeroed at PM+0x80 as in REPENTOGON; 006f9000 Game::store_game_state saves its seed (Game+0x1bb60) +}; +static_assert(offsetof(PlayerManager, _playerList) == 0x0); +static_assert(offsetof(PlayerManager, _rng) == 0xb8); + +struct Seeds { + bool _isCustomRun; // 006b83d0 (Lua Seeds:IsCustomRun binding, misnamed Room::IsInitialized) returns *(byte*)this; 009e9290 ctor / 009e9bc0 Reset clear byte 0 + uint8_t _pad_0x1[0x3]; + uint32_t _gameStartSeed; // 00436140 Lua GetStartSeed returns [this+4] ("Game Start Seed was not set" if 0); 009eb880 set_start_seed writes it; 0085e180 ClearStartSeed zeroes it + uint8_t _rng[0x48]; // RNG; 006ef890 Lua GetNextSeed steps xorshift seed this+8 with shifts +0xc/+0x10/+0x14; ctor inits 0xaa17414f,5,9,7; set_start_seed seeds it from start seed + uint32_t _playerInitSeed; + uint32_t _seedEffects; // void* // std::set head ptr (new vs REPENTOGON): 009e9290 ctor allocs 0x14-byte tree head at this+0x54; 00685e70 ClearSeedEffects erases tree this+0x54 then count +0x58=0 + int _seedEffectsCount; // 0085e1b0 Lua CountSeedEffects returns this+0x58; ClearSeedEffects zeroes it +}; +static_assert(offsetof(Seeds, _isCustomRun) == 0x0); +static_assert(offsetof(Seeds, _gameStartSeed) == 0x4); +static_assert(offsetof(Seeds, _rng) == 0x8); +static_assert(offsetof(Seeds, _playerInitSeed) == 0x50); +static_assert(offsetof(Seeds, _seedEffects) == 0x54); +static_assert(offsetof(Seeds, _seedEffectsCount) == 0x58); + +struct HUD { + uint8_t _pad_0x0[0x3778]; + ANM2 _chargeBarSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_chargebar.anm2; ctor 006f2060 (PlayerHUD 0x6dc x8 + 2 Font = 0x20 below REPENTOGON) + ANM2 _chargeBarSmallSprite; // not in REPENTOGON (unnamed gap): HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_chargebar_small.anm2 + ANM2 _heartsSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_hearts.anm2 + ANM2 _pickupHUDSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/hudpickups.anm2 + ANM2 _cardsPillsSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_cardspills.anm2 + uint8_t _messageMain[0x1f4]; // HUD_Message; ctor 006f2060 HUD_Message ctor 008405b0 right after cardsPills; FUN_009a27d0 resets its streak ANM2 (+0x20=0x3cfc) and _showing (+8=0x3ce4) + uint8_t _messageStack[0xbb8]; // HUD_Message; ctor 006f2060 eh-vector-ctor(0x3ed0, 500, 6, 008405b0); HUD::Update 009a2990 ticks 6 + uint8_t _messagePlayerHUD[0x7d0]; // HUD_Message; ctor 006f2060 eh-vector-ctor(0x4a88, 500, 4, 008405b0); HUD::Update 009a2990 ticks 4 + ANM2 _fortuneSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_FortunePaper.anm2; HUD::Update 009a2990 SlideIn/SlideOut events + uint8_t _pad_0x536c[0x8]; + ANM2 _statsSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/hudstats.anm2 + uint8_t _pad_0x5488[0x8]; + float _bossHPBarFill; // boss bar render FUN_009a7c90: if (0 <= +0x5490) width = +0x5490 * 110.0; HUD reset FUN_009a19a0 = -1.0f + uint8_t _pad_0x5494[0x38]; + bool _isVisible; + bool _isGraphicsLoaded; // not in REPENTOGON: HUD::LoadGraphics 009a1a30 sets 1 at end and loads fonts only if 0; FUN_009a1970 clears it before reloading + uint8_t _pad_0x54ce[0x2]; + int _hudRefreshType; // FUN_009a6110(type) (HUD refresh request, called by PlayerHUD::Update 00842230 with 1) sets +0x54d0=type, +0x54d8=2; HUD::Update 009a2990 zeroes it when countdown ends + uint8_t _pad_0x54d4[0x4]; + int _hudRefreshCountdown; // HUD::Update 009a2990 decrements it, zeroes +0x54d0 at <1; FUN_009a6110 sets 2 + ANM2 _coopMenuSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/coop menu.anm2 (shift -0x18 from here) + ANM2 _inventorySprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_inventory.anm2 + ANM2 _craftingTableSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_crafting.anm2 + ANM2 _poopSpellsSprite; // HUD::LoadGraphics 009a1a30 loads gfx/ui/ui_poops.anm2 + uint8_t _pad_0x592c[0x78]; + uint8_t _statHUD[0x2b0]; // StatHUD; HUD::Render 009a3eb0: LEA ECX,[EDI+0x59a4] then CALL StatHUD::Render 0084c2c0 (009a568c); its first member ANM2 loads gfx/ui/hudstats2.anm2 (LoadGraphics) + uint8_t _historyHUD[0x4]; // HistoryHUD; HUD::Render 009a3eb0: LEA ECX,[EDI+0x5c54] then CALL 0083ac20 (item-history render); ctor 006f2060 eh-vector-ctor(0x5c54, 0x14, 2) +}; +static_assert(offsetof(HUD, _chargeBarSprite) == 0x3778); +static_assert(offsetof(HUD, _chargeBarSmallSprite) == 0x388c); +static_assert(offsetof(HUD, _heartsSprite) == 0x39a0); +static_assert(offsetof(HUD, _pickupHUDSprite) == 0x3ab4); +static_assert(offsetof(HUD, _cardsPillsSprite) == 0x3bc8); +static_assert(offsetof(HUD, _messageMain) == 0x3cdc); +static_assert(offsetof(HUD, _messageStack) == 0x3ed0); +static_assert(offsetof(HUD, _messagePlayerHUD) == 0x4a88); +static_assert(offsetof(HUD, _fortuneSprite) == 0x5258); +static_assert(offsetof(HUD, _statsSprite) == 0x5374); +static_assert(offsetof(HUD, _bossHPBarFill) == 0x5490); +static_assert(offsetof(HUD, _isVisible) == 0x54cc); +static_assert(offsetof(HUD, _isGraphicsLoaded) == 0x54cd); +static_assert(offsetof(HUD, _hudRefreshType) == 0x54d0); +static_assert(offsetof(HUD, _hudRefreshCountdown) == 0x54d8); +static_assert(offsetof(HUD, _coopMenuSprite) == 0x54dc); +static_assert(offsetof(HUD, _inventorySprite) == 0x55f0); +static_assert(offsetof(HUD, _craftingTableSprite) == 0x5704); +static_assert(offsetof(HUD, _poopSpellsSprite) == 0x5818); +static_assert(offsetof(HUD, _statHUD) == 0x59a4); +static_assert(offsetof(HUD, _historyHUD) == 0x5c54); + +struct Minimap { + int _state; // Minimap update 0098dba0 (named Game::update_map_input, this=Minimap) sets +0 to 0/1/2 by map-button hold; Minimap::Init 0098d560 zeroes + bool _unkBool; // Minimap update 0098dba0 toggles byte +4 with state (set 1 with state 2, 0 with state 0); Init 0098d560 zeroes + uint8_t _pad_0x5[0x3]; + uint32_t _holdTime; // Minimap update 0098dba0: ++ while ACTION_MAP held, ==10 triggers, <9 checks, reset 0; Init zeroes + float _unkFloat; // Minimap::Init 0098d560 = 1.0f; Minimap::Render 0098e4d0 uses (w - w * +0xc) * 0.5 (display scale) + uint8_t _pad_0x10[0x8]; + uint8_t _config[0x2c0]; // MinimapConfig; Minimap::Init 0098d560 loads gfx/ui/minimap1.anm2 at +0x18 and minimap2.anm2 at +0x178 (stride 0x160), writes config ptr/sizes per element + ANM2 _itemIconsSprite; // Minimap::Init 0098d560 loads gfx/ui/mapitemicons.anm2 at +0x2d8 + ANM2 _hudPickupSprite; // Minimap::Init 0098d560 loads gfx/ui/hudpickups.anm2 at +0x3ec + ANM2 _iconsSprite; // Minimap::Init 0098d560 loads gfx/ui/minimap_icons.anm2 at +0x500 + uint8_t _pad_0x614[0x8]; + int _shakeDuration; // Minimap update 0098dba0: if (+0x61c > 0) decrement and scale shake by it/10; Init zeroes + Vector _shakeOffset; // Minimap update 0098dba0 writes +0x620/+0x624 from shake; Render 0098e4d0 adds them to the draw position; Init = Vector::Zero +}; +static_assert(offsetof(Minimap, _state) == 0x0); +static_assert(offsetof(Minimap, _unkBool) == 0x4); +static_assert(offsetof(Minimap, _holdTime) == 0x8); +static_assert(offsetof(Minimap, _unkFloat) == 0xc); +static_assert(offsetof(Minimap, _config) == 0x18); +static_assert(offsetof(Minimap, _itemIconsSprite) == 0x2d8); +static_assert(offsetof(Minimap, _hudPickupSprite) == 0x3ec); +static_assert(offsetof(Minimap, _iconsSprite) == 0x500); +static_assert(offsetof(Minimap, _shakeDuration) == 0x61c); +static_assert(offsetof(Minimap, _shakeOffset) == 0x620); + +struct Game { + uint32_t _stage; // Level:GetStage binding (0040c3a0) returns *this; Game:GetLevel (00424530) returns this, so Level*==Game* + uint32_t _stageType; // Level:GetStageType (004073c0) returns this+4; Level::IsAltStage (0042a2c0) tests it !=0 + bool _bossChallenge; // Level::HasBossChallenge (0085e160) returns byte this+8 + bool _devilRoomDisabled; // Level::IsDevilRoomDisabled (007e9250) reads, Level::DisableDevilRoom (007e9260) sets byte this+9=1 + uint8_t _pad_0xa[0x2]; + uint32_t _curses; // Level::GetCurses (00748490) ORs this+0xc with forced curses; Level::RemoveCurses (00748bc0) clears bits in it + uint8_t _pad_0x10[0x182bc]; + uint32_t _nbRooms; // Level::GetRoomCount (0056ff80) returns it; Level::GetRoomByIdx (00740bc0) loops rooms up to it + uint32_t _startingRoomIdx; // Level::GetStartingRoomIndex (00505c70) returns it + uint8_t _generationRNG[0x10]; // RNG; Game ctor (006f1020) inits RNG (seed 0xaa17414f, shifts 5/9/7); Level::Init (00744940) seeds+steps it; used by Level::place_special_rooms/generate_dungeon/generate_mineshaft + uint8_t _devilAngelRoomRNG[0x10]; // RNG; Level:GetDevilAngelRoomRNG (007537f0) returns this+0x182e4; ctor/Level::Init init it as 2nd RNG; Level::InitializeDevilAngelRoom uses it (not in REPENTOGON) + float _angelRoomChance; // Level::GetAngelRoomChance (007e9270) returns float; Level::AddAngelRoomChance (0065cf00) adds to it (not in REPENTOGON) + uint8_t _pad_0x182f8[0x8]; + uint32_t _room; // Room* // Level::GetCurrentRoom (00407480) returns it; RemoveCurses uses it +0x1218 as EntityList + uint32_t _currentRoomIdx; // Level::GetCurrentRoomIndex lua field; Game::GetCurrentRoomDesc (00740db0) passes it to GetRoomByIdx + uint32_t _lastRoomIdx; // Level::GetPreviousRoomIndex lua field; Level::GetLastRoomDesc (00740dd0) passes it to GetRoomByIdx + uint32_t _currentDimensionIdx; // Level::GetRoomByIdx (00740bc0) uses it as default dimension; Game::GetCurrentRoomDesc passes it with _currentRoomIdx + uint32_t _lastRoomDimensionIdx; // Level::GetLastRoomDesc (00740dd0) passes it as dimension with _lastRoomIdx + uint32_t _lastBossRoomListIdx; // Level::GetLastBossRoomListIndex lua field + uint32_t _leaveDoor; // Level::LeaveDoor lua field + uint32_t _enterDoor; // Level::EnterDoor lua field + uint8_t _pad_0x18320[0xc]; + uint32_t _dungeonPlacementSeed; // Level::GetDungeonPlacementSeed (0060d000) returns it + uint8_t _pad_0x18330[0x4]; + uint32_t _greedModeWave; // Level::GreedModeWave (0070c5b0) returns it + uint8_t _pad_0x18338[0x38]; + uint32_t _greedModeTreasureRoomIdx; // level gen (0074399a etc.) sets it to 0x55; ItemPool::get_pool_from_room_entities (007ebe20): greed mode treasure room != this idx -> boss pool + int _greedWavesClearedWithoutRedHeartDamage; // Room::SpawnGreedModeWave (00816910) increments it, extra wave every 3; Level::SetRedHeartDamage (0074b5b0) zeroes it (REPENTOGON Level had 0x18204) + uint8_t _pad_0x18378[0x24]; + uint32_t _levelStateFlags; // Level::GetStateFlag (004f88f0)/SetStateFlag (00428a80) test/set bit in this+0x1839c + uint8_t _pad_0x183a0[0x4]; + uint8_t _myosotisPickups[0x56c]; // vector_EntitySaveState; Room::Update (00802980) if non-empty calls FUN_00752830 on it then checks trinket 0x89 (Myosotis); ctor zeroes 0x183a4..0x183ac + uint8_t _roomConfig[0x1e30]; // RoomConfig; Game ctor builds 0x25 RoomConfigStage at it; Level::ForceHorsemanBoss (007481d0) and FUN_00745b70 call RoomConfig::GetRoomByStageTypeAndVariant with ECX=Game+0x18910 + ItemPool _itemPool; + uint8_t _pad_0x1aee4[0x8c]; + uint8_t _bossPool[0x8cc]; // BossPool + uint8_t _roomTransition[0x23c]; // RoomTransition + uint8_t _stageTransition[0x30]; // StageTransition + PlayerManager _playerManager; + uint8_t _pad_0x1bb64[0x20]; + Seeds _seedEffects; + uint8_t _pad_0x1bbe0[0x454]; + uint8_t _itemOverlay[0x14ec]; // ItemOverlay + uint8_t _gameOver[0x130]; // GameOver; Game::Render (006fbc10) calls GameOver::Render (00998880) with ECX=Game+0x1d520; ctor builds it after ItemOverlay + uint8_t _leaderboard[0x3b4]; // Leaderboard; Game::Update (006fadc0) calls Leaderboard::Update (00857450) with ECX=Game+0x1d650; ctor calls its ctor 00856f70 there + HUD _hud; + uint8_t _pad_0x2365c[0x418]; + uint8_t _pauseScreen[0x1458]; // PauseScreen; Game ctor calls PauseScreen::constructor (009b5320) on Game+0x23a74; Game::Update/Render test state dword there and render it when !=0 + uint8_t _revivePlayerMenu[0x1000]; // RevivePlayerMenu; Game::LoadConfigXmls (006f4740) calls RevivePlayerMenu::Init (008ef560) with ECX=Game+0x24ecc; Game::Render calls 008efe10 on it (not in REPENTOGON) + Minimap _minimap; // HUD::Render (009a3eb0) calls Minimap::Render with ECX=Game+0x25ecc; LoadConfigXmls calls Minimap::Init on it; 8 Minimap::Refresh calls on it + uint8_t _pad_0x264f4[0x4]; + int _frameCount; + uint8_t _pad_0x264fc[0x4]; + int _bossRushParTime; + int _blueWombParTime; + uint8_t _pad_0x26508[0x4]; + Vector _screenShakeOffset; + uint8_t _pad_0x26514[0x20]; + bool _triggerWindowResize; + uint8_t _pad_0x26535[0xf]; + uint32_t _debugFlags; + uint64_t _gameStateFlags; + uint8_t _pad_0x26550[0x4]; + int _lastDevilRoomStage; + int _treasureRoomsVisited; + int _planetariumsVisited; + int _stagesWithoutHeartsPicked; + int _stagesWithoutDamage; + int _devilRoomDeals; + int _donationModGreed; + int _donationModAngel; + int _shopVisits; + uint8_t _pad_0x26578[0x8]; + uint32_t _entityFactory; // EntityFactory* + uint32_t _challenge; + bool _isRerun; + bool _isDebug; + uint8_t _pad_0x2658a[0x3e]; + uint8_t _ambush[0x68]; // Ambush + uint8_t _dailyChallenge[0xb4]; // DailyChallenge + uint8_t _scoreSheet[0x90]; // ScoreSheet + int _victoryLap; + uint8_t _genericPrompt[0x248]; // GenericPrompt + int _lastLevelWithoutHalfHp; + uint8_t _pad_0x269c4[0x4]; + uint32_t _difficulty; + int _lastLevelWithDamage; + uint8_t _pad_0x269d0[0x19]; + bool _isStartingFromState; // FUN_00959720 sets 1 around Game::restore_game_state..LuaEngine::PostGameStart then 0; Player::AddSoulHearts (00758d00) skips while set; reset_run_state zeroes + bool _isStoringGlowingHourglassState; // Game::save_rewind_state (00705ee0) sets 1 while storing the slot, 0 after, and bails if already set + bool _isRestoringGlowingHourglassState; // Entity_Player::RestoreGameState (007ae4b0) branches on it; save_rewind_state bails if set + uint8_t _glowingHourglassStates[0x40cc0]; // GlowingHourglassState; Game ctor: vector ctor 2 x 0x20660 at Game+0x269ec; save_rewind_state writes Game+0x269ec+slot*0x20660 + int _currentGlowingHourglassSlot; // Game::save_rewind_state (00705ee0) reads/writes int index 0x19dab (=0x676ac) as the slot selecting the 0x20660 state + uint8_t _pad_0x676b0[0x4]; + bool _shouldLerpColorModState; // Game::SetColorModifier (007067c0) sets 1 when lerp, 0 otherwise; Game::Update clears it when done + uint8_t _pad_0x676b5[0x3]; + uint8_t _currentColorModifier[0x18]; // ColorModState; SetColorModifier copies target into it when not lerping; ctor inits 1,1,1,0,0,1 + uint8_t _targetColorModifier[0x18]; // ColorModState; SetColorModifier copies the argument ColorModState into it + uint8_t _lerpColorModifier[0x44]; // ColorModState; SetColorModifier stores |target-current|*rate per component into it + uint8_t _debugRenderer[0x8]; // DebugRenderer; Game::Render (006fbc10) calls DebugRenderer::Render (0042dbb0) with ECX=Game+0x6772c; Game::Update expires its list entries + float _lightningIntensity; // Game::Update (006fadc0) decays it *0.75, zero below 0.05 + float _dizzyIntensity; // Game::Update moves it toward 0x6773c by step 0x67740 + float _dizzyTargetIntensity; // Game::Update: target that _dizzyIntensity approaches + float _dizzyIntensityChangeSpeed; // Game::Update: step size; reset_run_state (006f43b0) sets 0.001 + uint8_t _pad_0x67744[0x8]; + uint8_t _erasedEntities[0xc]; // vector_ErasedEntities; Game::AddErasedEnemy (00707840) pushes {type,variant,subtype} (12 bytes) to vector at 0x6774c/0x67750; Game::ShouldEraseEnemy scans it + uint8_t _proceduralItemManager[0x1620]; // ProceduralItemManager; ItemPool::CreateGlitchedCollectible (009dcc70) indexes vector at Game+0x67758 by -1-id + uint8_t _console[0x4]; // Console; Game::Render calls Console::Render (0068c2e0) and Manager::update_ingame_input calls Console::Update (0068b260) with ECX=Game+0x68d78; ctor layout matches (_input string +0x1c, deques +0x40/+0x54) +}; +static_assert(offsetof(Game, _stage) == 0x0); +static_assert(offsetof(Game, _stageType) == 0x4); +static_assert(offsetof(Game, _bossChallenge) == 0x8); +static_assert(offsetof(Game, _devilRoomDisabled) == 0x9); +static_assert(offsetof(Game, _curses) == 0xc); +static_assert(offsetof(Game, _nbRooms) == 0x182cc); +static_assert(offsetof(Game, _startingRoomIdx) == 0x182d0); +static_assert(offsetof(Game, _generationRNG) == 0x182d4); +static_assert(offsetof(Game, _devilAngelRoomRNG) == 0x182e4); +static_assert(offsetof(Game, _angelRoomChance) == 0x182f4); +static_assert(offsetof(Game, _room) == 0x18300); +static_assert(offsetof(Game, _currentRoomIdx) == 0x18304); +static_assert(offsetof(Game, _lastRoomIdx) == 0x18308); +static_assert(offsetof(Game, _currentDimensionIdx) == 0x1830c); +static_assert(offsetof(Game, _lastRoomDimensionIdx) == 0x18310); +static_assert(offsetof(Game, _lastBossRoomListIdx) == 0x18314); +static_assert(offsetof(Game, _leaveDoor) == 0x18318); +static_assert(offsetof(Game, _enterDoor) == 0x1831c); +static_assert(offsetof(Game, _dungeonPlacementSeed) == 0x1832c); +static_assert(offsetof(Game, _greedModeWave) == 0x18334); +static_assert(offsetof(Game, _greedModeTreasureRoomIdx) == 0x18370); +static_assert(offsetof(Game, _greedWavesClearedWithoutRedHeartDamage) == 0x18374); +static_assert(offsetof(Game, _levelStateFlags) == 0x1839c); +static_assert(offsetof(Game, _myosotisPickups) == 0x183a4); +static_assert(offsetof(Game, _roomConfig) == 0x18910); +static_assert(offsetof(Game, _itemPool) == 0x1a740); +static_assert(offsetof(Game, _bossPool) == 0x1af70); +static_assert(offsetof(Game, _roomTransition) == 0x1b83c); +static_assert(offsetof(Game, _stageTransition) == 0x1ba78); +static_assert(offsetof(Game, _playerManager) == 0x1baa8); +static_assert(offsetof(Game, _seedEffects) == 0x1bb84); +static_assert(offsetof(Game, _itemOverlay) == 0x1c034); +static_assert(offsetof(Game, _gameOver) == 0x1d520); +static_assert(offsetof(Game, _leaderboard) == 0x1d650); +static_assert(offsetof(Game, _hud) == 0x1da04); +static_assert(offsetof(Game, _pauseScreen) == 0x23a74); +static_assert(offsetof(Game, _revivePlayerMenu) == 0x24ecc); +static_assert(offsetof(Game, _minimap) == 0x25ecc); +static_assert(offsetof(Game, _frameCount) == 0x264f8); +static_assert(offsetof(Game, _bossRushParTime) == 0x26500); +static_assert(offsetof(Game, _blueWombParTime) == 0x26504); +static_assert(offsetof(Game, _screenShakeOffset) == 0x2650c); +static_assert(offsetof(Game, _triggerWindowResize) == 0x26534); +static_assert(offsetof(Game, _debugFlags) == 0x26544); +static_assert(offsetof(Game, _gameStateFlags) == 0x26548); +static_assert(offsetof(Game, _lastDevilRoomStage) == 0x26554); +static_assert(offsetof(Game, _treasureRoomsVisited) == 0x26558); +static_assert(offsetof(Game, _planetariumsVisited) == 0x2655c); +static_assert(offsetof(Game, _stagesWithoutHeartsPicked) == 0x26560); +static_assert(offsetof(Game, _stagesWithoutDamage) == 0x26564); +static_assert(offsetof(Game, _devilRoomDeals) == 0x26568); +static_assert(offsetof(Game, _donationModGreed) == 0x2656c); +static_assert(offsetof(Game, _donationModAngel) == 0x26570); +static_assert(offsetof(Game, _shopVisits) == 0x26574); +static_assert(offsetof(Game, _entityFactory) == 0x26580); +static_assert(offsetof(Game, _challenge) == 0x26584); +static_assert(offsetof(Game, _isRerun) == 0x26588); +static_assert(offsetof(Game, _isDebug) == 0x26589); +static_assert(offsetof(Game, _ambush) == 0x265c8); +static_assert(offsetof(Game, _dailyChallenge) == 0x26630); +static_assert(offsetof(Game, _scoreSheet) == 0x266e4); +static_assert(offsetof(Game, _victoryLap) == 0x26774); +static_assert(offsetof(Game, _genericPrompt) == 0x26778); +static_assert(offsetof(Game, _lastLevelWithoutHalfHp) == 0x269c0); +static_assert(offsetof(Game, _difficulty) == 0x269c8); +static_assert(offsetof(Game, _lastLevelWithDamage) == 0x269cc); +static_assert(offsetof(Game, _isStartingFromState) == 0x269e9); +static_assert(offsetof(Game, _isStoringGlowingHourglassState) == 0x269ea); +static_assert(offsetof(Game, _isRestoringGlowingHourglassState) == 0x269eb); +static_assert(offsetof(Game, _glowingHourglassStates) == 0x269ec); +static_assert(offsetof(Game, _currentGlowingHourglassSlot) == 0x676ac); +static_assert(offsetof(Game, _shouldLerpColorModState) == 0x676b4); +static_assert(offsetof(Game, _currentColorModifier) == 0x676b8); +static_assert(offsetof(Game, _targetColorModifier) == 0x676d0); +static_assert(offsetof(Game, _lerpColorModifier) == 0x676e8); +static_assert(offsetof(Game, _debugRenderer) == 0x6772c); +static_assert(offsetof(Game, _lightningIntensity) == 0x67734); +static_assert(offsetof(Game, _dizzyIntensity) == 0x67738); +static_assert(offsetof(Game, _dizzyTargetIntensity) == 0x6773c); +static_assert(offsetof(Game, _dizzyIntensityChangeSpeed) == 0x67740); +static_assert(offsetof(Game, _erasedEntities) == 0x6774c); +static_assert(offsetof(Game, _proceduralItemManager) == 0x67758); +static_assert(offsetof(Game, _console) == 0x68d78); + +struct GridEntityDesc { + int _type; + int _variant; + int _state; + int _spawnCount; + uint32_t _spawnSeed; + int _varData; + bool _initialized; + uint8_t _pad_0x19[0x3]; + uint32_t _variableSeed; +}; +static_assert(offsetof(GridEntityDesc, _type) == 0x0); +static_assert(offsetof(GridEntityDesc, _variant) == 0x4); +static_assert(offsetof(GridEntityDesc, _state) == 0x8); +static_assert(offsetof(GridEntityDesc, _spawnCount) == 0xc); +static_assert(offsetof(GridEntityDesc, _spawnSeed) == 0x10); +static_assert(offsetof(GridEntityDesc, _varData) == 0x14); +static_assert(offsetof(GridEntityDesc, _initialized) == 0x18); +static_assert(offsetof(GridEntityDesc, _variableSeed) == 0x1c); + +struct GridEntity { + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity, _desc) == 0x4); +static_assert(offsetof(GridEntity, _varData) == 0x18); +static_assert(offsetof(GridEntity, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity, _rng) == 0x2c); +static_assert(offsetof(GridEntity, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity, _sprite) == 0x40); + +struct GridEntity_Decoration { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Decoration, _desc) == 0x4); +static_assert(offsetof(GridEntity_Decoration, _varData) == 0x18); +static_assert(offsetof(GridEntity_Decoration, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Decoration, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Decoration, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Decoration, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Decoration, _sprite) == 0x40); + +struct GridEntity_Door { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + uint8_t _sprite[0x94]; // ANM2 + Vector _spriteOffset; + uint8_t _pad_0xdc[0x7c]; + int _slot; + uint8_t _pad_0x15c[0x8]; + int _direction; + uint8_t _pad_0x168[0x114]; + ANM2 _extraSprite; + uint8_t _pad_0x390[0x1]; + bool _isBusted; + uint8_t _pad_0x392[0x2]; + int _targetRoomIdx; + uint32_t _previousState; + uint32_t _previousVariant; +}; +static_assert(offsetof(GridEntity_Door, _desc) == 0x4); +static_assert(offsetof(GridEntity_Door, _varData) == 0x18); +static_assert(offsetof(GridEntity_Door, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Door, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Door, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Door, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Door, _sprite) == 0x40); +static_assert(offsetof(GridEntity_Door, _spriteOffset) == 0xd4); +static_assert(offsetof(GridEntity_Door, _slot) == 0x158); +static_assert(offsetof(GridEntity_Door, _direction) == 0x164); +static_assert(offsetof(GridEntity_Door, _extraSprite) == 0x27c); +static_assert(offsetof(GridEntity_Door, _isBusted) == 0x391); +static_assert(offsetof(GridEntity_Door, _targetRoomIdx) == 0x394); +static_assert(offsetof(GridEntity_Door, _previousState) == 0x398); +static_assert(offsetof(GridEntity_Door, _previousVariant) == 0x39c); + +struct GridEntity_Fire { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Fire, _desc) == 0x4); +static_assert(offsetof(GridEntity_Fire, _varData) == 0x18); +static_assert(offsetof(GridEntity_Fire, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Fire, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Fire, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Fire, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Fire, _sprite) == 0x40); + +struct GridEntity_Gravity { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Gravity, _desc) == 0x4); +static_assert(offsetof(GridEntity_Gravity, _varData) == 0x18); +static_assert(offsetof(GridEntity_Gravity, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Gravity, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Gravity, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Gravity, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Gravity, _sprite) == 0x40); + +struct GridEntity_Lock { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Lock, _desc) == 0x4); +static_assert(offsetof(GridEntity_Lock, _varData) == 0x18); +static_assert(offsetof(GridEntity_Lock, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Lock, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Lock, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Lock, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Lock, _sprite) == 0x40); + +struct GridEntity_Pit { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Pit, _desc) == 0x4); +static_assert(offsetof(GridEntity_Pit, _varData) == 0x18); +static_assert(offsetof(GridEntity_Pit, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Pit, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Pit, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Pit, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Pit, _sprite) == 0x40); + +struct GridEntity_Poop { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Poop, _desc) == 0x4); +static_assert(offsetof(GridEntity_Poop, _varData) == 0x18); +static_assert(offsetof(GridEntity_Poop, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Poop, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Poop, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Poop, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Poop, _sprite) == 0x40); + +struct GridEntity_PressurePlate { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_PressurePlate, _desc) == 0x4); +static_assert(offsetof(GridEntity_PressurePlate, _varData) == 0x18); +static_assert(offsetof(GridEntity_PressurePlate, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_PressurePlate, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_PressurePlate, _rng) == 0x2c); +static_assert(offsetof(GridEntity_PressurePlate, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_PressurePlate, _sprite) == 0x40); + +struct GridEntity_Rock { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Rock, _desc) == 0x4); +static_assert(offsetof(GridEntity_Rock, _varData) == 0x18); +static_assert(offsetof(GridEntity_Rock, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Rock, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Rock, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Rock, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Rock, _sprite) == 0x40); + +struct GridEntity_Spikes { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Spikes, _desc) == 0x4); +static_assert(offsetof(GridEntity_Spikes, _varData) == 0x18); +static_assert(offsetof(GridEntity_Spikes, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Spikes, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Spikes, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Spikes, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Spikes, _sprite) == 0x40); + +struct GridEntity_Stairs { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Stairs, _desc) == 0x4); +static_assert(offsetof(GridEntity_Stairs, _varData) == 0x18); +static_assert(offsetof(GridEntity_Stairs, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Stairs, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Stairs, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Stairs, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Stairs, _sprite) == 0x40); + +struct GridEntity_Statue { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Statue, _desc) == 0x4); +static_assert(offsetof(GridEntity_Statue, _varData) == 0x18); +static_assert(offsetof(GridEntity_Statue, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Statue, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Statue, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Statue, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Statue, _sprite) == 0x40); + +struct GridEntity_TNT { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_TNT, _desc) == 0x4); +static_assert(offsetof(GridEntity_TNT, _varData) == 0x18); +static_assert(offsetof(GridEntity_TNT, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_TNT, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_TNT, _rng) == 0x2c); +static_assert(offsetof(GridEntity_TNT, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_TNT, _sprite) == 0x40); + +struct GridEntity_Teleporter { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Teleporter, _desc) == 0x4); +static_assert(offsetof(GridEntity_Teleporter, _varData) == 0x18); +static_assert(offsetof(GridEntity_Teleporter, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Teleporter, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Teleporter, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Teleporter, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Teleporter, _sprite) == 0x40); + +struct GridEntity_TrapDoor { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_TrapDoor, _desc) == 0x4); +static_assert(offsetof(GridEntity_TrapDoor, _varData) == 0x18); +static_assert(offsetof(GridEntity_TrapDoor, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_TrapDoor, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_TrapDoor, _rng) == 0x2c); +static_assert(offsetof(GridEntity_TrapDoor, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_TrapDoor, _sprite) == 0x40); + +struct GridEntity_Wall { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Wall, _desc) == 0x4); +static_assert(offsetof(GridEntity_Wall, _varData) == 0x18); +static_assert(offsetof(GridEntity_Wall, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Wall, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Wall, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Wall, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Wall, _sprite) == 0x40); + +struct GridEntity_Web { // : GridEntity (flattened) + uint8_t _pad_0x0[0x4]; + uint8_t _desc[0x14]; // GridEntityDesc + int _varData; + uint8_t _pad_0x1c[0x8]; + uint32_t _gridIndex; + uint32_t _spawnFrame; + uint8_t _rng[0x10]; // RNG + int _collisionClass; + ANM2 _sprite; +}; +static_assert(offsetof(GridEntity_Web, _desc) == 0x4); +static_assert(offsetof(GridEntity_Web, _varData) == 0x18); +static_assert(offsetof(GridEntity_Web, _gridIndex) == 0x24); +static_assert(offsetof(GridEntity_Web, _spawnFrame) == 0x28); +static_assert(offsetof(GridEntity_Web, _rng) == 0x2c); +static_assert(offsetof(GridEntity_Web, _collisionClass) == 0x3c); +static_assert(offsetof(GridEntity_Web, _sprite) == 0x40); + +struct ItemConfig { + uint8_t _pad_0x0[0x3c]; + uint8_t _collectibleNameMap[0x4]; // std_map_string_int; LuaEngine::Isaac_GetItemIdByName 0086f640 looks up Manager+0x2a440 = ItemConfig(Manager+0x2a404, Isaac::GetItemConfig 0042ca00)+0x3c, string key, int value at node+0x28; ItemConfig::Load 00725570 clears this+0x3c +}; +static_assert(offsetof(ItemConfig, _collectibleNameMap) == 0x3c); + +struct ItemConfig_Card { + int id; + int achievementId; + uint8_t name[0x18]; // std_string + uint8_t desc[0x18]; // std_string + uint8_t hudAnim[0x18]; // std_string + bool greedModeAllowed; + uint8_t _pad_0x51[0x3]; + uint32_t pickupSubtype; + uint32_t cardType; + uint32_t announcerVoice; + uint32_t announcerDelay; + uint32_t mimicCharge; + uint32_t modEntry; // ModEntry* // 0072cff0 ItemConfig::load_pocketitems_xml: new(0x70) card, [card+0x68]=ModEntry* param (0072e174); null -> vanilla card table, else appended to modded list + uint32_t moddedCardFront; // ANM2* // 0072cff0 load_pocketitems_xml: card+0x6c=0 in ctor, then =&ModEntry+0x9a0 (0072e1af) when the mod has a card-front sprite (ModEntry+0xaa9) +}; +static_assert(offsetof(ItemConfig_Card, id) == 0x0); +static_assert(offsetof(ItemConfig_Card, achievementId) == 0x4); +static_assert(offsetof(ItemConfig_Card, name) == 0x8); +static_assert(offsetof(ItemConfig_Card, desc) == 0x20); +static_assert(offsetof(ItemConfig_Card, hudAnim) == 0x38); +static_assert(offsetof(ItemConfig_Card, greedModeAllowed) == 0x50); +static_assert(offsetof(ItemConfig_Card, pickupSubtype) == 0x54); +static_assert(offsetof(ItemConfig_Card, cardType) == 0x58); +static_assert(offsetof(ItemConfig_Card, announcerVoice) == 0x5c); +static_assert(offsetof(ItemConfig_Card, announcerDelay) == 0x60); +static_assert(offsetof(ItemConfig_Card, mimicCharge) == 0x64); +static_assert(offsetof(ItemConfig_Card, modEntry) == 0x68); +static_assert(offsetof(ItemConfig_Card, moddedCardFront) == 0x6c); + +struct ItemConfig_Costume { + uint32_t id; + uint8_t anm2Path[0x18]; // std_string + uint32_t priority; + bool hasOverlay; + bool isFlying; + bool hasSkinAlt; + uint8_t _pad_0x23[0x1]; + int skinColor; + bool overwriteColor; +}; +static_assert(offsetof(ItemConfig_Costume, id) == 0x0); +static_assert(offsetof(ItemConfig_Costume, anm2Path) == 0x4); +static_assert(offsetof(ItemConfig_Costume, priority) == 0x1c); +static_assert(offsetof(ItemConfig_Costume, hasOverlay) == 0x20); +static_assert(offsetof(ItemConfig_Costume, isFlying) == 0x21); +static_assert(offsetof(ItemConfig_Costume, hasSkinAlt) == 0x22); +static_assert(offsetof(ItemConfig_Costume, skinColor) == 0x24); +static_assert(offsetof(ItemConfig_Costume, overwriteColor) == 0x28); + +struct ItemConfig_Item { + int type; + int id; + uint8_t name[0x18]; // std_string + uint8_t desc[0x18]; // std_string + uint8_t gfxFilename[0x18]; // std_string + int achievementId; + int cacheFlags; + int addMaxhearts; + int addHearts; + int addSoulHearts; + int addBlackHearts; + int addBombs; + int addKeys; + int addCoins; + uint32_t maxCharges; + uint32_t maxCooldown; + short devilprice; + short shopPrice; + ItemConfig_Costume costume; + uint8_t _pad_0xa9[0x3]; + uint32_t chargeType; + bool special; + bool passiveCache; + bool addCostumeOnPickup; + bool hidden; + bool persistentEffect; + bool clearEffectsOnRemove; + uint8_t _pad_0xb6[0x2]; + uint64_t tags; + int quality; + int craftingQuality; +}; +static_assert(offsetof(ItemConfig_Item, type) == 0x0); +static_assert(offsetof(ItemConfig_Item, id) == 0x4); +static_assert(offsetof(ItemConfig_Item, name) == 0x8); +static_assert(offsetof(ItemConfig_Item, desc) == 0x20); +static_assert(offsetof(ItemConfig_Item, gfxFilename) == 0x38); +static_assert(offsetof(ItemConfig_Item, achievementId) == 0x50); +static_assert(offsetof(ItemConfig_Item, cacheFlags) == 0x54); +static_assert(offsetof(ItemConfig_Item, addMaxhearts) == 0x58); +static_assert(offsetof(ItemConfig_Item, addHearts) == 0x5c); +static_assert(offsetof(ItemConfig_Item, addSoulHearts) == 0x60); +static_assert(offsetof(ItemConfig_Item, addBlackHearts) == 0x64); +static_assert(offsetof(ItemConfig_Item, addBombs) == 0x68); +static_assert(offsetof(ItemConfig_Item, addKeys) == 0x6c); +static_assert(offsetof(ItemConfig_Item, addCoins) == 0x70); +static_assert(offsetof(ItemConfig_Item, maxCharges) == 0x74); +static_assert(offsetof(ItemConfig_Item, maxCooldown) == 0x78); +static_assert(offsetof(ItemConfig_Item, devilprice) == 0x7c); +static_assert(offsetof(ItemConfig_Item, shopPrice) == 0x7e); +static_assert(offsetof(ItemConfig_Item, costume) == 0x80); +static_assert(offsetof(ItemConfig_Item, chargeType) == 0xac); +static_assert(offsetof(ItemConfig_Item, special) == 0xb0); +static_assert(offsetof(ItemConfig_Item, passiveCache) == 0xb1); +static_assert(offsetof(ItemConfig_Item, addCostumeOnPickup) == 0xb2); +static_assert(offsetof(ItemConfig_Item, hidden) == 0xb3); +static_assert(offsetof(ItemConfig_Item, persistentEffect) == 0xb4); +static_assert(offsetof(ItemConfig_Item, clearEffectsOnRemove) == 0xb5); +static_assert(offsetof(ItemConfig_Item, tags) == 0xb8); +static_assert(offsetof(ItemConfig_Item, quality) == 0xc0); +static_assert(offsetof(ItemConfig_Item, craftingQuality) == 0xc4); + +struct ItemConfig_Pill { + int id; + int achievementId; + uint8_t name[0x18]; // std_string + uint8_t desc[0x18]; // std_string + bool greedModeAllowed; + uint8_t _pad_0x39[0x3]; + uint32_t announcerVoice; + uint32_t announcerVoiceSuper; + uint32_t announcerVoiceDelay; + uint32_t mimicCharge; + uint8_t effectClass; + uint8_t effectSubClass; +}; +static_assert(offsetof(ItemConfig_Pill, id) == 0x0); +static_assert(offsetof(ItemConfig_Pill, achievementId) == 0x4); +static_assert(offsetof(ItemConfig_Pill, name) == 0x8); +static_assert(offsetof(ItemConfig_Pill, desc) == 0x20); +static_assert(offsetof(ItemConfig_Pill, greedModeAllowed) == 0x38); +static_assert(offsetof(ItemConfig_Pill, announcerVoice) == 0x3c); +static_assert(offsetof(ItemConfig_Pill, announcerVoiceSuper) == 0x40); +static_assert(offsetof(ItemConfig_Pill, announcerVoiceDelay) == 0x44); +static_assert(offsetof(ItemConfig_Pill, mimicCharge) == 0x48); +static_assert(offsetof(ItemConfig_Pill, effectClass) == 0x4c); +static_assert(offsetof(ItemConfig_Pill, effectSubClass) == 0x4d); + +struct KColor { + float _red; + float _green; + float _blue; + float _alpha; +}; +static_assert(offsetof(KColor, _red) == 0x0); +static_assert(offsetof(KColor, _green) == 0x4); +static_assert(offsetof(KColor, _blue) == 0x8); +static_assert(offsetof(KColor, _alpha) == 0xc); + +struct Level { + uint32_t _stage; // Level:GetStage binding (0040c3a0) returns *this + uint32_t _stageType; // Level:GetStageType (004073c0) returns this+4; Level::IsAltStage (0042a2c0) + uint8_t _pad_0x8[0x8]; + bool _isHeartPicked; + bool _isCanSeeEverything; + uint8_t _pad_0x12[0x182ba]; + int _roomCount; + int _startingRoomIndex; + uint8_t _pad_0x182d4[0x10]; + uint8_t _devilAngelRoomRNG[0x10]; // RNG; Level:GetDevilAngelRoomRNG (007537f0) returns this+0x182e4 (not in REPENTOGON) + float _angelRoomChance; // Level::GetAngelRoomChance (007e9270)/AddAngelRoomChance (0065cf00) (not in REPENTOGON) + uint8_t _pad_0x182f8[0xc]; + int _currentRoomIndex; + int _previousRoomIndex; + uint8_t _pad_0x1830c[0x8]; + int _lastBossRoomListIndex; + int _leaveDoor; + int _enterDoor; + uint8_t _pad_0x18320[0x8]; + int _dungeonReturnRoomIndex; + int _dungeonPlacementSeed; + uint8_t _pad_0x18330[0x4]; + int _greedModeWave; + uint8_t _pad_0x18338[0x3c]; + uint32_t _greedwavesclearedwithoutredheartdamage; // Room::SpawnGreedModeWave (00816910) increments; Level::SetRedHeartDamage (0074b5b0) zeroes (REPENTOGON said 0x18204, +0x170) + uint8_t _pad_0x18378[0x24]; + uint32_t _levelStateFlag; // Level::GetStateFlag (004f88f0)/SetStateFlag (00428a80) bitset at this+0x1839c (REPENTOGON Level said 0x1822c, +0x170) +}; +static_assert(offsetof(Level, _stage) == 0x0); +static_assert(offsetof(Level, _stageType) == 0x4); +static_assert(offsetof(Level, _isHeartPicked) == 0x10); +static_assert(offsetof(Level, _isCanSeeEverything) == 0x11); +static_assert(offsetof(Level, _roomCount) == 0x182cc); +static_assert(offsetof(Level, _startingRoomIndex) == 0x182d0); +static_assert(offsetof(Level, _devilAngelRoomRNG) == 0x182e4); +static_assert(offsetof(Level, _angelRoomChance) == 0x182f4); +static_assert(offsetof(Level, _currentRoomIndex) == 0x18304); +static_assert(offsetof(Level, _previousRoomIndex) == 0x18308); +static_assert(offsetof(Level, _lastBossRoomListIndex) == 0x18314); +static_assert(offsetof(Level, _leaveDoor) == 0x18318); +static_assert(offsetof(Level, _enterDoor) == 0x1831c); +static_assert(offsetof(Level, _dungeonReturnRoomIndex) == 0x18328); +static_assert(offsetof(Level, _dungeonPlacementSeed) == 0x1832c); +static_assert(offsetof(Level, _greedModeWave) == 0x18334); +static_assert(offsetof(Level, _greedwavesclearedwithoutredheartdamage) == 0x18374); +static_assert(offsetof(Level, _levelStateFlag) == 0x1839c); + +struct OptionsConfig { + uint8_t _optionsIniFilePath[0x18]; // std_string; OptionsConfig::Save 00924d10 opens this std::string (cap check +0x14) as the ini path + float _musicVolume; // OptionsConfig::Save 00924d10 "MusicVolume=%.4f"; Load 00924440 stores it; Lua Options::MusicVolume 00896810 reads Manager+0x2a354 + float _sfxVolume; // Save 00924d10 "SFXVolume="; Load 00924440; Lua Options::SFXVolume 008969e0 + float _mapOpacity; // Save 00924d10 "MapOpacity="; Load 00924440; Lua Options::MapOpacity 00896a50 + bool _isFullscreen; // Save 00924d10 "Fullscreen="; Lua Options::Fullscreen 00896ab0 + bool _filterEnabled; // Save 00924d10 "Filter="; Load 00924440; Lua Options::Filter 00896c10 + uint8_t _pad_0x26[0x2]; + float _gamma; // Save 00924d10 "Gamma="; Load 00924440; Lua Options::Gamma 00896c40 + float _exposure; // Save 00924d10 "Exposure="; Load 00924440 stores "Exposure" + float _brightness; // Load 00924440 stores the "Brightness" key here + float _contrast; // Load 00924440 stores the "Contrast" key here + bool _controlHotplugEnabled; // Save 00924d10 "ControllerHotplug="; Load 00924440 + uint8_t _pad_0x39[0x3]; + int _popupsMode; // Save 00924d10 "PopUps="; Load 00924440; Lua Options::DisplayPopups 00896ca0 + bool _enableFoundHUD; // Save 00924d10 "FoundHUD="; Load 00924440; Lua Options::FoundHUD 00896f20 + uint8_t _pad_0x41[0x3]; + int _cameraStyle; // Save 00924d10 "CameraStyle="; Lua Options::CameraStyle 00896e20 + int _historyHudMode; // Save 00924d10 "ShowRecentItems="; Lua Options::ExtraHUDStyle 00896e70 + float _hudOffset; // Save 00924d10 "HudOffset="; Lua Options::HUDOffset 00896ec0 + bool _tryImportSave; // Save 00924d10 "TryImportSave="; Load 00924440 + bool _enableMods; // Save 00924d10 "EnableMods="; Load 00924440 + bool _enableRumble; // Save 00924d10 "RumbleEnabled="; Lua Options::RumbleEnabled 00896f50 + bool _enableChargeBars; // Save 00924d10 "ChargeBars="; Lua Options::ChargeBars 00896f80 + bool _enableBulletVisibility; // Save 00924d10 "BulletVisibility="; Lua Options::BulletVisibility 00896fb0 + bool _enableAimLock; // Save 00924d10 "AimLock="; Load 00924440 + uint8_t _pad_0x56[0x2]; + int _touchMode; // Save 00924d10 "TouchMode="; Load 00924440 + bool _enableDebugConsole; // Save 00924d10 "EnableDebugConsole="; Lua Options::DebugConsoleEnabled 00897360 + uint8_t _pad_0x5d[0x3]; + int _consoleFont; // Save 00924d10 "ConsoleFont="; Load 00924440; Lua Options::ConsoleFont 008972a0 (REP 0x7c) + bool _enableFadedConsoleDisplay; // Save 00924d10 "FadedConsoleDisplay="; Lua Options::FadedConsoleDisplay 008972d0 (REP 0x80) + bool _enableSaveCommandHistory; // Save 00924d10 "SaveCommandHistory="; Lua Options::SaveCommandHistory 00897300 (REP 0x81) + bool _enableBorderlessFullscreen; // Save 00924d10 "UseExclusiveFullscreen=" (stored flag is exclusive); Lua Options::UseBorderlessFullscreen 00897330 returns !this[0x66] (REP 0x82) + bool _enableVSync; // Save 00924d10 "VSync="; Lua Options::VSync 00896fe0 (REP 0x5d) + bool _enableSteamCloud; // Save 00924d10 "SteamCloud="; Load 00924440 (REP 0x5e) + bool _enablePauseOnFocusLost; // Save 00924d10 "PauseOnFocusLost="; Lua Options::PauseOnFocusLost 00897010 (REP 0x5f) + bool _enableMouseControl; // Save 00924d10 "MouseControl="; Lua Options::MouseControl 00897040 (REP 0x60) + uint8_t _pad_0x6b[0x1]; + int _maxScale; // Save 00924d10 "MaxScale="; Lua Options::MaxScale 008970d0 (REP 0x64) + int _maxRenderScale; // Save 00924d10 "MaxRenderScale="; Lua Options::MaxRenderScale 00897250 (REP 0x68) + int _windowWidth; // Save 00924d10 "WindowWidth="; Load 00924440 (REP 0x6c) + int _windowHeight; // Save 00924d10 "WindowHeight="; Load 00924440 (REP 0x70) + int _windowPosX; // Save 00924d10 "WindowPosX="; Load 00924440 (REP 0x74) + int _windowPosY; // Save 00924d10 "WindowPosY="; Load 00924440 (REP 0x78) + bool _enableInterpolation; // Manager::Update 00954cd0 skips every other frame when this is 0; EntityList::Update 004186c0 branches on it; sits between WindowPosY 0x80 and EpicOverlay 0x85 (REP 0x83) + bool _enableEpicOverlay; // new: Save 00924d10 "EnableEpicOverlay="; Load 00924440 + bool _enableColorCorrection; // FUN_00951730 creates "Color Correction Surface" only if set; Manager::Render 009555c0 renders color correction when set (REP 0x84) + bool _enableLighting; // init_room_render_surfaces 007ea630 creates "Light Overlay Surface" only if set (REP 0x85) + bool _enableShockwave; // init_room_render_surfaces 007ea630 creates "Shockwave Surface" only if set (REP 0x86) + bool _enableCaustics; // init_room_render_surfaces 007ea630 loads gfx/backdrop/caustics.png only if set (REP 0x87) + bool _enableFilter; // FUN_00951730 makes the HQ4X surface only if set; Manager::Render 009555c0 uses it with _filterEnabled 0x25 (REP 0x88) + bool _enablePixelation; // Game::Render 006fbc10 gates the pixelation effect (Game +0x1ba78 state 2/3) on it (REP 0x89) + bool _enableBloom; // Game::create_render_surfaces 006f37e0 creates "Bloom Surface" only if set (REP 0x8a) + bool _enableWaterSurface; // Room::render_water 00820fd0 needs Room _waterAmount>0 and this (REP 0x8b) + bool _getsSetToEnableWaterSurface; // init_room_render_surfaces 007ea630 creates "Water Overlay Surface" and "Heat Wave Surface" only if set (REP 0x8c) + bool _enableColorModifier; // Game::Render 006fbc10 and MenuManager::Render 0098a040 apply the color-modifier pass only if set (REP 0x8d) + bool _bossHpOnBottom; // Save 00924d10 "BossHpOnBottom="; Load 00924440 (REP 0x8e) + uint8_t _pad_0x91[0x3]; + int _announcerVoiceMode; // Save 00924d10 "AnnouncerVoiceMode="; Lua Options::AnnouncerVoiceMode 00897080 (REP 0x90) + int _jacobEsauControls; // Save 00924d10 "JacobEsauControls="; Lua Options::JacobEsauControls 00897390 (REP 0x94) + bool _ascentVoiceover; // Save 00924d10 "AscentVoiceOver="; Load 00924440 (REP 0x98) + uint8_t _pad_0x9d[0x3]; + int _onlineHud; // Save 00924d10 "OnlineHud="; Load 00924440 (REP 0x9c) + bool _streamerMode; // Save 00924d10 "StreamerMode="; Load 00924440 (REP 0xa0) + uint8_t _pad_0xa5[0x3]; + int _onlinePlayerVolume; // Save 00924d10 "OnlinePlayerVolume="; Load 00924440 (REP 0xa4) + int _onlinePlayerOpacity; // Save 00924d10 "OnlinePlayerOpacity="; Load 00924440 (REP 0xa8) + bool _onlineChatEnabled; // Save 00924d10 "OnlineChatEnabled="; Load 00924440 (REP 0xac) + bool _onlineFilterEnabled; // Save 00924d10 "OnlineChatFilterEnabled="; Load 00924440 (REP 0xad) + uint8_t _pad_0xb2[0x2]; + int _onlineColorSet; // Save 00924d10 "MultiplayerColorSet="; Load 00924440 (REP 0xb0) + int _onlineInputDelay; // Save 00924d10 "OnlineInputDelay="; Load 00924440 (REP 0xb4) + bool _itemInfoDisplayEnabled; // new: Save 00924d10 "ItemInfoDisplayEnabled="; Load 00924440 + uint8_t _pad_0xbd[0x3]; + int _eosCrossplay; // new: Save 00924d10 "EosCrossplay="; Load 00924440; compared ==2/3 in online code (Manager+0x2a3fc) + bool _acceptedPublicBeta_VERSION; // Save 00924d10 "AcceptedPublicBeta_%s="; Load 00924440; disclaimer popup code (Manager+0x2a400) sets it to 1 (REP 0xb8) + bool _acceptedDataCollectionDisclaimer; // Save 00924d10 "AcceptedDataCollectionDisclaimer="; Load 00924440; disclaimer code (Manager+0x2a401) sets it (REP 0xba) +}; +static_assert(offsetof(OptionsConfig, _optionsIniFilePath) == 0x0); +static_assert(offsetof(OptionsConfig, _musicVolume) == 0x18); +static_assert(offsetof(OptionsConfig, _sfxVolume) == 0x1c); +static_assert(offsetof(OptionsConfig, _mapOpacity) == 0x20); +static_assert(offsetof(OptionsConfig, _isFullscreen) == 0x24); +static_assert(offsetof(OptionsConfig, _filterEnabled) == 0x25); +static_assert(offsetof(OptionsConfig, _gamma) == 0x28); +static_assert(offsetof(OptionsConfig, _exposure) == 0x2c); +static_assert(offsetof(OptionsConfig, _brightness) == 0x30); +static_assert(offsetof(OptionsConfig, _contrast) == 0x34); +static_assert(offsetof(OptionsConfig, _controlHotplugEnabled) == 0x38); +static_assert(offsetof(OptionsConfig, _popupsMode) == 0x3c); +static_assert(offsetof(OptionsConfig, _enableFoundHUD) == 0x40); +static_assert(offsetof(OptionsConfig, _cameraStyle) == 0x44); +static_assert(offsetof(OptionsConfig, _historyHudMode) == 0x48); +static_assert(offsetof(OptionsConfig, _hudOffset) == 0x4c); +static_assert(offsetof(OptionsConfig, _tryImportSave) == 0x50); +static_assert(offsetof(OptionsConfig, _enableMods) == 0x51); +static_assert(offsetof(OptionsConfig, _enableRumble) == 0x52); +static_assert(offsetof(OptionsConfig, _enableChargeBars) == 0x53); +static_assert(offsetof(OptionsConfig, _enableBulletVisibility) == 0x54); +static_assert(offsetof(OptionsConfig, _enableAimLock) == 0x55); +static_assert(offsetof(OptionsConfig, _touchMode) == 0x58); +static_assert(offsetof(OptionsConfig, _enableDebugConsole) == 0x5c); +static_assert(offsetof(OptionsConfig, _consoleFont) == 0x60); +static_assert(offsetof(OptionsConfig, _enableFadedConsoleDisplay) == 0x64); +static_assert(offsetof(OptionsConfig, _enableSaveCommandHistory) == 0x65); +static_assert(offsetof(OptionsConfig, _enableBorderlessFullscreen) == 0x66); +static_assert(offsetof(OptionsConfig, _enableVSync) == 0x67); +static_assert(offsetof(OptionsConfig, _enableSteamCloud) == 0x68); +static_assert(offsetof(OptionsConfig, _enablePauseOnFocusLost) == 0x69); +static_assert(offsetof(OptionsConfig, _enableMouseControl) == 0x6a); +static_assert(offsetof(OptionsConfig, _maxScale) == 0x6c); +static_assert(offsetof(OptionsConfig, _maxRenderScale) == 0x70); +static_assert(offsetof(OptionsConfig, _windowWidth) == 0x74); +static_assert(offsetof(OptionsConfig, _windowHeight) == 0x78); +static_assert(offsetof(OptionsConfig, _windowPosX) == 0x7c); +static_assert(offsetof(OptionsConfig, _windowPosY) == 0x80); +static_assert(offsetof(OptionsConfig, _enableInterpolation) == 0x84); +static_assert(offsetof(OptionsConfig, _enableEpicOverlay) == 0x85); +static_assert(offsetof(OptionsConfig, _enableColorCorrection) == 0x86); +static_assert(offsetof(OptionsConfig, _enableLighting) == 0x87); +static_assert(offsetof(OptionsConfig, _enableShockwave) == 0x88); +static_assert(offsetof(OptionsConfig, _enableCaustics) == 0x89); +static_assert(offsetof(OptionsConfig, _enableFilter) == 0x8a); +static_assert(offsetof(OptionsConfig, _enablePixelation) == 0x8b); +static_assert(offsetof(OptionsConfig, _enableBloom) == 0x8c); +static_assert(offsetof(OptionsConfig, _enableWaterSurface) == 0x8d); +static_assert(offsetof(OptionsConfig, _getsSetToEnableWaterSurface) == 0x8e); +static_assert(offsetof(OptionsConfig, _enableColorModifier) == 0x8f); +static_assert(offsetof(OptionsConfig, _bossHpOnBottom) == 0x90); +static_assert(offsetof(OptionsConfig, _announcerVoiceMode) == 0x94); +static_assert(offsetof(OptionsConfig, _jacobEsauControls) == 0x98); +static_assert(offsetof(OptionsConfig, _ascentVoiceover) == 0x9c); +static_assert(offsetof(OptionsConfig, _onlineHud) == 0xa0); +static_assert(offsetof(OptionsConfig, _streamerMode) == 0xa4); +static_assert(offsetof(OptionsConfig, _onlinePlayerVolume) == 0xa8); +static_assert(offsetof(OptionsConfig, _onlinePlayerOpacity) == 0xac); +static_assert(offsetof(OptionsConfig, _onlineChatEnabled) == 0xb0); +static_assert(offsetof(OptionsConfig, _onlineFilterEnabled) == 0xb1); +static_assert(offsetof(OptionsConfig, _onlineColorSet) == 0xb4); +static_assert(offsetof(OptionsConfig, _onlineInputDelay) == 0xb8); +static_assert(offsetof(OptionsConfig, _itemInfoDisplayEnabled) == 0xbc); +static_assert(offsetof(OptionsConfig, _eosCrossplay) == 0xc0); +static_assert(offsetof(OptionsConfig, _acceptedPublicBeta_VERSION) == 0xc4); +static_assert(offsetof(OptionsConfig, _acceptedDataCollectionDisclaimer) == 0xc5); + +struct Manager { + uint8_t _pad_0x0[0x8]; + int _state; // 00954cd0 Manager::Update switch(this+8), saves prev to +0xc; 009595e0 IsGameplayInputActive tests ==2 (in game); ctor 00950610 zeroes it + uint8_t _pad_0xc[0x4]; + uint32_t _currentSaveSlot; // 00959e70 Manager::SetSaveSlot writes slot to [this+0x10] after PersistentGameData::Clear(this+0x14) + uint8_t _persistentGameData[0xf90]; // PersistentGameData; 00950610 ctor calls PersistentGameData ctor 00925f80 on this+0x14; 00959e70 SetSaveSlot Clear(this+0x14); TryUnlock/IncreaseEventCounter(g_Manager+0x14) x70 + uint8_t _gamestate[0x1fe2c]; // GameState; 00950610 ctor calls 009c73c0 on this+0xfa4; 00959130 Game::DeleteSaveState GameState::Delete(g_Manager+0xfa4); SetSaveSlot uses this+0xfa4 + uint8_t _cutsceneManager[0x858]; // Cutscene; 00950610 ctor: CutsceneEntry[27] (0x4c) at +0x20dd4 = Cutscene+4; 00952df0 load_configs Cutscene::load_xml(this+0x20dd0); 00954cd0 Manager::Update Cutscene::Show(this+0x20dd0) + uint8_t _nightmareScene[0x5f4]; // NightmareScene; 00950610 ctor ANM2s at +0x20/+0x134/+0x248/+0x4d4 of 0x21628 (= REPENTOGON NightmareScene layout); 00954cd0 Update NightmareScene::Show(this+0x21628); 009555c0 Render NightmareScene::Render(this+0x21628) + uint8_t _achievementOverlay[0x83a0]; // AchievementOverlay; 005cd810 trivial getter returns g_Manager+0x21c1c (GetAchievementOverlay); ctor 00950610: ANM2 at +0x20, vector of 0x34-byte entries at +0x134, zeroes +0x14/+0x1c (displayedachievement/status) + uint8_t _musicmanager[0x368]; // Music; 00428cd0 Lua MusicManager() returns g_Manager+0x29fbc; Music::Play/Fadein/PlayJingle(g_Manager+0x29fbc); ctor sets [+0x328]=1 (_enabled, = MusicManager::IsEnabled 0085e430) + uint8_t _sfxManager[0x18]; // SoundEffects; 00420af0 Lua SFXManager() returns g_Manager+0x2a324; = Music+0x368 (Music size) + OptionsConfig _optionsConfig; // 00417900 getter returns g_Manager+0x2a33c; OptionsConfig::Save(g_Manager+0x2a33c); Lua Options::MusicVolume 00896810 reads +0x2a354 (= _musicVolume +0x18) + uint8_t _pad_0x2a402[0x2]; + ItemConfig _itemConfig; // 0042ca00 Lua Isaac::GetItemConfig returns g_Manager+0x2a404; ctor calls 00724cb0 on this+0x2a404 + uint8_t _pad_0x2a444[0x22c]; + EntityConfig _entityConfig; // 00417910 getter returns g_Manager+0x2a670; 004186c0 EntityList::Update calls EntityConfig::GetEntity with ECX=g_Manager+0x2a670; players vector at +8 (0x2a678/0x2a67c, /0x148 stride, 44 uses) + uint8_t _pad_0x2a6a0[0x20]; + uint8_t _modManager[0x20260]; // ModManager; 0040d210 getter returns g_Manager+0x2a6c0; ModManager::TryRedirectPath(g_Manager+0x2a6c0) many; ctor: vector +0, memset(+0xc,0,0x20000) redirect table, +0x2025c modBanStatus + uint8_t _stringTable[0x29c]; // StringTable; 004253c0 getter returns g_Manager+0x4a920; string_table_translate(g_Manager+0x4a920,"#...") 118 uses; 00951920 load_fonts reads language at +0 + uint32_t _framecount; // 0086f090 Lua Isaac::GetFrameCount returns *(g_Manager+0x4abbc) + uint8_t _pad_0x4abc0[0x11]; + bool _isConsoleEnabled; // 00952410 Manager::Init copies options _enableDebugConsole (0x2a398) to +0x4abd1; Game::Start/StartDebug copy it into Game+0x269d0 + uint8_t _pad_0x4abd2[0x12]; + ANM2 _buttonsSprite; // 00952410 Manager::Init ANM2::Load(this+0x4abe4,"gfx/ui/Buttons.anm2") + ANM2 _platformIconsSprite; // 00952410 Manager::Init ANM2::Load(this+0x4acf8,"gfx/ui/PlatformIcons.anm2") (new, not in REPENTOGON) + uint8_t _pad_0x4ae0c[0x1c]; + Font _font1_TeamMeatEx10; // 00951920 load_fonts Font::Load(this+0x4ae28,"font/TeamMeatEx/TeamMeatEx10.fnt") + Font _font2_TeamMeatEx12; // 00951920 load_fonts loads TeamMeatEx12.fnt into this+0x4ae74 + Font _font3_TeamMeatEx16; // 00951920 load_fonts loads TeamMeatEx16.fnt into this+0x4aec0 + Font _font4_terminus; // 00952df0 load_configs loads "font/terminus.fnt" into this+0x4af0c + Font _font5_terminus8; // 00952df0 load_configs loads "font/terminus8.fnt" into this+0x4af58 + Font _font6_PFTempestaSevenCondensed; // 00952df0 load_configs loads "font/PFTempestaSevenCondensed.fnt" into this+0x4afa4 + Font _font7_Upheaval; // 00951920 load_fonts unload/load Upheaval into this+0x4aff0; ctor 9 Font ctors 00a1a640 at 0x4ae28 + n*0x4c + Font _font8_LuaMiniOutlined; // 00952df0 load_configs loads "font/LuaMiniOutlined.fnt" into this+0x4b03c + Font _font9_PFTempestaSevenCondensedAgain; // 00951920 load_fonts reloads PFTempestaSevenCondensed into this+0x4b088 (9th Font ctor) + uint8_t _pad_0x4b0d4[0x5c]; + bool _starting; // 00958aa0 StartNewGame sets 1; 009595e0 IsGameplayInputActive tests it with _networkPlay + bool _rerunAvailable; // 00958aa0 StartNewGame clears word at 0x4b131; 00959720 start dispatcher branches on it then clears it (rerun path) + bool _startingFromRerun; // 00958aa0 StartNewGame clears (word at 0x4b131); 00959720 start dispatcher tests and clears it + uint8_t _pad_0x4b133[0x9]; + Seeds _startSeeds; // 00950610 ctor Seeds::constructor(this+0x4b13c); 00959720 Seeds::construct_from_copy(local, this+0x4b13c) before starting the game + uint8_t _pad_0x4b198[0x4]; + bool _debugStart; // 00958aa0 StartNewGame clears; 00959720 dispatcher tests it to choose start args; Menu_Game::Update 00981140 clears + uint8_t _pad_0x4b19d[0x23]; + uint8_t _dailyChallenge[0xb4]; // DailyChallenge; 00958c40 DailyChallenge::Init(ECX=g_Manager+0x4b1c0); StartNewGame zeroes +0/+4/+8(byte)/+0xc = _id/_seed/_isPractice/_specialDailyId; ctor ChallengeParam ctor at +0x10 + bool _networkPlay; // 00958aa0 StartNewGame clears; 009595e0 IsGameplayInputActive: starting && networkPlay; 00959720 dispatcher tests it first + uint8_t _pad_0x4b275[0x33]; + ANM2 _cursorSprite; // 00952410 Manager::Init ANM2::Load(this+0x4b2a8,"gfx/ui/cursor.anm2") + uint8_t _pad_0x4b3bc[0x1c]; + uint8_t _netplayManager[0x4]; // NetplayManager; 00417920 getter returns this+0x4b3d8; 006d8e10 is_local_player_owned: ECX=g_Manager+0x4b3d8 -> NetplayManager::IsIdxLocalPlayer; ctor calls 00906260 on it (misnamed SaveSlotManager::constructor) +}; +static_assert(offsetof(Manager, _state) == 0x8); +static_assert(offsetof(Manager, _currentSaveSlot) == 0x10); +static_assert(offsetof(Manager, _persistentGameData) == 0x14); +static_assert(offsetof(Manager, _gamestate) == 0xfa4); +static_assert(offsetof(Manager, _cutsceneManager) == 0x20dd0); +static_assert(offsetof(Manager, _nightmareScene) == 0x21628); +static_assert(offsetof(Manager, _achievementOverlay) == 0x21c1c); +static_assert(offsetof(Manager, _musicmanager) == 0x29fbc); +static_assert(offsetof(Manager, _sfxManager) == 0x2a324); +static_assert(offsetof(Manager, _optionsConfig) == 0x2a33c); +static_assert(offsetof(Manager, _itemConfig) == 0x2a404); +static_assert(offsetof(Manager, _entityConfig) == 0x2a670); +static_assert(offsetof(Manager, _modManager) == 0x2a6c0); +static_assert(offsetof(Manager, _stringTable) == 0x4a920); +static_assert(offsetof(Manager, _framecount) == 0x4abbc); +static_assert(offsetof(Manager, _isConsoleEnabled) == 0x4abd1); +static_assert(offsetof(Manager, _buttonsSprite) == 0x4abe4); +static_assert(offsetof(Manager, _platformIconsSprite) == 0x4acf8); +static_assert(offsetof(Manager, _font1_TeamMeatEx10) == 0x4ae28); +static_assert(offsetof(Manager, _font2_TeamMeatEx12) == 0x4ae74); +static_assert(offsetof(Manager, _font3_TeamMeatEx16) == 0x4aec0); +static_assert(offsetof(Manager, _font4_terminus) == 0x4af0c); +static_assert(offsetof(Manager, _font5_terminus8) == 0x4af58); +static_assert(offsetof(Manager, _font6_PFTempestaSevenCondensed) == 0x4afa4); +static_assert(offsetof(Manager, _font7_Upheaval) == 0x4aff0); +static_assert(offsetof(Manager, _font8_LuaMiniOutlined) == 0x4b03c); +static_assert(offsetof(Manager, _font9_PFTempestaSevenCondensedAgain) == 0x4b088); +static_assert(offsetof(Manager, _starting) == 0x4b130); +static_assert(offsetof(Manager, _rerunAvailable) == 0x4b131); +static_assert(offsetof(Manager, _startingFromRerun) == 0x4b132); +static_assert(offsetof(Manager, _startSeeds) == 0x4b13c); +static_assert(offsetof(Manager, _debugStart) == 0x4b19c); +static_assert(offsetof(Manager, _dailyChallenge) == 0x4b1c0); +static_assert(offsetof(Manager, _networkPlay) == 0x4b274); +static_assert(offsetof(Manager, _cursorSprite) == 0x4b2a8); +static_assert(offsetof(Manager, _netplayManager) == 0x4b3d8); + +struct Menu_Character { + int Status; // Menu_Character::Reset 00948fc0 sets 0; Status==1 picks the seeds view position, handle_input 0094c580 tests *this==0 + uint8_t _pad_0x4[0x1]; + bool IsCharacterUnlocked; // Menu_Character::UpdateRotations 0094d500 sets it to IsCharacterAvailable(SelectedCharacterID); Reset sets 1 + bool IsInputPossible; // UpdateRotations 0094d500 clears it while the wheel turns and sets it when it settles; Reset sets 1 + uint8_t _pad_0x7[0x1]; + int Difficulty; // Reset 00948fc0 copies Manager+0xf20 (difficulty); Update 00949c20 switches on it + int CooldownWhenHoldDirection; // handle_input 0094c580 decrements it and reloads 10 on left/right; Reset sets 10 + int SelectedCharacterID; // Reset 00948fc0 sets 1; compared to 0x12 (entry count) and indexes g_MenuCharacterEntries[sel + menu*0x12] + uint8_t _pad_0x14[0x4]; + float _randomRotationVelocity; // UpdateRotations 0094d500 lerps it toward the random spin target; Reset sets 0 + uint8_t _pad_0x1c[0x4]; + int _randomRotationAmount; // UpdateRotations 0094d500 uses (amount-60)/-60 as spin progress + float _characterWheelDepth; // written by Reset 00948fc0, read by UpdateRotations 0094d500 as (depth-1)*t+1 + float _scrollSpeed; // Reset sets 360/numChars/(x*50); UpdateRotations reads it + float _characterWheelWidth; // written by Reset 00948fc0, read by UpdateRotations 0094d500 + uint8_t _pad_0x30[0x8]; + float _PositionX; // ctor 00946e70 zeroes it right before _BigCharPageSprite 0x40 + float _PositionY; // ctor 00946e70 zeroes it right before _BigCharPageSprite 0x40 + ANM2 _BigCharPageSprite; // ctor 00946e70 ANM2::constructor at this+0x40 + ANM2 _DifficultyOverlaySprite; // ctor 00946e70 ANM2 at +0x154 + ANM2 _GreedDecoOverlaySprite; // ctor 00946e70 ANM2 at +0x268 + ANM2 _CharacterMenuBGSprite; // ctor 00946e70 ANM2 at +0x37c + uint8_t _completionWidget[0x11c]; // CompletionWidget; ctor 00946e70 builds a sub-object at +0x490 (its ANM2 at +0x494) + ANM2 _DifficultyPageSprite; // ctor 00946e70 ANM2 at +0x5ac; Reset 00948fc0 plays "Unlocked"/"AB+" on it + ANM2 _SeedPageSprite; // ctor 00946e70 ANM2 at +0x6c0 + ANM2 _WinStreakPageSprite; // ctor 00946e70 ANM2 at +0x7d4 + ANM2 _EastereggPageSprite; // ctor 00946e70 ANM2 at +0x8e8 + uint8_t _pad_0x9fc[0x8]; + ANM2 _SeedUnlockPageSprite; // ctor 00946e70 ANM2 at +0xa04 + int _numCharacters; // Reset 00948fc0 counts available g_MenuCharacterEntries into it + int _numCharacters_MINUS_SelectedEntry; // Reset sets numCharacters-1; UpdateRotations 0094d500 angle = 360/n * this + ANM2 _CharacterPortraitsSprite; // ctor 00946e70 ANM2 at +0xb20 + float _horizontalScrollPosition; // Reset 00948fc0 = (n-1)*360/numCharacters; UpdateRotations eases it + uint8_t _pad_0xc38[0x18]; + ANM2 _SeedEntrySprite; // ctor 00946e70 ANM2 at +0xc50; Update checks Status==1 and its _loaded + uint8_t _pad_0xd64[0x50]; + int _characterMenuShown; // selects CharacterMenu/CharacterPortraits anm2 path pair [this*3] and entries [sel+this*0x12] (normal/tainted) + ANM2 _PageSwapWidgetSprite; // ctor 00946e70 ANM2 at +0xdb8 + ANM2 _TaintedMenuBGDecoSprite; // ctor 00946e70 ANM2 at +0xecc (size ends 0xfe8, SpecialSeeds follows at MenuManager+0x251c) +}; +static_assert(offsetof(Menu_Character, Status) == 0x0); +static_assert(offsetof(Menu_Character, IsCharacterUnlocked) == 0x5); +static_assert(offsetof(Menu_Character, IsInputPossible) == 0x6); +static_assert(offsetof(Menu_Character, Difficulty) == 0x8); +static_assert(offsetof(Menu_Character, CooldownWhenHoldDirection) == 0xc); +static_assert(offsetof(Menu_Character, SelectedCharacterID) == 0x10); +static_assert(offsetof(Menu_Character, _randomRotationVelocity) == 0x18); +static_assert(offsetof(Menu_Character, _randomRotationAmount) == 0x20); +static_assert(offsetof(Menu_Character, _characterWheelDepth) == 0x24); +static_assert(offsetof(Menu_Character, _scrollSpeed) == 0x28); +static_assert(offsetof(Menu_Character, _characterWheelWidth) == 0x2c); +static_assert(offsetof(Menu_Character, _PositionX) == 0x38); +static_assert(offsetof(Menu_Character, _PositionY) == 0x3c); +static_assert(offsetof(Menu_Character, _BigCharPageSprite) == 0x40); +static_assert(offsetof(Menu_Character, _DifficultyOverlaySprite) == 0x154); +static_assert(offsetof(Menu_Character, _GreedDecoOverlaySprite) == 0x268); +static_assert(offsetof(Menu_Character, _CharacterMenuBGSprite) == 0x37c); +static_assert(offsetof(Menu_Character, _completionWidget) == 0x490); +static_assert(offsetof(Menu_Character, _DifficultyPageSprite) == 0x5ac); +static_assert(offsetof(Menu_Character, _SeedPageSprite) == 0x6c0); +static_assert(offsetof(Menu_Character, _WinStreakPageSprite) == 0x7d4); +static_assert(offsetof(Menu_Character, _EastereggPageSprite) == 0x8e8); +static_assert(offsetof(Menu_Character, _SeedUnlockPageSprite) == 0xa04); +static_assert(offsetof(Menu_Character, _numCharacters) == 0xb18); +static_assert(offsetof(Menu_Character, _numCharacters_MINUS_SelectedEntry) == 0xb1c); +static_assert(offsetof(Menu_Character, _CharacterPortraitsSprite) == 0xb20); +static_assert(offsetof(Menu_Character, _horizontalScrollPosition) == 0xc34); +static_assert(offsetof(Menu_Character, _SeedEntrySprite) == 0xc50); +static_assert(offsetof(Menu_Character, _characterMenuShown) == 0xdb4); +static_assert(offsetof(Menu_Character, _PageSwapWidgetSprite) == 0xdb8); +static_assert(offsetof(Menu_Character, _TaintedMenuBGDecoSprite) == 0xecc); + +struct Menu_Stats { + int _countTotalAchievements; // Menu_Stats::Update 009ecbc0 zeroes it then counts unlocked achievements (0x282 loop) + int _countItemsInCollection; // Menu_Stats::Update 009ecbc0 counts touched collectibles (0x2dd loop over Manager+0xafc) + int _countDeaths; // Menu_Stats::Update 009ecbc0 copies Manager+0x2f8 (deaths stat) + int _countMomKills; // Menu_Stats::Update 009ecbc0 copies Manager+0x2d4 (mom kills stat) + int _statsMenuCurrentSelection; // FUN_009ede60 (stats-page update called by Update when the achievement screen is closed) reads/writes it 11x + float _PositionX; // Menu_Stats::Render 009ecdd0 adds it to the draw position; ctor (MenuManager::constructor 00986450) zeroes it + float _PositionY; // Menu_Stats::Render 009ecdd0 adds it to the draw position; ctor zeroes it + ANM2 _StatsMenuSprite; // MenuManager::constructor 00986450 ANM2 at Stats+0x1c; Update 009ecbc0 animates it + bool _isAchievementScreenVisible; // Menu_Stats::Update 009ecbc0 calls update_achievements when set, else FUN_009ede60 + uint8_t _pad_0x131[0x3]; + float _achievementScrollInPosition; // update_achievements 009ee2a0 sets 275.0 then slides it down by 2 to 240 + float _achievementScrollThruListPosition; // update_achievements 009ee2a0 advances it by 2*_scrollSpeed and resets it to 0 per step + int _selectedAchievmentId; // update_achievements 009ee2a0 steps it +-1 and wraps it at _maxAchievementID; indexes _achievementIDList + int _IconIDtoUseForAchievementID[642]; // update_achievements 009ee2a0 reads [this+i*4+0x140]; 642 entries now (achievementsSprite moved to 0xb48) + ANM2 _achievementsSprite; // MenuManager::constructor 00986450 ANM2 at Stats+0xb48; update_achievements uses it 16x (REP 0xb44) + ANM2 _achievementMiniSprite1; // MenuManager::constructor 00986450 eh_vector_constructor of 11 ANM2 at Stats+0xc5c (9 minis + 2 cursors) (REP 0xc58) + ANM2 _achievementMiniSprite2; // 2nd of the 11-ANM2 run at +0xc5c (ctor 00986450); FUN_009ede60 uses it + ANM2 _achievementMiniSprite3; // 3rd of the 11-ANM2 run at +0xc5c (ctor 00986450) + ANM2 _achievementMiniSprite4; // 4th of the 11-ANM2 run at +0xc5c (ctor 00986450) + ANM2 _achievementMiniSprite5; // 5th of the 11-ANM2 run (ctor 00986450); update_achievements 009ee2a0 uses +0x10ac + ANM2 _achievementMiniSprite6; // 6th of the 11-ANM2 run at +0xc5c (ctor 00986450) + ANM2 _achievementMiniSprite7; // 7th of the 11-ANM2 run at +0xc5c (ctor 00986450) + ANM2 _achievementMiniSprite8; // 8th of the 11-ANM2 run (ctor 00986450); FUN_009ede60 uses +0x13e8 + ANM2 _achievementMiniSprite9; // 9th of the 11-ANM2 run (ctor 00986450); FUN_009ede60 uses +0x14fc + ANM2 _cursorLeftSprite; // 10th of the 11-ANM2 run (ctor 00986450); Render 009ecdd0 uses +0x1640/+0x1660 inside it + ANM2 _cursorRightSprite; // 11th of the 11-ANM2 run (ctor 00986450); Render 009ecdd0 uses +0x1754/+0x1774 inside it + uint8_t _achievementOverlayEntries[0x8268]; // AchievementOverlay_Entry; ctor 00986450 eh_vector_constructor 0x282 x 0x34 at Stats+0x1838; Update 009ecbc0 tests [i*0x34+0x1838]==i (REP 0x1834[641]) + int _achievementIDList[642]; // update_achievements 009ee2a0 and load_achievements_xml 009ed780 index [this+i*4+0x9aa0] (REP 0x9a68[641]) + int _maxAchievementID; // load_achievements_xml 009ed780 fills it (13 refs); update_achievements wraps _selectedAchievmentId at it (REP 0xa46c) + int _holdInputTimer; // update_achievements 009ee2a0 counts held frames, accelerates past 0x3c/0xb4, resets to 0 (REP 0xa470) + float _scrollSpeed; // update_achievements 009ee2a0 computes it from the hold timer and adds 2x it to the list position (REP 0xa474) +}; +static_assert(offsetof(Menu_Stats, _countTotalAchievements) == 0x0); +static_assert(offsetof(Menu_Stats, _countItemsInCollection) == 0x4); +static_assert(offsetof(Menu_Stats, _countDeaths) == 0x8); +static_assert(offsetof(Menu_Stats, _countMomKills) == 0xc); +static_assert(offsetof(Menu_Stats, _statsMenuCurrentSelection) == 0x10); +static_assert(offsetof(Menu_Stats, _PositionX) == 0x14); +static_assert(offsetof(Menu_Stats, _PositionY) == 0x18); +static_assert(offsetof(Menu_Stats, _StatsMenuSprite) == 0x1c); +static_assert(offsetof(Menu_Stats, _isAchievementScreenVisible) == 0x130); +static_assert(offsetof(Menu_Stats, _achievementScrollInPosition) == 0x134); +static_assert(offsetof(Menu_Stats, _achievementScrollThruListPosition) == 0x138); +static_assert(offsetof(Menu_Stats, _selectedAchievmentId) == 0x13c); +static_assert(offsetof(Menu_Stats, _IconIDtoUseForAchievementID) == 0x140); +static_assert(offsetof(Menu_Stats, _achievementsSprite) == 0xb48); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite1) == 0xc5c); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite2) == 0xd70); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite3) == 0xe84); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite4) == 0xf98); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite5) == 0x10ac); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite6) == 0x11c0); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite7) == 0x12d4); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite8) == 0x13e8); +static_assert(offsetof(Menu_Stats, _achievementMiniSprite9) == 0x14fc); +static_assert(offsetof(Menu_Stats, _cursorLeftSprite) == 0x1610); +static_assert(offsetof(Menu_Stats, _cursorRightSprite) == 0x1724); +static_assert(offsetof(Menu_Stats, _achievementOverlayEntries) == 0x1838); +static_assert(offsetof(Menu_Stats, _achievementIDList) == 0x9aa0); +static_assert(offsetof(Menu_Stats, _maxAchievementID) == 0xa4a8); +static_assert(offsetof(Menu_Stats, _holdInputTimer) == 0xa4ac); +static_assert(offsetof(Menu_Stats, _scrollSpeed) == 0xa4b0); + +struct MenuManager { + uint8_t _menuStateHistory[0xc]; // std_vector_uint; new: FUN_0098ae20 (menu state push) appends the new menu id to the vector at +0/+4/+8 (begin/end/cap) before calling SetState FUN_0098aa30; ctor 00986450 zeroes all three + bool _state; // REP int, only a byte here: SetState FUN_0098aa30 sets it to 1 on a menu change; MenuManager::Update 009897d0 eases _ViewPosition toward _viewPositionSet[_selectedMenuID] while set and clears it on arrival + bool _fadeOutActive; // new: MenuManager::Update 009897d0 adds 0.025 to _fadeOutProgress each frame while set; Render 0098a040 draws the fade when set + uint8_t _pad_0xe[0x2]; + float _fadeOutProgress; // MenuManager::Update 009897d0 += 0.025 while 0xd is set; Render 0098a040 uses it as the fade alpha + bool _fadeInActive; // REP int, only a byte here: Update 009897d0 subtracts 0.025 from _fadeInProgress while set; Render 0098a040 clears it once progress <= 0; FUN_00959d00 sets it after copying the fade color + uint8_t _pad_0x15[0x3]; + float _fadeInProgress; // Update 009897d0 -= 0.025 while _fadeInActive; Render 0098a040 uses it as alpha and zeroes it at <= 0 + KColor _fadeInColor; // ctor 00986450 KColor::SetFromARGB(0xff000000) on this+0x1c; FUN_00959d00 copies a color into +0x1c..+0x2c; Render 0098a040 draws the fade-in with it + uint8_t _pad_0x2c[0x8]; + float _vingnetteIntensity; // Render 0098a040 eases it by 0.025 toward 0.5 when Menu_Character.Difficulty (+0x153c) is 1 or 3, else 0, and draws an overlay with that alpha + uint8_t _pad_0x38[0x8]; + int _selectedMenuID; // SetState FUN_0098aa30 writes the new menu id here; Update 009897d0 and Render 0098a040 switch on it; ctor zeroes it + Vector _ViewPosition; // Update 009897d0 eases +0x44/+0x48 toward _viewPositionSet[_selectedMenuID]; Render 0098a040 adds it to sprite positions + ANM2 _MenuShadowSprite; // ctor 00986450 ANM2::constructor on this+0x4c + uint8_t _pad_0x160[0x18]; + Seeds _seedsObject; // ctor 00986450 Seeds::constructor 009e9290 on this+0x178 + uint8_t _menuTitle[0x120]; // Menu_Title; ctor 00986450 ESI=this+0x1d4: PositionX/Y +0/+4 zeroed, TitleScreenSprite ANM2 at +8 (as REP); its size is 0x120 now (word at +0x11c) + uint8_t _menuSave[0x89c]; // Menu_Save; ctor 00986450 ESI=this+0x2f4: +0x10/+0x14 zeroed, ANM2 at +0x18, 3 ANM2 at +0x12c, ANM2 +0x470, +0x584 = REP's inner layout; REP 0x2f8 (-4) + uint8_t _menuGame[0x244]; // Menu_Game; ctor 00986450 ESI=this+0xb90: +8/+0xc zeroed, ANM2 at +0x10 and +0x124 (as REP); size is 0x244 now (+0x240 = -1) + uint8_t _menuDailyChallenge[0x760]; // Menu_DailyChallenge; ctor 00986450 EDI=this+0xdd4: +0..+0x10 zeroed, ANM2 +0x14, popup at +0x13c, prompt at +0x270, Leaderboard ctor FUN_00856f70 at +0x3a4 (REP 0xdd0, +4) + Menu_Character _menuCharacter; // ctor 00986450 calls the Menu_Character ctor FUN_00946e70 with this+0x1534; Render 0098a040 reads +0x153c as Menu_Character.Difficulty (REP 0x1530, +4) + uint8_t _pad_0x2514[0x8]; + uint8_t _menuSpecialSeeds[0x16c]; // Menu_SpecialSeeds; ctor 00986450 ESI=this+0x251c, SpecialSeedsSprite ANM2 at +0x1c (REP 0x2518, +4) + uint8_t _menuChallenge[0x130]; // Menu_Challenge; ctor 00986450 ESI=this+0x2688: +0xc/+0x10 zeroed, ANM2 at +0x14, +0x128/+0x12c (REP 0x2684, +4) + uint8_t _menuCollection[0x260]; // Menu_Collection; ctor 00986450 ESI=this+0x27b8: ANM2 at +0x14 and +0x128, +0x240..+0x258 zeroed (REP 0x27b4, +4) + Menu_Stats _menuStats; // ctor 00986450 ESI=this+0x2a18: ANM2 +0x1c, +0xb48, 11 ANM2 at +0xc5c, 0x282 x 0x34 entries at +0x1838; Render 0098a040 case 9 reads +0x2b48 (Stats+0x130) (REP 0x2a14, +4) + uint8_t _menuOptions[0x288]; // Menu_Options; ctor 00986450 calls FUN_009b1fc0 (Options ctor: ANM2 at +0x24, +0x138 as REP) with this+0xcecc (REP 0xce8c, +0x40) + uint8_t _menuControllerSelect[0x130]; // Menu_ControllerSelect; ctor 00986450 ESI=this+0xd154: +8/+0xc zeroed, ANM2 at +0x10, +0x124..+0x12c (REP 0xd114, +0x40) + uint8_t _menuKeyConfig[0x128]; // Menu_KeyConfig; ctor 00986450 ECX=this+0xd284: +0xc/+0x10 zeroed, ANM2 at +0x14; SetState FUN_0098aa30 resets +0xd288/+0xd28c when entering state 0xc (REP 0xd244, +0x40) + uint8_t _menuCutscenes[0x124]; // Menu_Cutscenes; ctor 00986450 ECX=this+0xd3ac: +8/+0xc zeroed, ANM2 at +0x10 (REP 0xd36c, +0x40) + uint8_t _menuBestiary[0x378]; // Menu_Bestiary; ctor 00986450 ESI=this+0xd4d0: PositionX/Y +0/+4, ANM2 at +8, +0x11c, +0x230, +0x350..+0x364 zeroed (REP 0xd490, +0x40) + uint8_t _menuCustomChallenge[0x124]; // Menu_CustomChallenge; MenuManager::Update 009897d0 calls Menu_CustomChallenge::Update(this+0xd848); ctor ANM2 at +0xd858 (REP 0xd808, +0x40) + uint8_t _menuMods[0x1d98]; // Menu_Mods; ctor 00986450 ESI=this+0xd96c: +8/+0xc zeroed, ANM2 at +0x10, +0x128 (REP 0xd92c, +0x40) + Vector _viewPositionSet[23]; // ctor 00986450 zeroes 23 Vectors from +0xf704 (ends at the 0xf7bc bool); Update 009897d0 reads +0xf704/+0xf708 + id*8; SetState writes [12].x (+0xf768) for state 0xc (REP 0xf70c, -8) + bool _shouldLerpColorModState; // MenuManager::Update 009897d0 lerps while set and clears it once the lerp equals the target; ctor 00986450 sets it to 0 (REP 0xf7c4, -8) + uint8_t _pad_0xf7bd[0x3]; + uint8_t _currentColorModState[0x18]; // ColorModState; Render 0098a040 sends +0xf7c0..c8 as tint and +0xf7cc/+0xf7d0/+0xf7d4 as the "Amount"/"Brightness"/"Contrast" uniforms; ctor sets (1,1,1,0,0,1) (REP 0xf7c8, -8) + uint8_t _targetColorModState[0x18]; // ColorModState; Update 009897d0 FUN_006ef410(this+0xf7d8, this+0xf7f0) and compares the result with +0xf7d8..+0xf7ec; ctor (1,1,1,0,0,1) (REP 0xf7e0, -8) + uint8_t _lerpColorModState[0x18]; // ColorModState; second ColorModState arg of the lerp in Update 009897d0; ctor (1,1,1,0,0,1) at +0xf7f0..+0xf804 (REP 0xf7f8, -8) + float _scrollinterpolationX; // -8 like its neighbours; Update 009897d0 sets it to viewPositionSet[1].x + 364 + dist^2*0.004 and Render 0098a040 draws the fly sprite at _ViewPosition + (this, +0xf80c), so it is really the fly's offset (REP 0xf810) + float _scrollinterpolationY; // Update 009897d0 sets viewPositionSet[1].y + 176 + dist*0.004; Render 0098a040 fly sprite y offset (REP 0xf814) + uint8_t _pad_0xf810[0x8]; + ANM2 _flySprite; // ctor 00986450 ANM2 at this+0xf818 (via ECX=+0xf808,+0x10); Update 009897d0 bobs its layers 0/1 with sin(frame%80); Render 0098a040 draws it (REP 0xf820, -8) +}; +static_assert(offsetof(MenuManager, _menuStateHistory) == 0x0); +static_assert(offsetof(MenuManager, _state) == 0xc); +static_assert(offsetof(MenuManager, _fadeOutActive) == 0xd); +static_assert(offsetof(MenuManager, _fadeOutProgress) == 0x10); +static_assert(offsetof(MenuManager, _fadeInActive) == 0x14); +static_assert(offsetof(MenuManager, _fadeInProgress) == 0x18); +static_assert(offsetof(MenuManager, _fadeInColor) == 0x1c); +static_assert(offsetof(MenuManager, _vingnetteIntensity) == 0x34); +static_assert(offsetof(MenuManager, _selectedMenuID) == 0x40); +static_assert(offsetof(MenuManager, _ViewPosition) == 0x44); +static_assert(offsetof(MenuManager, _MenuShadowSprite) == 0x4c); +static_assert(offsetof(MenuManager, _seedsObject) == 0x178); +static_assert(offsetof(MenuManager, _menuTitle) == 0x1d4); +static_assert(offsetof(MenuManager, _menuSave) == 0x2f4); +static_assert(offsetof(MenuManager, _menuGame) == 0xb90); +static_assert(offsetof(MenuManager, _menuDailyChallenge) == 0xdd4); +static_assert(offsetof(MenuManager, _menuCharacter) == 0x1534); +static_assert(offsetof(MenuManager, _menuSpecialSeeds) == 0x251c); +static_assert(offsetof(MenuManager, _menuChallenge) == 0x2688); +static_assert(offsetof(MenuManager, _menuCollection) == 0x27b8); +static_assert(offsetof(MenuManager, _menuStats) == 0x2a18); +static_assert(offsetof(MenuManager, _menuOptions) == 0xcecc); +static_assert(offsetof(MenuManager, _menuControllerSelect) == 0xd154); +static_assert(offsetof(MenuManager, _menuKeyConfig) == 0xd284); +static_assert(offsetof(MenuManager, _menuCutscenes) == 0xd3ac); +static_assert(offsetof(MenuManager, _menuBestiary) == 0xd4d0); +static_assert(offsetof(MenuManager, _menuCustomChallenge) == 0xd848); +static_assert(offsetof(MenuManager, _menuMods) == 0xd96c); +static_assert(offsetof(MenuManager, _viewPositionSet) == 0xf704); +static_assert(offsetof(MenuManager, _shouldLerpColorModState) == 0xf7bc); +static_assert(offsetof(MenuManager, _currentColorModState) == 0xf7c0); +static_assert(offsetof(MenuManager, _targetColorModState) == 0xf7d8); +static_assert(offsetof(MenuManager, _lerpColorModState) == 0xf7f0); +static_assert(offsetof(MenuManager, _scrollinterpolationX) == 0xf808); +static_assert(offsetof(MenuManager, _scrollinterpolationY) == 0xf80c); +static_assert(offsetof(MenuManager, _flySprite) == 0xf818); + +struct MusicManager { + uint8_t _pad_0x0[0x30c]; + int _currentMusicID; + uint8_t _pad_0x310[0x18]; + bool _isEnabled; +}; +static_assert(offsetof(MusicManager, _currentMusicID) == 0x30c); +static_assert(offsetof(MusicManager, _isEnabled) == 0x328); + +struct PathFinder { + uint8_t _pad_0x0[0x72c]; + bool _hasDirectPath; + uint8_t _pad_0x72d[0xf]; + int _evadeMovementCountdown; +}; +static_assert(offsetof(PathFinder, _hasDirectPath) == 0x72c); +static_assert(offsetof(PathFinder, _evadeMovementCountdown) == 0x73c); + +struct PlayerHUD { + uint32_t _player; // Entity_Player* // HUD::FlashChargeBar 009a2bc0 / InvalidateActiveItem 009a2c00 match *(PlayerHUD+0)==player, stride 0x6dc + uint32_t _HUD; // HUD* // HUD reset FUN_009a19a0 writes PlayerHUD[i]+4 = HUD this + short _playerHudIndex; // HUD reset FUN_009a19a0 writes (short)i to PlayerHUD[i]+8 + uint8_t _pad_0xa[0x2]; + int8_t _redHeartFlashCountdown; // PlayerHUD::UpdateHearts 00841e20 flashes RedHeartFull/CoinHeart/RottenHeart when >0; PlayerHUD::Update 00842230 decrements + int8_t _soulHeartFlashCountdown; // PlayerHUD::UpdateHearts 00841e20 flashes BlueHeart* when >0; PlayerHUD::Update 00842230 decrements + int8_t _goldHeartFlashCountdown; // PlayerHUD::RenderHearts 00843df0 tests it with heart gold flag; PlayerHUD::Update 00842230 decrements; reset 00841cf0 zeroes + uint8_t _pad_0xf[0x181]; + uint8_t _activeItem[0x4]; // PlayerHUDActiveItem; HUD::InvalidateActiveItem 009a2c00 zeroes PlayerHUD+0x190+i*0x1c; FlashChargeBar 009a2bc0 writes +0x1a8+i*0x1c = 8 (same as REPENTOGON) +}; +static_assert(offsetof(PlayerHUD, _player) == 0x0); +static_assert(offsetof(PlayerHUD, _HUD) == 0x4); +static_assert(offsetof(PlayerHUD, _playerHudIndex) == 0x8); +static_assert(offsetof(PlayerHUD, _redHeartFlashCountdown) == 0xc); +static_assert(offsetof(PlayerHUD, _soulHeartFlashCountdown) == 0xd); +static_assert(offsetof(PlayerHUD, _goldHeartFlashCountdown) == 0xe); +static_assert(offsetof(PlayerHUD, _activeItem) == 0x190); + +struct ProjectileParams { + bool GridCollision; + uint8_t _pad_0x1[0x3]; + float HeightModifier; + float FallingSpeedModifier; + float FallingAccelModifier; + float VelocityMulti; + float Scale; + float CircleAngle; + float HomingStrength; + float CurvingStrength; + float Acceleration; + float Spread; + uint8_t Color[0x2c]; // ColorMod + uint64_t BulletFlags; + Vector PositionOffset; + Vector TargetPosition; + Vector FireDirectionLimit; + float DotProductLimit; + int32_t WiggleFrameOffset; + uint64_t ChangeFlags; + float ChangeVelocity; + uint32_t ChangeTimeout; + float DepthOffset; + uint32_t Variant; +}; +static_assert(offsetof(ProjectileParams, GridCollision) == 0x0); +static_assert(offsetof(ProjectileParams, HeightModifier) == 0x4); +static_assert(offsetof(ProjectileParams, FallingSpeedModifier) == 0x8); +static_assert(offsetof(ProjectileParams, FallingAccelModifier) == 0xc); +static_assert(offsetof(ProjectileParams, VelocityMulti) == 0x10); +static_assert(offsetof(ProjectileParams, Scale) == 0x14); +static_assert(offsetof(ProjectileParams, CircleAngle) == 0x18); +static_assert(offsetof(ProjectileParams, HomingStrength) == 0x1c); +static_assert(offsetof(ProjectileParams, CurvingStrength) == 0x20); +static_assert(offsetof(ProjectileParams, Acceleration) == 0x24); +static_assert(offsetof(ProjectileParams, Spread) == 0x28); +static_assert(offsetof(ProjectileParams, Color) == 0x2c); +static_assert(offsetof(ProjectileParams, BulletFlags) == 0x58); +static_assert(offsetof(ProjectileParams, PositionOffset) == 0x60); +static_assert(offsetof(ProjectileParams, TargetPosition) == 0x68); +static_assert(offsetof(ProjectileParams, FireDirectionLimit) == 0x70); +static_assert(offsetof(ProjectileParams, DotProductLimit) == 0x78); +static_assert(offsetof(ProjectileParams, WiggleFrameOffset) == 0x7c); +static_assert(offsetof(ProjectileParams, ChangeFlags) == 0x80); +static_assert(offsetof(ProjectileParams, ChangeVelocity) == 0x88); +static_assert(offsetof(ProjectileParams, ChangeTimeout) == 0x8c); +static_assert(offsetof(ProjectileParams, DepthOffset) == 0x90); +static_assert(offsetof(ProjectileParams, Variant) == 0x94); + +struct QueueItemData { + uint32_t _item; // ItemConfig_Item* + int _charge; +}; +static_assert(offsetof(QueueItemData, _item) == 0x0); +static_assert(offsetof(QueueItemData, _charge) == 0x4); + +struct Room { + uint8_t _pad_0x0[0x4]; + uint32_t _descriptor; // RoomDescriptor* // Room::GetDecorationSeed 004aae80 returns (this+4)->+0x58 (DecorationSeed); GetRoomShape 0042a270 reads (this+4)->Data->+0x48 + uint32_t _roomType; // Lua Room:GetType bound to folded getter 0043eec0 (return this+8); GetLightingAlpha 0081e250 compares it to 8/0x1d; UpdateGreedWave 00801ee0 ==5 (boss) + uint32_t _gridWidth; // Lua Room:GetGridWidth bound to folded getter 004176f0 (return this+0xc); Backdrop::Init 0093d960 uses room+0xc/+0x10 as width/height + uint32_t _gridHeight; + Vector _topLeftPos; + Vector _bottomRightPos; + uint8_t _pad_0x24[0x740]; + int _tintedRockIdx; + int _dungeonRockIdx; + uint8_t _pad_0x76c[0xa80]; + int _roomClearDelay; + uint8_t _pad_0x11f0[0x8]; + uint32_t _Camera; // Camera* + Vector _renderSurfaceTopLeft; + Vector _renderScrollOffset; + bool _redHeartDamage; + uint8_t _pad_0x120d[0xb]; + uint8_t _entityList[0xa4]; // EntityList + int _renderMode; + uint8_t _pad_0x12c0[0x358]; + uint8_t _fxLayers[0x598]; // FXLayers + uint32_t _bossId; + int _secondBossID; + uint8_t _pad_0x1bb8[0x10]; + uint8_t _backdrop[0x150]; // Backdrop; Room::LoadBackdropGraphics 007f1380 calls Backdrop::Init(room+0x1bc8); Backdrop::Init writes backdropId at +0x150 = room+0x1d18 (Lua GetBackdropType 004cdd20) + int _backdropType; + uint8_t _pad_0x1d1c[0x534c]; + int _shopLevel; + uint8_t _pad_0x706c[0x4]; + uint8_t _shopItemDeque[0x1b9]; // deque_ShopRestockDesc; Room::constructor 007e9400 builds a std::deque (proxy new(8), 5 dwords 0x7070..0x7080); Room::TriggerRestock 00815800 / ShopRestockPartial 008158a0 use 0x7074..0x7080 + bool _hasTriggerPressurePlates; + uint8_t _pad_0x722a[0x2]; + int _slowdownDuration; // Lua Room:HasSlowDown 00456710 (0 < this+0x722c) / SetSlowDown 00456720 (max); Room::Update 00802980 decrements it; REPENTOGON 0x7220 is wrong/shifted +0xc + uint8_t _pad_0x7230[0xc]; + int _greedWaveTimer; // Room::UpdateGreedWave 00801ee0: greed only, decrements, clamps to 0x13, calls SpawnGreedModeWave at 0 + float _waterAmount; // Room::HasWater 008208c0 and render_water_shader 00821950 read it; rain init 00824350 requires >0 + KColor _waterColor; // ctor 007e9400 KColor::SetFromARGB(-1) at 0x7244; render_water_shader 00821950 lerps 0x7244 -> 0x726c + uint8_t _pad_0x7254[0x4]; + KColor _waterColorMultiplier; // ctor 007e9400 KColor at 0x7258; render_water_shader 00821950 lerps 0x7258 -> 0x7280 + uint8_t _pad_0x7268[0x4]; + KColor _waterLerpTargetColor; // ctor 007e9400 KColor at 0x726c; lerp target of 0x7244 in render_water_shader 00821950 + uint8_t _pad_0x727c[0x4]; + KColor _waterLerpTargetColorMult; // ctor 007e9400 KColor at 0x7280; lerp target of 0x7258 in render_water_shader 00821950 + uint8_t _pad_0x7290[0x4]; + int _waterLerpColorDuration; // render_water_shader 00821950: t = 1 - countdown(0x7298)/duration(0x7294) + int _waterLerpColorCountdown; // render_water_shader 00821950: t = 1 - countdown(0x7298)/duration(0x7294) + uint8_t _pad_0x729c[0x4]; + bool _isFirstEnemyDead; + bool _pacifist; // Entity_NPC::TakeDamage 006d60a0 clears it on player/familiar-source damage; Entity_Familiar::PickEnemyTarget 00615030 / HandleCollision 006261f0 hold off while set; reset 00821940 + uint8_t _pad_0x72a2[0x2]; + uint8_t _floorColor[0x2c]; // ColorMod; Lua Room:SetFloorColor 007e91b0 copies 0x2c bytes to 0x72a4; ctor 007e9400 inits it + uint8_t _wallColor[0x40]; // ColorMod; Lua Room:SetWallColor 007e91f0 copies 0x2c bytes to 0x72d0; ctor 007e9400 inits it + TemporaryEffects _temporaryEffects; // ctor 007e9400 inits 0x7310..0x7324 in TemporaryEffects layout (vector +4, 2 bools +0x10, player +0x14); getter 004360d0 returns this+0x7310, its callers then call TemporaryEffects::AddCollectibleEffect + uint8_t _pad_0x7328[0x12c]; + int _numRainSpawners; // rain init 00824350 zeroes it, then fills spawner array 0x73f4 (stride 0x18) and increments it; Room::update_ambient_sounds 00800500 reads it + float _rainIntensity; // rain init 00824350 sets 1.0; Room::update_ambient_sounds 00800500 reads it + bool _isRainStopped; // Lua Room:StopRain 005784d0 sets 1; rain init 00824350 clears it; Room::update_ambient_spawns 00824800 / NpcAI::ENTITY_RAINMAKER 00578a70 read it (REPENTOGON lacks this) + uint8_t _pad_0x745d[0x3]; + Vector _waterCurrent; // Lua Room:GetWaterCurrent 00505c50 returns this+0x7460/0x7464; Room::Init 007f2800 sets it from table 0xc5d0e8 + uint8_t _railManager[0x2d8]; // RailManager; ctor 007e9400 writes this to +0x7468 (RailManager._room) and builds its ANM2; Room::Render passes ECX=room+0x7468 to RailManager::Render 009e2f20; rail byte grid at +0x746c + float _lavaIntensity; // Lua Room:GetLavaIntensity 007120c0 returns this+0x7740 + uint8_t _pad_0x7744[0x150]; + bool _isPickupVisionInvalid; // Lua Room:InvalidatePickupVision 005b16c0 sets this+0x7894 = 1 (REPENTOGON lacks this) +}; +static_assert(offsetof(Room, _descriptor) == 0x4); +static_assert(offsetof(Room, _roomType) == 0x8); +static_assert(offsetof(Room, _gridWidth) == 0xc); +static_assert(offsetof(Room, _gridHeight) == 0x10); +static_assert(offsetof(Room, _topLeftPos) == 0x14); +static_assert(offsetof(Room, _bottomRightPos) == 0x1c); +static_assert(offsetof(Room, _tintedRockIdx) == 0x764); +static_assert(offsetof(Room, _dungeonRockIdx) == 0x768); +static_assert(offsetof(Room, _roomClearDelay) == 0x11ec); +static_assert(offsetof(Room, _Camera) == 0x11f8); +static_assert(offsetof(Room, _renderSurfaceTopLeft) == 0x11fc); +static_assert(offsetof(Room, _renderScrollOffset) == 0x1204); +static_assert(offsetof(Room, _redHeartDamage) == 0x120c); +static_assert(offsetof(Room, _entityList) == 0x1218); +static_assert(offsetof(Room, _renderMode) == 0x12bc); +static_assert(offsetof(Room, _fxLayers) == 0x1618); +static_assert(offsetof(Room, _bossId) == 0x1bb0); +static_assert(offsetof(Room, _secondBossID) == 0x1bb4); +static_assert(offsetof(Room, _backdrop) == 0x1bc8); +static_assert(offsetof(Room, _backdropType) == 0x1d18); +static_assert(offsetof(Room, _shopLevel) == 0x7068); +static_assert(offsetof(Room, _shopItemDeque) == 0x7070); +static_assert(offsetof(Room, _hasTriggerPressurePlates) == 0x7229); +static_assert(offsetof(Room, _slowdownDuration) == 0x722c); +static_assert(offsetof(Room, _greedWaveTimer) == 0x723c); +static_assert(offsetof(Room, _waterAmount) == 0x7240); +static_assert(offsetof(Room, _waterColor) == 0x7244); +static_assert(offsetof(Room, _waterColorMultiplier) == 0x7258); +static_assert(offsetof(Room, _waterLerpTargetColor) == 0x726c); +static_assert(offsetof(Room, _waterLerpTargetColorMult) == 0x7280); +static_assert(offsetof(Room, _waterLerpColorDuration) == 0x7294); +static_assert(offsetof(Room, _waterLerpColorCountdown) == 0x7298); +static_assert(offsetof(Room, _isFirstEnemyDead) == 0x72a0); +static_assert(offsetof(Room, _pacifist) == 0x72a1); +static_assert(offsetof(Room, _floorColor) == 0x72a4); +static_assert(offsetof(Room, _wallColor) == 0x72d0); +static_assert(offsetof(Room, _temporaryEffects) == 0x7310); +static_assert(offsetof(Room, _numRainSpawners) == 0x7454); +static_assert(offsetof(Room, _rainIntensity) == 0x7458); +static_assert(offsetof(Room, _isRainStopped) == 0x745c); +static_assert(offsetof(Room, _waterCurrent) == 0x7460); +static_assert(offsetof(Room, _railManager) == 0x7468); +static_assert(offsetof(Room, _lavaIntensity) == 0x7740); +static_assert(offsetof(Room, _isPickupVisionInvalid) == 0x7894); + +struct RoomDescriptor { + int32_t GridIndex; + int32_t SafeGridIndex; + int32_t ListIndex; + int32_t Dimension; + uint32_t Data; // RoomConfig_Room* + uint32_t OverrideData; // RoomConfig_Room* + int32_t AllowedDoors; + uint8_t _pad_0x1c[0x20]; + int32_t DisplayFlags; + int32_t VisitedCount; + int32_t Flags; + int16_t TotalMoneySpent; + int16_t ClearCount; + int32_t GreedSubType; + int16_t PoopCount; + int16_t TKeeperCoinSpawns; + int32_t PitsCount; + int32_t DecorationSeed; + int32_t SpawnSeed; + int32_t AwardSeed; + uint32_t BossDeathSeed; + uint8_t SavedGridEntities[0xc]; // vector_GridEntityDesc + uint8_t SavedEntities[0xc]; // vector_EntitySaveState + uint8_t RestrictedGridIndexes[0x8]; // std_set_int + uint8_t SavedEffects[0x24]; // vector_EntitySaveState + int16_t ShopItemIdx; + int16_t ShopItemDiscountIdx; + int32_t DeliriumDistance; + int32_t Group; // RoomDescriptor::constructor 006ef590 sets +0xb4 = -1; operator_assign 007387d0 copies it as last dword (stride 0xb8); Level::GetRandomRoomIndex 00740860 only picks rooms whose +0xb4 is -1 or equals the current room's +}; +static_assert(offsetof(RoomDescriptor, GridIndex) == 0x0); +static_assert(offsetof(RoomDescriptor, SafeGridIndex) == 0x4); +static_assert(offsetof(RoomDescriptor, ListIndex) == 0x8); +static_assert(offsetof(RoomDescriptor, Dimension) == 0xc); +static_assert(offsetof(RoomDescriptor, Data) == 0x10); +static_assert(offsetof(RoomDescriptor, OverrideData) == 0x14); +static_assert(offsetof(RoomDescriptor, AllowedDoors) == 0x18); +static_assert(offsetof(RoomDescriptor, DisplayFlags) == 0x3c); +static_assert(offsetof(RoomDescriptor, VisitedCount) == 0x40); +static_assert(offsetof(RoomDescriptor, Flags) == 0x44); +static_assert(offsetof(RoomDescriptor, TotalMoneySpent) == 0x48); +static_assert(offsetof(RoomDescriptor, ClearCount) == 0x4a); +static_assert(offsetof(RoomDescriptor, GreedSubType) == 0x4c); +static_assert(offsetof(RoomDescriptor, PoopCount) == 0x50); +static_assert(offsetof(RoomDescriptor, TKeeperCoinSpawns) == 0x52); +static_assert(offsetof(RoomDescriptor, PitsCount) == 0x54); +static_assert(offsetof(RoomDescriptor, DecorationSeed) == 0x58); +static_assert(offsetof(RoomDescriptor, SpawnSeed) == 0x5c); +static_assert(offsetof(RoomDescriptor, AwardSeed) == 0x60); +static_assert(offsetof(RoomDescriptor, BossDeathSeed) == 0x64); +static_assert(offsetof(RoomDescriptor, SavedGridEntities) == 0x68); +static_assert(offsetof(RoomDescriptor, SavedEntities) == 0x74); +static_assert(offsetof(RoomDescriptor, RestrictedGridIndexes) == 0x80); +static_assert(offsetof(RoomDescriptor, SavedEffects) == 0x88); +static_assert(offsetof(RoomDescriptor, ShopItemIdx) == 0xac); +static_assert(offsetof(RoomDescriptor, ShopItemDiscountIdx) == 0xae); +static_assert(offsetof(RoomDescriptor, DeliriumDistance) == 0xb0); +static_assert(offsetof(RoomDescriptor, Group) == 0xb4); + +struct TearParams { + int _tearVariant; + int _bombVariant; + uint8_t _tearColor[0x2c]; // ColorMod + int _unused; + uint8_t _flags[0x10]; // BitSet128 + float _tearDamage; + float _tearScale; + float _tearHeight; +}; +static_assert(offsetof(TearParams, _tearVariant) == 0x0); +static_assert(offsetof(TearParams, _bombVariant) == 0x4); +static_assert(offsetof(TearParams, _tearColor) == 0x8); +static_assert(offsetof(TearParams, _unused) == 0x34); +static_assert(offsetof(TearParams, _flags) == 0x38); +static_assert(offsetof(TearParams, _tearDamage) == 0x48); +static_assert(offsetof(TearParams, _tearScale) == 0x4c); +static_assert(offsetof(TearParams, _tearHeight) == 0x50); + +struct TemporaryEffect { + uint8_t _pad_0x0[0x4]; + int _count; + int _cooldown; +}; +static_assert(offsetof(TemporaryEffect, _count) == 0x4); +static_assert(offsetof(TemporaryEffect, _cooldown) == 0x8); +#pragma pack(pop) diff --git a/zhl_fields.tsv b/zhl_fields.tsv index 84677e4..f4ef9fa 100644 --- a/zhl_fields.tsv +++ b/zhl_fields.tsv @@ -1,33 +1,43 @@ -ANM2 0x0 std_string _filename -ANM2 0x18 std_string _animDefaultName -ANM2 0x30 AnimationState _animState -ANM2 0x50 AnimationState _overlayAnimState -ANM2 0x70 bool _overlayRenderFirst -ANM2 0x74 AnimationData* _animData -ANM2 0x78 int _animCount -ANM2 0x7c LayerState* _layerState -ANM2 0x80 unsigned int _layerCount -ANM2 0x84 std_string* _nullLayerNames -ANM2 0x88 unsigned int _numNullLayers -ANM2 0x8c std_string* _eventNames -ANM2 0x90 unsigned int _numEvents -ANM2 0x94 Vector _offset -ANM2 0x9c Vector _scale -ANM2 0xa4 float _rotation -ANM2 0xa8 ColorMod _color -ANM2 0xd4 ColorMod _championColor -ANM2 0x100 bool _flipX -ANM2 0x101 bool _flipY -ANM2 0x104 float _playbackSpeed -ANM2 0x109 bool _loaded -ANM2 0x110 unsigned int _bitflags -AchievementOverlay 0x14 uint32_t displayedachievement -AchievementOverlay 0x18 uint32_t frame -AchievementOverlay 0x1c uint32_t status -AchievementOverlay 0x20 ANM2 anm2 -AchievementOverlay_Entry 0x0 uint32_t id -AchievementOverlay_Entry 0x4 std_string name -AchievementOverlay_Entry 0x1c std_string gfx +Entity_Bomb base Entity +Entity_Effect base Entity +Entity_Familiar base Entity +Entity_Knife base Entity +Entity_Laser base Entity +Entity_NPC base Entity +Entity_Pickup base Entity +Entity_Player base Entity +Entity_Projectile base Entity +Entity_Slot base Entity +Entity_Tear base Entity +GridEntity_Decoration base GridEntity +GridEntity_Door base GridEntity +GridEntity_Fire base GridEntity +GridEntity_Gravity base GridEntity +GridEntity_Lock base GridEntity +GridEntity_Pit base GridEntity +GridEntity_Poop base GridEntity +GridEntity_PressurePlate base GridEntity +GridEntity_Rock base GridEntity +GridEntity_Spikes base GridEntity +GridEntity_Stairs base GridEntity +GridEntity_Statue base GridEntity +GridEntity_TNT base GridEntity +GridEntity_Teleporter base GridEntity +GridEntity_TrapDoor base GridEntity +GridEntity_Wall base GridEntity +GridEntity_Web base GridEntity +KAGE_Filesys_File base KAGE_Filesys_FileStream +KAGE_Filesys_FileStream base KAGE_Filesys_IFile +KAGE_Graphics_ImagePNG base KAGE_Graphics_ImageBase +KAGE_Graphics_ImagePIC base KAGE_Graphics_ImageBase +KAGE_Graphics_ImagePCX base KAGE_Graphics_ImageBase +KAGE_Graphics_Shader base KAGE_Graphics_ShaderBase +KAGE_ReferenceCount_ImageBase base KAGE_ReferenceCountBase +KAGE_ReferenceCount_EntitySaveState base KAGE_ReferenceCountBase +SourceQuad base DestinationQuad +SteamCloudFile base KAGE_Filesys_FileStream +Weapon_Brimstone base Weapon +Weapon_MonstrosLung base Weapon ActiveItemDesc 0x0 int _item ActiveItemDesc 0x4 int _unk ActiveItemDesc 0x8 int _charge @@ -36,211 +46,6 @@ ActiveItemDesc 0x10 int _subCharge ActiveItemDesc 0x14 int _timeRechargeCooldown ActiveItemDesc 0x18 int _partialCharge ActiveItemDesc 0x1c int _varData -AfterImageFrame 0x0 int _duration -AfterImageFrame 0x4 Vector _position -Ambush 0x18 int maxBossWaves -Ambush 0x1c int bossesPerWave -Ambush 0x20 bool active -Ambush 0x24 int currentWave -Ambush 0x3c RNG rng -AnimationData 0x0 std_string _name -AnimationData 0x18 AnimationLayer* _animLayers -AnimationData 0x1c int _layerCount -AnimationData 0x24 int _nullLayerCount -AnimationData 0x28 AnimationData_EventTrigger* _eventTriggers -AnimationData 0x2c uint32_t _eventTriggerCount -AnimationData 0x30 int _length -AnimationData 0x34 bool _loop -AnimationFrame 0x0 Vector crop -AnimationFrame 0x8 float width -AnimationFrame 0xc float height -AnimationFrame 0x10 Vector pos -AnimationFrame 0x18 Vector scale -AnimationFrame 0x20 Vector pivot -AnimationFrame 0x28 int duration -AnimationFrame 0x2c bool visible -AnimationFrame 0x30 ColorMod color -AnimationFrame 0x5c float rotation -AnimationFrame 0x60 bool interpolated -AnimationFrame 0x64 int startFrame -AnimationFrame 0x68 int endFrame -AnimationLayer 0x0 int _layerID -AnimationLayer 0x4 AnimationFrame* _animFrames -AnimationLayer 0x8 int _numFrames -AnimationLayer 0xc bool _visible -AnimationState 0x0 ANM2* _animation -AnimationState 0x4 AnimationData* _animData -AnimationState 0x8 int* _layerFrames -AnimationState 0xc int* _nullLayerFrames -AnimationState 0x10 float _animFrame -AnimationState 0x14 bool _isPlaying -AnimationState 0x18 int _currentlyTriggeredEvents -AnimationState 0x1c int _previouslyTriggeredEvents -Backdrop 0x0 KAGE_SmartPointer_ImageBase floorBuffer -Backdrop 0x8 KAGE_SmartPointer_ImageBase wallsBuffer -Backdrop 0x10 KAGE_SmartPointer_ImageBase floorSurface2 -Backdrop 0x18 KAGE_SmartPointer_ImageBase tempBackdropSurface -Backdrop 0x24 KAGE_SmartPointer_ImageBase gfx -Backdrop 0x2c KAGE_SmartPointer_ImageBase waterGfx -Backdrop 0x34 KAGE_SmartPointer_ImageBase nlfloorGfx -Backdrop 0x3c ANM2 floorANM2 -Backdrop 0x150 uint32_t backdropId -Backdrop 0x4f18 Vector unkVec1 -Backdrop 0x4f20 Vector unkVec2 -Backdrop 0x4f28 RNG rng -Backdrop 0x4f38 uint32_t seed -Backdrop 0x4f3c ANM2 _wallDetailANM2 -Backdrop 0x5050 ANM2 _controlsANM2 -Backdrop 0x5164 ANM2 _controlsButtonsANM2 -BackdropConfig 0x0 uint32_t backdropId -BackdropConfig 0x4 std_string gfx -BackdropConfig 0x1c std_string waterGfx -BackdropConfig 0x34 std_string lFloorGfx -BackdropConfig 0x4c std_string nFloorGfx -BackdropConfig 0x64 uint32_t walls -BackdropConfig 0x68 uint32_t wallVariants -BackdropConfig 0x6c uint32_t floors -BackdropConfig 0x70 uint32_t floorVariants -BackdropConfig 0x74 uint32_t unk1 -BackdropConfig 0x78 std_string props -BackdropConfig 0x90 std_string rocks -BackdropConfig 0xa8 std_string pit -BackdropConfig 0xc0 std_string waterPit -BackdropConfig 0xd8 std_string bridge -BackdropConfig 0xf0 std_string door -BackdropConfig 0x108 std_string holeInWall -BackdropConfig 0x120 std_string spikes -BackdropConfig 0x138 uint32_t waterPitsMode -BackwardsStageDesc 0x310 uint32_t _bossRoomsCount -BackwardsStageDesc 0x314 uint32_t _treasureRoomsCount -BackwardsStageDesc 0x318 uint32_t _stageType -BackwardsStageDesc 0x31c bool _isXL -BagOfCraftingOutput 0x0 int collectibleType -BagOfCraftingOutput 0x4 int itemPoolType -BeamRenderer 0x0 ANM2 _anm2 -BeamRenderer 0x118 unsigned int _layer -BeamRenderer 0x11c bool _useOverlayData -BeamRenderer 0x11d bool _unkBool -BeamRenderer 0x120 deque_Point _points -BitSet128 0x0 unsigned int ll -BitSet128 0x4 unsigned int lh -BitSet128 0x8 unsigned int hl -BitSet128 0xc unsigned int hh -BlendMode 0x0 unsigned int _equation -BlendMode 0x4 unsigned int _rgbSourceFactor -BlendMode 0x8 unsigned int _rgbDestFactor -BlendMode 0xc unsigned int _alphaSourceFactor -BlendMode 0x10 unsigned int _alphaDestFactor -BossPool 0x8ac vector_bool _removedBosses -BossPool 0x8bc vector_bool _levelBlacklist -BossPool_Entry 0x0 int _id -BossPool_Entry 0x4 float _initialWeight -BossPool_Entry 0x8 float _weight -BossPool_Entry 0xc int _achievementID -BossPool_Entry 0x10 int _roomVariantStart -BossPool_Pool 0x0 std_string _name -BossPool_Pool 0x18 vector_BossPoolEntry _entries -BossPool_Pool 0x24 float _totalWeight -BossPool_Pool 0x28 RNG _rng -BossPool_Pool 0x38 int _doubleTroubleRoomVariantStart -Camera 0x8c bool _shouldOverride -Capsule 0x0 Vector _position -Capsule 0x8 Vector _vec2 -Capsule 0x10 Vector _vec3 -Capsule 0x18 Vector _direction -Capsule 0x20 float _unkFloat1 -Capsule 0x24 float _unkFloat2 -ChallengeParam 0x0 std_string _name -ChallengeParam 0x18 std_set_int _roomset -ChallengeParam 0x20 std_vector_int _collectibleList -ChallengeParam 0x2c std_vector_int _trinketList -ChallengeParam 0x38 int _startingPill -ChallengeParam 0x3c int _startingCard -ChallengeParam 0x40 int _endStage -ChallengeParam 0x44 int _playerType -ChallengeParam 0x48 std_vector_int _achievementList -ChallengeParam 0x54 int _soulHearts -ChallengeParam 0x58 int _blackHearts -ChallengeParam 0x5c int _hearts -ChallengeParam 0x60 int _maxHearts -ChallengeParam 0x64 int _coins -ChallengeParam 0x68 float _addDamage -ChallengeParam 0x6c bool _canShoot -ChallengeParam 0x70 int _difficulty -ChallengeParam 0x74 bool _isMegaSatan -ChallengeParam 0x78 float _minFireRate -ChallengeParam 0x7c bool _maxDamage -ChallengeParam 0x7d bool _minShotSpeed -ChallengeParam 0x7e bool _bigRange -ChallengeParam 0x80 int _pathType -ChallengeParam 0x84 unsigned int _getCurse -ChallengeParam 0x88 unsigned int _curseFilter -ChallengeParam 0x8c std_vector_int _collectibleTwinList -ColorModState 0x0 float r -ColorModState 0x4 float g -ColorModState 0x8 float b -ColorModState 0xc float a -ColorModState 0x10 float brightness -ColorModState 0x14 float contrast -ColorParams 0x0 int _priority -ColorParams 0x4 ColorMod _color -ColorParams 0x30 int _duration1 -ColorParams 0x34 int _duration2 -ColorParams 0x38 bool _fadeout -ColorParams 0x39 bool _shared -CompletionWidget 0x0 int CharacterId -CompletionWidget 0x4 ANM2 anm2 -Console 0x0 int _state -Console 0x1c std_string _input -Console 0x40 deque_console_historyentry _history -Console 0x54 deque_string _commandHistory -Console_HistoryEntry 0x0 std_string _text -ConsumableData 0x0 int coins -ConsumableData 0x4 int keys -ConsumableData 0x8 int bombs -ConsumableData 0xc bool goldkey -ConsumableData 0xd bool goldbomb -ConsumableData 0x10 int soulcharges -ConsumableData 0x14 int gigabombs -ConsumableData 0x18 int poopmana -ConsumableData 0x1c int bloodcharges -PlayerCostumeMap 0x0 int _index -PlayerCostumeMap 0x4 int _layerID -PlayerCostumeMap 0x8 int _priority -PlayerCostumeMap 0xc bool _isBodyLayer -CostumeSpriteDesc 0x0 ANM2 _sprite -CostumeSpriteDesc 0x114 ItemConfig_Item* _item -CostumeSpriteDesc 0x118 int _priority -CostumeSpriteDesc 0x11c bool _itemAnimPlay -CostumeSpriteDesc 0x11d bool _isFlying -CostumeSpriteDesc 0x11e bool _hasOverlay -CostumeSpriteDesc 0x11f bool _hasSkinAlt -CostumeSpriteDesc 0x120 int _defaultSkinColor -CostumeSpriteDesc 0x124 int _skinColor -CostumeSpriteDesc 0x128 bool _overwriteColor -CostumeSpriteDesc 0x129 bool _itemStateOnly -CostumeSpriteDesc 0x12c int _playerType -CutsceneEntry 0x0 int _id -CutsceneEntry 0x4 std_string _name -CutsceneEntry 0x45 bool _isVideo -Cutscene 0x0 int _state -Cutscene 0x808 int _queuedCutscene -Cutscene 0x840 bool _startCutscene -DailyChallenge 0x0 unsigned int _id -DailyChallenge 0x4 unsigned int _seed -DailyChallenge 0x8 bool _isPractice -DailyChallenge 0xc unsigned int _specialDailyId -DailyChallenge 0x10 ChallengeParam _params -DestinationQuad 0x0 Vector _topLeft -DestinationQuad 0x8 Vector _topRight -DestinationQuad 0x10 Vector _bottomLeft -DestinationQuad 0x18 Vector _bottomRight -Devolve 0x0 int type -Devolve 0x4 uint16_t variant -Devolve 0x6 uint16_t subtype -Devolve 0x8 float weight -Entity 0x20 unsigned int _index -Entity 0x24 unsigned int _collisionIndex Entity 0x28 unsigned int _type Entity 0x2c unsigned int _variant Entity 0x30 unsigned int _subtype @@ -304,143 +109,17 @@ Entity 0x3c8 EntityPtr _spawnerEntity Entity 0x3d4 EntityPtr _minecart Entity 0x3dc RNG _dropRNG Entity 0x3ec uint32_t _initSeed -Entity 0x408 LuaBridgeRef* _luaBridgeRef -Entity_Bomb base Entity -Entity_Bomb 0x410 int _explosionCountdown1 -Entity_Bomb 0x41c float _fallSpeed -Entity_Bomb 0x420 float _fallAcceleration -Entity_Bomb 0x428 float _rocketAngle -Entity_Bomb 0x42c float _rocketSpeed -Entity_Bomb 0x434 float _scale -Entity_Bomb 0x45c bool _prismTouched -Entity_Bomb 0x463 bool _loadCostumes -Entity_Bomb 0x9c8 std_vector_uint _hitList -EntityConfig 0x0 std_map_uint_EntityConfigEntityEntry _entities -EntityConfig 0x20 vector_EntityConfig_Boss _bosses -EntityConfig 0x2c vector_string _edenHair -EntityConfig_Baby 0x0 int id -EntityConfig_Baby 0x4 std_string name -EntityConfig_Baby 0x1c std_string gfx -EntityConfig_Baby 0x34 int achievementID -EntityConfig_Boss 0x0 int bossID -EntityConfig_Boss 0x4 std_string name -EntityConfig_Boss 0x1c std_string namePath -EntityConfig_Boss 0x34 std_string portraitPath -EntityConfig_Boss 0x4c Vector pivot -EntityConfig_Boss 0x54 int achievement -EntityConfig_Boss 0x58 vector_EntityConfig_Boss_Alt alts -EntityConfig_Boss_Alt 0x0 int stageId -EntityConfig_Boss_Alt 0x4 std_string portraitPath -EntityConfig_Entity 0x0 int id -EntityConfig_Entity 0x4 int variant -EntityConfig_Entity 0x8 int subtype -EntityConfig_Entity 0xc std_string name -EntityConfig_Entity 0x24 float shadowSize -EntityConfig_Entity 0x28 float collisionDamage -EntityConfig_Entity 0x2c bool isBoss -EntityConfig_Entity 0x30 int bossID -EntityConfig_Entity 0x34 bool canBeChampion -EntityConfig_Entity 0x38 float collisionRadius -EntityConfig_Entity 0x3c Vector collisionRadiusMulti -EntityConfig_Entity 0x44 float mass -EntityConfig_Entity 0x48 unsigned int gridCollisionPoints -EntityConfig_Entity 0x4c float friction -EntityConfig_Entity 0x50 float baseHP -EntityConfig_Entity 0x54 float stageHP -EntityConfig_Entity 0x58 bool shutDoors -EntityConfig_Entity 0x5c unsigned int gibsAmount -EntityConfig_Entity 0x60 unsigned int gibFlags -EntityConfig_Entity 0x64 int portrait -EntityConfig_Entity 0x74 std_string anm2Path -EntityConfig_Entity 0xa4 vector_Devolve devolve -EntityConfig_Entity 0xb4 std_string gridCollisionClassString -EntityConfig_Entity 0xcc bool reroll -EntityConfig_Entity 0xcd bool hasFloorAlts -EntityConfig_Entity 0xd0 unsigned int collisionInterval -EntityConfig_Entity 0xd8 unsigned int tags -EntityConfig_Entity 0xe0 float shieldStrength -EntityConfig_Entity 0xe8 bool bestiary -EntityConfig_Entity 0xec Vector bestiaryOffset -EntityConfig_Entity 0xf4 float bestiaryScale -EntityConfig_Entity 0xf8 std_string bestiaryAnm2Path -EntityConfig_Entity 0x110 std_string bestiaryAnim -EntityConfig_Entity 0x128 std_string bestiaryOverlay -EntityConfig_Entity 0x140 std_string bestiaryFloorAlt -EntityConfig_Entity 0x158 int bestiaryParentType -EntityConfig_Entity 0x15c int bestiaryParentVariant -EntityConfig_Entity 0x160 ModEntry* modEntry -EntityConfig_EntityEntry 0x0 unsigned int unk -EntityConfig_EntityEntry 0x4 EntityConfig_Entity entity -EntityConfig_Player 0x0 int _id -EntityConfig_Player 0x4 std_string _name -EntityConfig_Player 0x1c std_string _skinPath -EntityConfig_Player 0x34 std_string _nameImagePath -EntityConfig_Player 0x4c std_string _portraitPath -EntityConfig_Player 0x64 std_string _unkString -EntityConfig_Player 0x7c std_string _extraPortraitPath -EntityConfig_Player 0x94 std_string _costumeSuffixName -EntityConfig_Player 0xac int _costumeID -EntityConfig_Player 0xb0 int _heart -EntityConfig_Player 0xb4 int _armor -EntityConfig_Player 0xb8 int _blackHeart -EntityConfig_Player 0xbc int _coins -EntityConfig_Player 0xc0 int _bombs -EntityConfig_Player 0xc4 int _keys -EntityConfig_Player 0xc8 int _card -EntityConfig_Player 0xcc int _pill -EntityConfig_Player 0xd0 bool _canShoot -EntityConfig_Player 0xd4 std_vector_int _collectibles -EntityConfig_Player 0xe0 int _trinket -EntityConfig_Player 0xe4 int _skinColor -EntityConfig_Player 0xe8 int _achievement -EntityConfig_Player 0xec int _brokenHeart -EntityConfig_Player 0xf0 uint32_t _pocketActiveID -EntityConfig_Player 0xf4 std_string _birthrightDescription -EntityConfig_Player 0x10c std_string _bSkinParentName -EntityConfig_Player 0x124 int _moddedTaintedPlayerID -EntityConfig_Player 0x128 bool _hidden -EntityConfig_Player 0x12c ModEntry* _modEntry -EntityConfig_Player 0x130 bool _renderCustomBackground -EntityConfig_Player 0x134 ANM2* _moddedMenuBackgroundANM2 -EntityConfig_Player 0x138 ANM2* _moddedMenuPortraitANM2 -EntityConfig_Player 0x13c ANM2* _moddedGameOverANM2 -EntityConfig_Player 0x140 ANM2* _moddedCoopMenuANM2 -EntityConfig_Player 0x144 ANM2* _moddedControlsANM2 -EntityDesc 0x0 unsigned int _type -EntityDesc 0x4 unsigned int _variant -EntityDesc 0x8 unsigned int _subtype -EntityDesc 0xc int _championId -EntityDesc 0x10 float _health -EntityDesc 0x14 float _maxHealth -EntityDesc 0x18 bool _playerControlled -Entity_Effect base Entity -Entity_Effect 0x420 BitSet128 _varData Entity_Effect 0x450 int _state Entity_Effect 0x45c int _timeout Entity_Effect 0x460 int _lifespan -Entity_Familiar base Entity Entity_Familiar 0x410 Entity_Player* _player Entity_Familiar 0x5f8 int _moveDelayNum Entity_Familiar 0x5fc NPCAI_Pathfinder _pathfinder Entity_Familiar 0xd74 bool _isFollower Entity_Familiar 0xd75 bool _isDelayed Entity_Familiar 0xd88 int _state -Entity_Familiar 0xdb0 Weapon* _weapon -Entity_Familiar 0xdb4 bool _isLilDelirium -Entity_Familiar 0xed4 ItemConfig_Item* _item -Entity_Familiar 0xedc ColorMod _dirtColor -Entity_Familiar 0xf0c int _wispCollectibleType -Entity_Knife base Entity -Entity_Knife 0x410 BitSet128 _tearFlags -Entity_Knife 0x444 float _knifeDistance -Entity_Knife 0x448 float _knifeVelocity -Entity_Knife 0x465 bool _isSwinging Entity_Knife 0x4c4 float _pathOffset Entity_Knife 0x4c8 float _pathFollowSpeed -Entity_Knife 0x4e5 bool _prismApplied -Entity_Knife 0x4e6 bool _multidimensionalApplied -Entity_Knife 0x4ea bool _isSpinAttack -Entity_Laser base Entity Entity_Laser 0x428 BitSet128 _tearFlags Entity_Laser 0x458 int _timeout Entity_Laser 0x45d bool _sampleLaser @@ -453,23 +132,6 @@ Entity_Laser 0x4e4 bool _disableFollowParent Entity_Laser 0x500 bool _multidimensionalTouched Entity_Laser 0x514 bool _prismTouched Entity_Laser 0x515 bool _oneHit -Entity_Laser 0x518 bool _disableInitSound -Entity_Laser 0x51c float _damageMultiplier -Entity_Laser 0x520 std_vector_uint _hitList -Entity_Laser 0x560 int _chainedLasers -EntityList 0x20 EntityList_EL _mainEL -EntityList 0x30 EntityList_EL _persistentEL -EntityList 0x40 EntityList_EL _updateEL -EntityList 0x50 EntityList_EL _renderEL -EntityList 0x60 EntityList_EL _effectEL -EntityList 0x70 EntityList_EL _tempEL -EntityList 0x80 EntityList_EL _bufferTemplateEL -EntityList 0x90 EntityList_EL _wispEL -EntityList_EL 0x0 bool _sublist -EntityList_EL 0x4 Entity** _data -EntityList_EL 0x8 unsigned int _capacity -EntityList_EL 0xc unsigned int _size -Entity_NPC base Entity Entity_NPC 0x410 int _stateFrame Entity_NPC 0x414 NPCAI_Pathfinder _pathfinder Entity_NPC 0xb64 int _state @@ -491,30 +153,8 @@ Entity_NPC 0xc3d bool _isBoss Entity_NPC 0xc40 float _shieldStrength Entity_NPC 0xc74 uint16_t _championRegenTimer Entity_NPC 0xc78 int _bosscoloridx -Entity_NPC 0xcac ColorMod _dirtColor -Entity_NPC 0xf00 std_vector_uint _hitList -Entity_NPC 0xf1c int32_t _controllerID -Entity_NPC 0xf40 Entity_Player* _sirenPlayerEntity -Entity_NPC 0xf50 Entity_Effect* _pickupGhostsEntity -Entity_Pickup base Entity -Entity_Pickup 0x410 ANM2 _priceANM2 -Entity_Pickup 0x52e bool _isForceBlind Entity_Pickup 0x534 int _price Entity_Pickup 0x540 int _timeout -Entity_Pickup 0x554 int _dropDelay -Entity_Pickup 0x590 Entity_Effect* _pickupGhost -Entity_Pickup 0x59c int _varData -Entity_Pickup 0x5c0 unsigned int _cycleCollectibleCount -Entity_Pickup 0x5c8 KAGE_SmartPointer_EntitySaveState _flipSaveState -Entity_Pickup 0x5d0 ANM2 _altPedestalANM2 -Entity_Player base Entity -Entity_Player 0x41c ANM2 _bodySprite -Entity_Player 0xee4 ANM2 _bloodGushSprite -Entity_Player 0xff8 ANM2 _heldSprite -Entity_Player 0x1220 vector_CostumeSpriteDesc _costumeSpriteDescs -Entity_Player 0x1320 std_string _headAnim -Entity_Player 0x1338 int _blinkTime -Entity_Player 0x133c int _headDirectionTime Entity_Player 0x1340 int _maxHearts Entity_Player 0x1344 int _redHearts Entity_Player 0x1348 int _eternalHearts @@ -525,10 +165,6 @@ Entity_Player 0x1360 bool _hasGoldenKey Entity_Player 0x1361 bool _hasGoldenBomb Entity_Player 0x1364 int _numBombs Entity_Player 0x1368 int _numCoins -Entity_Player 0x1374 int _gnawedLeafTimer -Entity_Player 0x137c short _bloodLustCounter -Entity_Player 0x1388 int _metronomeCollectibleID -Entity_Player 0x1394 int _monkeyPawCounter Entity_Player 0x13bc int _damageCooldown Entity_Player 0x13c0 int _playerType Entity_Player 0x140c Entity_Effect* _markedTarget @@ -542,41 +178,26 @@ Entity_Player 0x1474 float _tearheight Entity_Player 0x1478 float _tearfallspeed Entity_Player 0x147c float _tearfallaccel Entity_Player 0x1480 float _tearrange -Entity_Player 0x14c0 ColorMod _laserColor -Entity_Player 0x1504 TemporaryEffects _temporaryeffects -Entity_Player 0x151c int _speedModifier -Entity_Player 0x1520 int _fireDelayModifier -Entity_Player 0x1524 int _damageModifier -Entity_Player 0x1528 int _tearRangeModifier -Entity_Player 0x152c int _shotSpeedModifier -Entity_Player 0x1530 int _luckModifier -Entity_Player 0x1534 int _donateLuck -Entity_Player 0x1538 int _potatoPeelerCounter -Entity_Player 0x1544 float _edenSpeed -Entity_Player 0x1548 float _edenFireDelay -Entity_Player 0x154c float _edenDamage -Entity_Player 0x1550 float _edenTearRange -Entity_Player 0x1554 float _edenShotSpeed -Entity_Player 0x1558 float _edenLuck -Entity_Player 0x1560 float _movespeed -Entity_Player 0x1564 float _luck -Entity_Player 0x1568 bool _canFly -Entity_Player 0x156c uint32_t _cacheFlags -Entity_Player 0x1570 int8_t _tearDisplacement -Entity_Player 0x1574 float _tearPoisonDamage -Entity_Player 0x15fc int _itemStateCooldown -Entity_Player 0x1600 uint32_t _vampireCharmKills -Entity_Player 0x1608 int _bombPlaceDelay -Entity_Player 0x160c int _forgottenSwapFormCooldown +Entity_Player 0x14c4 ColorMod _laserColor +Entity_Player 0x1508 TemporaryEffects _temporaryeffects +Entity_Player 0x1520 int _speedModifier +Entity_Player 0x1524 int _fireDelayModifier +Entity_Player 0x1528 int _damageModifier +Entity_Player 0x152c int _tearRangeModifier +Entity_Player 0x1568 float _movespeed +Entity_Player 0x156c float _luck +Entity_Player 0x1570 bool _canFly +Entity_Player 0x1574 uint32_t _cacheFlags +Entity_Player 0x1578 int8_t _tearDisplacement +Entity_Player 0x157c float _tearPoisonDamage +Entity_Player 0x1604 int _itemStateCooldown +Entity_Player 0x1608 uint32_t _vampireCharmKills +Entity_Player 0x1610 int _bombPlaceDelay +Entity_Player 0x1614 int _forgottenSwapFormCooldown Entity_Player 0x1618 int _controllerIndex Entity_Player 0x161c int _playerIndex Entity_Player 0x1624 int _moveDirection Entity_Player 0x1628 int _headDirection -Entity_Player 0x16c4 std_vector_int _collectibleCounts -Entity_Player 0x1744 vector_SmeltedTrinketDesc _smeltedTrinkets -Entity_Player 0x1750 std_vector_int _voidedCollectibles -Entity_Player 0x17bc uint32_t _actionHoldDrop -Entity_Player 0x181c bool _postLevelInitFinished Entity_Player 0x1825 bool _canShoot Entity_Player 0x1828 ColorMod _footprintColor1 Entity_Player 0x1854 ColorMod _footprintColor2 @@ -613,91 +234,11 @@ Entity_Player 0x1da0 int _brokenHearts Entity_Player 0x1da4 int _rottenHearts Entity_Player 0x1dd0 uint32_t _urnSouls Entity_Player 0x1dd4 int _numGigaBombs -Entity_Player 0x1dec History _history -Entity_Player 0x1e4c deque_afterImageFrames _afterImageFrames -Entity_Player 0x1e60 EntityPtr _twinPlayer -Entity_Player 0x1e64 Entity_Player* _backupPlayer -Entity_Player 0x1e6c int _redStewBonusDuration -Entity_Player 0x1e84 int _marsUnk1 -Entity_Player 0x1e88 int _marsCooldown -Entity_Player 0x1e8c int _marsUnk2 -Entity_Player 0x1e90 bool _marsUnkBool -Entity_Player 0x1ea8 float _rockBottomMoveSpeed -Entity_Player 0x1eac float _rockBottomMaxFireDelay -Entity_Player 0x1eb0 float _rockBottomDamage -Entity_Player 0x1eb4 float _rockBottomTearRange -Entity_Player 0x1eb8 float _rockBottomShotSpeed -Entity_Player 0x1ebc float _rockBottomLuck -Entity_Player 0x1ed4 uint32_t _revelationChargeTimer -Entity_Player 0x1ed8 uint32_t _montezumaChargeTimer -Entity_Player 0x1ee4 uint32_t _maggyHealthDrainCooldown -Entity_Player 0x1ee8 int _maggySwingCooldown -Entity_Player 0x1f1c int _suplexState -Entity_Player 0x1f20 int _suplexAimCountdown -Entity_Player 0x1f24 Vector _suplexTargetPos -Entity_Player 0x1f2c Vector _suplexLandPos -Entity_Player 0x1f3c BagOfCraftingOutput _bagOfCraftingOutput Entity_Player 0x1f54 int _poopMana Entity_Player 0x1f7c int _eveSumptoriumCharge Entity_Player 0x1f80 std_map_int_int _itemWispsList Entity_Player 0x1fb8 int _modelingClayEffect -Entity_Player 0x1fbc int _keepersSackBonus -Entity_Player 0x2038 ConsumableData _consumablesBackup -Entity_Player 0x2088 uint8_t _wildCardItemType -Entity_Player 0x208c int _wildCardItem Entity_Player 0x20a9 bool _isCoopGhost -Entity_Player 0x20d4 PlayerHUD* _playerHUD -Entity_Player 0x20e8 bool _hasUnlistedRestoreState -Entity_Player 0x20ec GameStatePlayer _unlistedRestoreState -Entity_Player 0x26a8 Entity_Player* _replacedPlayer -Entity_Projectile base Entity -EntityPtr 0x0 Entity* _ref -EntityRef 0x0 int _type -EntityRef 0x4 int _variant -EntityRef 0x8 int _spawnerType -EntityRef 0xc unsigned int _spawnerVariant -EntityRef 0x10 Vector _position -EntityRef 0x18 Vector _velocity -EntityRef 0x20 unsigned int _flags -EntityRef 0x24 Entity *_entity -EntitySaveState 0x0 int type -EntitySaveState 0x4 int variant -EntitySaveState 0x8 int subtype -EntitySaveState 0xc unsigned int intStorage1 -EntitySaveState 0x10 unsigned int intStorage2 -EntitySaveState 0x14 unsigned int intStorage3 -EntitySaveState 0x18 int intStorage4 -EntitySaveState 0x1c int intStorage5 -EntitySaveState 0x20 int16_t gridSpawnIdx -EntitySaveState 0x22 bool boolStorage1 -EntitySaveState 0x23 bool boolStorage2 -EntitySaveState 0x24 unsigned int intStorage6 -EntitySaveState 0x28 Vector targetPosition -EntitySaveState 0x30 unsigned int _intStorage7 -EntitySaveState 0x34 unsigned int _initSeed -EntitySaveState 0x38 unsigned int _dropSeed -EntitySaveState 0x3c int spawnerType -EntitySaveState 0x40 int spawnerVariant -EntitySaveState 0x50 float floatStorage1 -EntitySaveState 0x54 float floatStorage2 -EntitySaveState 0x5c unsigned int intStorage8 -EntitySaveState 0x60 int8_t byteStorage -EntitySaveState 0x6c KAGE_SmartPointer_EntitySaveState entitySaveState -Entity_Slot base Entity -Entity_Slot 0x410 int _state -Entity_Slot 0x414 int _prizeType -Entity_Slot 0x41a short _shellGameAnimationIndex -Entity_Slot 0x41c short _timeout -Entity_Slot 0x420 int _donationValue -Entity_Slot 0x424 uint32_t _triggerTimer -Entity_Slot 0x428 short _unkShort1 -Entity_Slot 0x42a uint16_t _touch -Entity_Slot 0x42c ANM2 _prizeAnm2 -Entity_Slot 0x540 int _prizeCollectible -Entity_Tear base Entity -Entity_Tear 0x410 float _height -Entity_Tear 0x414 float _fallingSpeed -Entity_Tear 0x418 float _fallingAccel Entity_Tear 0x41c float _homingFriction Entity_Tear 0x420 float _fScale Entity_Tear 0x424 float _baseScale @@ -710,85 +251,6 @@ Entity_Tear 0x454 float _baseDamage Entity_Tear 0x458 float _rotation Entity_Tear 0x45c int _scaleAnimNum Entity_Tear 0x460 float _knockbackMultiplier -Entity_Tear 0x464 float _deadEyeIntensity -Entity_Tear 0x468 bool _multidimensionalTouched -Entity_Tear 0x469 bool _prismTouched -Entity_Tear 0x4ac ANM2 _tearHaloANM2 -Entity_Tear 0x5c0 ANM2 _tearEffectANM2 -Entity_Tear 0x6d4 ANM2 _deadEyeANM2 -Entity_Tear 0x820 float _tearRange -FXLayers 0x8 bool _loaded -FXLayers 0x34 int _poopFxCountdown -FXLayers 0x84 ColorMod _poopFxColor -FXLayers 0x4f8 FXParams _fxParams -FXParams 0x0 KColor roomColor -FXParams 0x14 float brightness -FXParams 0x18 float contrast -FXParams 0x1c bool useWaterV2 -FXParams 0x20 KColor waterColor -FXParams 0x34 KColor waterColorMultiplier -FXParams 0x48 float shadowAlpha -FXParams 0x4c KColor shadowColor -FXParams 0x60 KColor lightColor -FXParams 0x74 ColorMod waterEffectColor -Font 0x0 bool _isLoaded -Font 0x4 int16_t _fontSize -Font 0x6 uint8_t _infoBitField -Font 0x7 uint8_t _charSet -Font 0x8 uint16_t _stretchH -Font 0xa uint8_t _aa -Font 0xb uint8_t _paddingUp -Font 0xc uint8_t _paddingRight -Font 0xd uint8_t _paddingDown -Font 0xe uint8_t _paddingLeft -Font 0xf uint8_t _spacingHoriz -Font 0x10 uint8_t _spacingVert -Font 0x11 uint8_t _outline -Font 0x14 uint16_t _lineHeight -Font 0x16 uint16_t _base -Font 0x18 uint16_t _scaleW -Font 0x1a uint16_t _scaleH -Font 0x1c uint16_t _pages -Font 0x1e uint8_t _commonBitField -Font 0x1f uint8_t _alphaChannel -Font 0x20 uint8_t _redChannel -Font 0x21 uint8_t _greenChannel -Font 0x22 uint8_t _blueChannel -Font 0x24 uint32_t _numChars -Font 0x28 FontCharBlock* _chars -Font 0x2c vector_KerningPair _kerningPairs -Font 0x40 std_map_CharBlocks _charsBlock -Font 0x48 int _missingCharacter -FontSettings 0x0 int _align -FontSettings 0x4 int16_t _maxChars -FontSettings 0x6 uint16_t _maxLineWidth -FontSettings 0x8 int _wrapMode -FontSettings 0xc float _lineHeightModifier -FontSettings 0x10 int _missingCharOverride -FontSettings 0x14 int _unk1 -FontSettings 0x18 int _unk2 -Game 0x0 uint32_t _stage -Game 0x4 uint32_t _stageType -Game 0x8 bool _bossChallenge -Game 0x9 bool _devilRoomDisabled -Game 0xc uint32_t _curses -Game 0x182cc uint32_t _nbRooms -Game 0x182d0 uint32_t _startingRoomIdx -Game 0x182d4 RNG _generationRNG -Game 0x18300 Room* _room -Game 0x18304 uint32_t _currentRoomIdx -Game 0x18308 uint32_t _lastRoomIdx -Game 0x1830c uint32_t _currentDimensionIdx -Game 0x18310 uint32_t _lastRoomDimensionIdx -Game 0x18314 uint32_t _lastBossRoomListIdx -Game 0x18318 uint32_t _leaveDoor -Game 0x1831c uint32_t _enterDoor -Game 0x1832c uint32_t _dungeonPlacementSeed -Game 0x18334 uint32_t _greedModeWave -Game 0x1839c unsigned int _levelStateFlags -Game 0x183a4 vector_EntitySaveState _myosotisPickups -Game 0x18370 uint32_t _greedModeTreasureRoomIdx -Game 0x18910 RoomConfig _roomConfig Game 0x1a740 ItemPool _itemPool Game 0x1af70 BossPool _bossPool Game 0x1b83c RoomTransition _roomTransition @@ -796,11 +258,7 @@ Game 0x1ba78 StageTransition _stageTransition Game 0x1baa8 PlayerManager _playerManager Game 0x1bb84 Seeds _seedEffects Game 0x1c034 ItemOverlay _itemOverlay -Game 0x1d4c8 GameOver _gameOver -Game 0x1d5f8 Leaderboard _leaderboard -Game 0x1d9ac HUD _hud -Game 0x2363c PauseScreen _pauseScreen -Game 0x25444 Minimap _minimap +Game 0x1da04 HUD _hud Game 0x264f8 int _frameCount Game 0x2650c Vector _screenShakeOffset Game 0x26534 bool _triggerWindowResize @@ -823,80 +281,12 @@ Game 0x26778 GenericPrompt _genericPrompt Game 0x269c0 int _lastLevelWithoutHalfHp Game 0x269c8 uint32_t _difficulty Game 0x269cc int _lastLevelWithDamage -Game 0x269e9 bool _isStartingFromState -Game 0x269ea bool _isStoringGlowingHourglassState -Game 0x269eb bool _isRestoringGlowingHourglassState -Game 0x6739c int _currentGlowingHourglassSlot -Game 0x673a4 bool _shouldLerpColorModState -Game 0x673a8 ColorModState _currentColorModifier -Game 0x673c0 ColorModState _targetColorModifier -Game 0x673d8 ColorModState _lerpColorModifier -Game 0x6741c DebugRenderer _debugRenderer -Game 0x67424 float _lightningIntensity -Game 0x67428 float _dizzyIntensity -Game 0x6742c float _dizzyTargetIntensity -Game 0x67430 float _dizzyIntensityChangeSpeed -Game 0x67438 vector_ErasedEntities _erasedEntities -Game 0x67444 ProceduralItemManager _proceduralItemManager -Game 0x68a5c Console _console -GameOver 0x8 ANM2 anm2 -GameOver 0x12c EntityConfig_Entity* modEntityConfig -GameState 0x19c uint32_t _roomCount -GameState 0x19d1c int _roomIdx -GameState 0x19d20 int _lastRoomIdx -GameState 0x19d70 uint32_t _playerCount -GameState 0x1e244 GameStateItemPool _itemPool -GameState 0x1e4f8 GameStateBossPool _bossPool -GameState 0x1e59c Seeds _seeds -GameState 0x1fc1c uint32_t _checksum -GameState 0x1fc20 uint32_t _rerunChecksum -GameState 0x1fc24 std_string _localGameStatePath -GameState 0x1fc3c std_string _localRerunStatePath -GameState 0x1fc6c std_string _cloudGameStatePath -GameState 0x1fc84 std_string _cloudRerunStatePath -GameState 0x1fc9c GameStateIO* _saveFile -GameStateBossPool 0x94 vector_bool _removedBosses -GameStateItemPool 0x1f0 uint32_t _seed -GameStateItemPool 0x1f4 int _lastPool -GameStateItemPool 0x1f8 uint32_t _itemPoolRNGseed -GameStateItemPool 0x1fc uint32_t _trinketPoolRNGseed -GameStateItemPool 0x208 vector_bool _removedCollectibles -GameStateItemPool 0x218 vector_TrinketPoolItem _trinketPoolItems -GameStatePlayer 0x0 int _playerType -GameStatePlayer 0x1d4 vector_EntitySaveState _movingBoxContents -GameStatePlayer 0x340 int _immaculateConceptionState -GameStatePlayer 0x344 int _cambionConceptionState -GameStatePlayer 0x374 vector_FamiliarData _familiarData -GameStatePlayer 0x3b0 History _history -GameStatePlayer 0x4c4 BagOfCraftingOutput _bagOfCraftingOutput -GameStatePlayer 0x518 int _controllerIndex -FamiliarData 0x0 unsigned int _seed -FamiliarData 0x4 unsigned int _variant -FamiliarData 0x8 int _subtype -FamiliarData 0xc int _coins -FamiliarData 0x10 int _hearts -FamiliarData 0x14 int _keys -FamiliarData 0x18 int _state -FamiliarData 0x1c int _roomClearCount -FamiliarData 0x28 float _health -FamiliarData 0x2c unsigned int _dropRNGSeed -GameStateRoomConfig 0x0 uint32_t _compactData -GameStateRoomConfig 0x4 uint32_t _type -GameStateRoomConfig 0x8 uint32_t _variant -GenericPrompt 0x0 ANM2 _anm2 -GenericPrompt 0x128 int _currentSelection -GenericPrompt 0x12c int _submittedSelection -GlowingHourglassState 0x0 bool _isUsable -GlowingHourglassState 0x4 GameState _gameState -GlowingHourglassState 0x1fca4 int _leaveDoor -GlowingHourglassState 0x1fca8 uint32_t _timeCounter GridEntity 0x4 GridEntityDesc _desc GridEntity 0x24 unsigned int _gridIndex GridEntity 0x28 unsigned int _spawnFrame GridEntity 0x2c RNG _rng GridEntity 0x3c int _collisionClass GridEntity 0x40 ANM2 _sprite -GridEntity_Decoration base GridEntity GridEntityDesc 0x0 int _type GridEntityDesc 0x4 int _variant GridEntityDesc 0x8 int _state @@ -905,80 +295,14 @@ GridEntityDesc 0x10 unsigned int _spawnSeed GridEntityDesc 0x14 int _varData GridEntityDesc 0x18 bool _initialized GridEntityDesc 0x1c unsigned int _variableSeed -GridEntity_Door base GridEntity -GridEntity_Door 0x168 ANM2 _extraSprite -GridEntity_Door 0x280 int _targetRoomIdx -GridEntity_Door 0x284 uint32_t _previousState -GridEntity_Door 0x288 uint32_t _previousVariant -GridEntity_Fire base GridEntity -GridEntity_Gravity base GridEntity -GridEntity_Lock base GridEntity -GridEntity_Pit base GridEntity -GridEntity_Poop base GridEntity -GridEntity_PressurePlate base GridEntity -GridEntity_Rock base GridEntity -GridEntity_Spikes base GridEntity -GridEntity_Stairs base GridEntity -GridEntity_Statue base GridEntity -GridEntity_TNT base GridEntity -GridEntity_TNT 0x154 int _frameCount -GridEntity_Teleporter base GridEntity -GridEntity_TrapDoor base GridEntity -GridEntity_Wall base GridEntity -GridEntity_Web base GridEntity -HUD 0x3798 ANM2 _chargeBarSprite -HUD 0x39c0 ANM2 _heartsSprite -HUD 0x3ad4 ANM2 _pickupHUDSprite -HUD 0x3be8 ANM2 _cardsPillsSprite -HUD 0x3cfc HUD_Message _messageMain -HUD 0x5278 ANM2 _fortuneSprite -HUD 0x5394 ANM2 _statsSprite -HUD 0x54b0 float _bossHPBarFill +GridEntity_Door 0x27c ANM2 _extraSprite +GridEntity_Door 0x394 int _targetRoomIdx +GridEntity_Door 0x398 uint32_t _previousState +GridEntity_Door 0x39c uint32_t _previousVariant HUD 0x54cc bool _isVisible -HUD 0x54d0 int _hudRefreshType -HUD 0x54d8 int _hudRefreshCountdown -HUD 0x54dc ANM2 _coopMenuSprite -HUD 0x55f0 ANM2 _inventorySprite -HUD 0x5704 ANM2 _craftingTableSprite -HUD 0x5818 ANM2 _poopSpellsSprite -HUD 0x599c StatHUD _statHUD -HUD 0x5c4c HistoryHUD _historyHUD -HUD_Message 0x0 wchar_t* _text -HUD_Message 0x4 wchar_t* _subtext -HUD_Message 0x8 bool _showing -HUD_Message 0x9 bool _autoHide -HUD_Message 0xa bool _isCurseDisplay -HUD_Message 0x20 ANM2 _streakSprite -HUD_Message 0x134 KColor _color1 -HUD_Message 0x148 KColor _color2 -History 0x0 std_vector_history_historyitem _historyItems -HistoryHUD_Item 0x4 KAGE_Graphics_ImageBase* _image -HistoryHUD_Item 0xc History_HistoryItem _historyItem -HistoryHUD_Player 0x0 Entity_Player* _player -HistoryHUD_Player 0x8 std_vector_HistoryHUDItem _historyHudItems -History_HistoryItem 0x0 int _time -History_HistoryItem 0x4 bool _isTrinket -History_HistoryItem 0x8 int _itemID -History_HistoryItem 0xc int _levelStage -History_HistoryItem 0x10 int _stageType -History_HistoryItem 0x14 int _roomType -History_HistoryItem 0x18 int _itemPoolType -HomingLaser 0x0 Entity* _entity -HomingLaser 0x4 Vector _origin -HomingLaser 0xc Vector _endPoint -HomingLaser 0x14 float _unkFloat1 -HomingLaser 0x18 unsigned int _sampleNum -HomingLaser 0x1c std_vector_vector2 _samples -HomingLaser 0x28 std_vector_vector2 _nonOptimizedSamples -HomingLaser 0x34 std_vector_int _unkVec -HomingLaser 0x40 int _unkInt -HomingLaser 0x44 float _unkFloat2 -HomingLaser 0x48 vector_HomingLaserBezier _bezier -InputDeviceBase 0x3fc char* _deviceName -ItemConfig 0x3c std_map_string_int _collectibleNameMap -ItemConfig_Card 0x00 int id -ItemConfig_Card 0x04 int achievementId -ItemConfig_Card 0x08 std_string name +ItemConfig_Card 0x0 int id +ItemConfig_Card 0x4 int achievementId +ItemConfig_Card 0x8 std_string name ItemConfig_Card 0x20 std_string desc ItemConfig_Card 0x38 std_string hudAnim ItemConfig_Card 0x50 bool greedModeAllowed @@ -987,19 +311,17 @@ ItemConfig_Card 0x58 unsigned int cardType ItemConfig_Card 0x5c unsigned int announcerVoice ItemConfig_Card 0x60 unsigned int announcerDelay ItemConfig_Card 0x64 unsigned int mimicCharge -ItemConfig_Card 0x68 ModEntry* modEntry -ItemConfig_Card 0x6c ANM2* moddedCardFront -ItemConfig_Costume 0x00 unsigned int id -ItemConfig_Costume 0x04 std_string anm2Path +ItemConfig_Costume 0x0 unsigned int id +ItemConfig_Costume 0x4 std_string anm2Path ItemConfig_Costume 0x1c unsigned int priority ItemConfig_Costume 0x20 bool hasOverlay ItemConfig_Costume 0x21 bool isFlying ItemConfig_Costume 0x22 bool hasSkinAlt ItemConfig_Costume 0x24 int skinColor ItemConfig_Costume 0x28 bool overwriteColor -ItemConfig_Item 0x00 int type -ItemConfig_Item 0x04 int id -ItemConfig_Item 0x08 std_string name +ItemConfig_Item 0x0 int type +ItemConfig_Item 0x4 int id +ItemConfig_Item 0x8 std_string name ItemConfig_Item 0x20 std_string desc ItemConfig_Item 0x38 std_string gfxFilename ItemConfig_Item 0x50 int achievementId @@ -1026,9 +348,9 @@ ItemConfig_Item 0xb5 bool clearEffectsOnRemove ItemConfig_Item 0xb8 uint64_t tags ItemConfig_Item 0xc0 int quality ItemConfig_Item 0xc4 int craftingQuality -ItemConfig_Pill 0x00 int id -ItemConfig_Pill 0x04 int achievementId -ItemConfig_Pill 0x08 std_string name +ItemConfig_Pill 0x0 int id +ItemConfig_Pill 0x4 int achievementId +ItemConfig_Pill 0x8 std_string name ItemConfig_Pill 0x20 std_string desc ItemConfig_Pill 0x38 bool greedModeAllowed ItemConfig_Pill 0x3c unsigned int announcerVoice @@ -1037,654 +359,11 @@ ItemConfig_Pill 0x44 unsigned int announcerVoiceDelay ItemConfig_Pill 0x48 unsigned int mimicCharge ItemConfig_Pill 0x4c uint8_t effectClass ItemConfig_Pill 0x4d uint8_t effectSubClass -ItemConfig_PlayerForm 0x00 int id -ItemConfig_PlayerForm 0x08 uint64_t tags -ItemConfig_PlayerForm 0x10 std_string name -ItemConfig_PlayerForm 0x28 int costume -ItemConfig_PlayerForm 0x2c uint32_t cache -ItemOverlay 0x0 int _state -ItemOverlay 0x4 int _overlayID -ItemOverlay 0x8 ANM2 _sprite -ItemOverlay 0x1144 int _delay -ItemOverlay 0x1148 Entity_Player* _player -ItemOverlay 0x114c ANM2 _megaMushPlayerSprite ItemPool 0x650 int _lastPool -ItemPool 0x654 RNG _itemPoolRNG -ItemPool 0x67c vector_bool _removedCollectibles -ItemPool 0x68c vector_bool _roomBlacklistedCollectibles -ItemPool 0x794 vector_TrinketPoolItem _trinketPoolItems -ItemPool 0x7a0 int _numAvailableTrinkets -ItemPool_Item 0x0 float _totalWeight -ItemPool_Item 0x4 vector_PoolItem _poolList -ItemPool_Item 0x10 RNG _rng1 -ItemPool_Item 0x20 RNG _rng2 -ItemPool_Item 0x30 uint32_t _bibleUpgrade -TrinketPoolItem 0x0 uint32_t _ID -TrinketPoolItem 0x4 bool _inPool -TrinketPoolItem 0x5 bool _isAvailable -KAGE_Filesys_ArchivedFile 0x4 KAGE_Filesys_ArchivedFile_ArchiveEntry* _archiveEntry -KAGE_Filesys_ArchivedFile 0x8 KAGE_Filesys_File* _file -KAGE_Filesys_ArchivedFile 0xc KAGE_Filesys_ArchivedFile_FileEntry* _fileEntry -KAGE_Filesys_ArchivedFile_ArchiveEntry 0x0 char* _filePath -KAGE_Filesys_ArchivedFile_ArchiveEntry 0x4 int _compressionType -KAGE_Filesys_ArchivedFile_FileEntry 0x0 uint32_t _archiveIndex -KAGE_Filesys_ArchivedFile_FileEntry 0x4 uint32_t _primaryHash -KAGE_Filesys_ArchivedFile_FileEntry 0x8 uint32_t _secondaryHash -KAGE_Filesys_ArchivedFile_FileEntry 0xc uint32_t _archiveOffset -KAGE_Filesys_ArchivedFile_FileEntry 0x10 uint32_t _size -KAGE_Filesys_ArchivedFile_FileEntry 0x14 uint32_t _checksum -KAGE_Filesys_ArchivedFile_FileEntry 0x18 bool _valid -KAGE_Filesys_File base KAGE_Filesys_FileStream -KAGE_Filesys_File 0xc FILE* _file -KAGE_Filesys_FileStream base KAGE_Filesys_IFile -KAGE_Filesys_FileStream 0x4 int _status -KAGE_Filesys_FileStream 0x8 const char* _filePath -KAGE_Filesys_IFile 0x0 void* _vtable -KAGE_Graphics_ImageBase_VertexAttributeDescriptor 0x0 char const* const* name -KAGE_Graphics_ImageBase_VertexAttributeDescriptor 0x4 uint32_t format -KAGE_Graphics_ImageBase 0x10 uint64_t _flags -KAGE_Graphics_ImageBase 0x20 uint32_t _predefinedShader -KAGE_Graphics_ImageBase 0x24 uint32_t _minFilterMode -KAGE_Graphics_ImageBase 0x28 uint32_t _magFilterMode -KAGE_Graphics_ImageBase 0x2c uint32_t _wrapSMode -KAGE_Graphics_ImageBase 0x30 uint32_t _wrapTMode -KAGE_Graphics_ImageBase 0x34 uint8_t* _vertexFormat -KAGE_Graphics_ImageBase 0x38 uint8_t _numVertexAttributes -KAGE_Graphics_ImageBase 0x3a uint16_t _vertexFormatStride -KAGE_Graphics_ImageBase 0x3c char* _name -KAGE_Graphics_ImageBase 0x40 vector_RenderBatchPtr _renderBatches -KAGE_Graphics_ImageBase 0x4c KAGE_Graphics_RenderBatch* _lastRenderBatch -KAGE_Graphics_ImageBase 0x50 vector_RenderBatchPtr _reusableTransparentRenderBatches -KAGE_Graphics_ImageBase 0x5c KAGE_Graphics_RenderBatch* _lastTransparentRenderBatch -KAGE_Graphics_ImagePNG base KAGE_Graphics_ImageBase -KAGE_Graphics_ImagePIC base KAGE_Graphics_ImageBase -KAGE_Graphics_ImagePCX base KAGE_Graphics_ImageBase -KAGE_Graphics_ImageManager 0x10 vector_ImagePtr _frameImages -KAGE_Graphics_ImageManager 0x28 vector_pair_RenderBatchPtr_ImagePtr _transparentBatches -_GLFWwindow 0x48 double virtualCursorPosX -_GLFWwindow 0x50 double virtualCursorPosY -_GLFWwindow 0x218 void* HWND -KAGE_Graphics_Manager 0x4 BlendMode _blendMode -KAGE_Graphics_Manager 0x18 KAGE_Graphics_Shader* _shader -KAGE_Graphics_Manager 0x1c KAGE_Graphics_ImageBase* currentRenderTarget -KAGE_Graphics_Manager 0x20 bool renderTargetUsesScreenSize -KAGE_Graphics_Manager 0xcc KAGE_Graphics_ImageBase* _boundImage -KAGE_Graphics_Manager 0xe0 _GLFWwindow* _window -KAGE_Graphics_ShaderBase 0x0 void* _vtable -KAGE_Graphics_ShaderBase 0x4 bool _initialized -KAGE_Graphics_ShaderBase 0x8 KAGE_Graphics_VertexAttributeDescriptor* _vertexAttributes -KAGE_Graphics_ShaderBase 0xc uint32_t _numVertexAttributes -KAGE_Graphics_Shader base KAGE_Graphics_ShaderBase -KAGE_Graphics_Shader 0x28 unsigned int _glProgram -KAGE_Graphics_GraphicsBuffer 0x0 void* data -KAGE_Graphics_GraphicsBuffer 0x4 uint32_t size -KAGE_Graphics_GraphicsBuffer 0x8 uint32_t capacity -KAGE_Graphics_GraphicsBuffer 0xc uint32_t processed -KAGE_Graphics_GraphicsBufferObject 0x0 KAGE_Graphics_GraphicsBuffer* container -KAGE_Graphics_GraphicsBufferObject 0x4 uint32_t activeBufferIdx -KAGE_Graphics_GraphicsBufferObject 0x8 uint32_t elementSize -KAGE_Graphics_RenderBatch 0x14 KAGE_Graphics_Shader* shader -KAGE_Graphics_RenderBatch 0x24 KAGE_Graphics_GraphicsBufferObject _vertexBuffer -KAGE_Graphics_RenderBatch 0x30 KAGE_Graphics_GraphicsBufferObject _indexBuffer -KAGE_Graphics_VertexAttributeDescriptor 0x0 const char* name -KAGE_Graphics_VertexAttributeDescriptor 0x4 uint32_t format -KAGE_System_CriticalSection 0x0 CRITICAL_SECTION criticalSection -KAGE_System_CriticalSection 0x18 bool locked -KAGE_System_Mutex 0x0 void* vtable -KAGE_System_Mutex 0x4 bool initialized -KAGE_System_Mutex 0x8 KAGE_System_CriticalSection* cs KColor 0x0 float _red KColor 0x4 float _green KColor 0x8 float _blue KColor 0xc float _alpha -KColor 0x10 int _unk -LayerData 0x0 unsigned int ID -LayerData 0x4 unsigned int spritesheetID -LayerData 0x8 std_string name -LayerData 0x20 std_string defaultSpriteSheetPath -LayerState 0x0 LayerData* _layerData -LayerState 0x4 ANM2* _animation -LayerState 0x8 std_string _spriteSheetPath -LayerState 0x20 unsigned int _minFilterMode -LayerState 0x24 unsigned int _magFilterMode -LayerState 0x28 unsigned int _wrapSMode -LayerState 0x2c unsigned int _wrapTMode -LayerState 0x30 bool _spriteSheetLoaded -LayerState 0x31 bool _unk -LayerState 0x32 bool _flipX -LayerState 0x33 bool _flipY -LayerState 0x34 Vector _size -LayerState 0x3c float _rotation -LayerState 0x40 Vector _pos -LayerState 0x48 ColorMod _color -LayerState 0x74 bool _visible -LayerState 0x78 BlendMode _blendMode -LayerState 0x8c unsigned int _bitflags -LayerState 0x90 Vector _cropOffset -LayerState 0x98 KAGE_SmartPointer_ImageBase _spriteSheet -LeaderboardEntryData 0x0 int _stageBonus -LeaderboardEntryData 0x4 int _schwagBonus -LeaderboardEntryData 0x34 int _isDead -LeaderboardEntryData 0x38 int _encodedGameVersion -LeaderboardEntry 0x0 uint32_t _numDisplayedEntry -LeaderboardEntry 0x1c LeaderboardEntryData* _entriesData -Leaderboard 0x4 int _displayState -Leaderboard 0x10 ANM2 _scoreMenuSprite -Leaderboard 0x124 ANM2 _leaderboardMenuSprite -Leaderboard 0x258 DailyChallenge _dailyChallenge -Leaderboard 0x30c ScoreSheet _scoreSheet -Leaderboard 0x3b0 int _isLeaderboardClosing -Level 0x0 uint32_t _stage -Level 0x4 uint32_t _stageType -Level 0x1822c uint32_t _levelStateFlag -Level 0x18204 uint32_t _greedwavesclearedwithoutredheartdamage -LevelGenerator 0x0 RNG _rng -LevelGenerator 0x10 RoomShapeBitset _allowedShapes -LevelGenerator 0x364 vector_LevelGenRoom _rooms -LevelGenerator 0x370 std_vector_uint _deadEnds -LevelGenerator 0x37c std_vector_uint _nonDeadEnds -LevelGenerator 0x388 int _nextBossRoomIdx -LevelGenerator 0x38c uint32_t _numBossRooms -LevelGenerator 0x390 bool _isXL -LevelGenerator 0x391 bool _isChapter6 -LevelGenerator 0x392 bool _isStageVoid -LevelGenerator_Room 0x0 bool _unk1 -LevelGenerator_Room 0x4 uint32_t _generationIndex -LevelGenerator_Room 0x8 uint32_t _gridColIdx -LevelGenerator_Room 0xc uint32_t _gridLineIdx -LevelGenerator_Room 0x10 uint32_t _horizontalSize -LevelGenerator_Room 0x14 uint32_t _verticalSize -LevelGenerator_Room 0x18 uint32_t _shape -LevelGenerator_Room 0x1c uint32_t _doors -LevelGenerator_Room 0x20 int32_t _originNeighborConnectDir -LevelGenerator_Room 0x24 int32_t _originNeighborConnectDirAdjust -LevelGenerator_Room 0x28 int32_t _linkColIdx -LevelGenerator_Room 0x2c int32_t _linkLineIdx -LevelGenerator_Room 0x30 std_set_int _neighbors -LevelGenerator_Room 0x38 uint32_t _setExtraField -LevelGenerator_Room 0x3c bool _deadEnd -LevelGenerator_Room 0x40 uint32_t _distanceFromStart -LevelGenerator_Room 0x44 bool _unk8 -LootListEntry 0x0 uint32_t _type -LootListEntry 0x4 uint32_t _variant -LootListEntry 0x8 uint32_t _subType -LootListEntry 0xc uint32_t _seed -LootListEntry 0x10 RNG* _rng -LuaBridgeRef 0x0 lua_State* _state -LuaBridgeRef 0x4 int _ref -LuaCallbackCallerResult 0x0 lua_State* state -LuaCallbackCallerResult 0x4 int ref -LuaCallbackCaller 0x0 lua_State* state -LuaCallbackCaller 0x4 int callbackId -LuaCallbackCaller 0x8 int optionalArg -LuaEngine 0xc bool _debug -LuaEngine 0x10 RunCallbackRegistry* runCallbackRegistry -LuaEngine 0x14 LuaBridgeRef* _unloadModFuncRef -LuaEngine 0x18 lua_State* _state -LuaEngine 0x1c int32_t _runCallbackRegistryKey -LuaEngine 0x20 uint32_t _pointerMask -MTRNG 0x9c0 uint32_t _currentIndex -Manager 0x8 int _state -Manager 0x10 uint32_t _currentSaveSlot -Manager 0x14 PersistentGameData _persistentGameData -Manager 0xfa4 GameState _gamestate -Manager 0x20c48 Cutscene _cutsceneManager -Manager 0x21498 NightmareScene _nightmareScene -Manager 0x21a8c AchievementOverlay _achievementOverlay -Manager 0x29df8 Music _musicmanager -Manager 0x2a160 SoundEffects _sfxManager -Manager 0x2a178 OptionsConfig _optionsConfig -Manager 0x2a234 ItemConfig _itemConfig -Manager 0x2a36c EntityConfig _entityConfig -Manager 0x2a3bc ModManager _modManager -Manager 0x4a61c StringTable _stringTable -Manager 0x4a8b8 unsigned int _framecount -Manager 0x4a8cd bool _isConsoleEnabled -Manager 0x4a8e0 ANM2 _buttonsSprite -Manager 0x4aa08 Font _font1_TeamMeatEx10 -Manager 0x4aa54 Font _font2_TeamMeatEx12 -Manager 0x4aaa0 Font _font3_TeamMeatEx16 -Manager 0x4aaec Font _font4_terminus -Manager 0x4ab38 Font _font5_terminus8 -Manager 0x4ab84 Font _font6_PFTempestaSevenCondensed -Manager 0x4abd0 Font _font7_Upheaval -Manager 0x4ac1c Font _font8_LuaMiniOutlined -Manager 0x4ac68 Font _font9_PFTempestaSevenCondensedAgain -Manager 0x4ad10 bool _starting -Manager 0x4ad11 bool _rerunAvailable -Manager 0x4ad12 bool _startingFromRerun -Manager 0x4ad1c Seeds _startSeeds -Manager 0x4ad7c bool _debugStart -Manager 0x4ada0 DailyChallenge _dailyChallenge -Manager 0x4ae54 bool _networkPlay -Manager 0x4ae88 ANM2 _cursorSprite -Manager 0x4afb8 NetplayManager _netplayManager -Menu_Bestiary 0x0 float PositionX -Menu_Bestiary 0x4 float PositionY -Menu_Bestiary 0x8 ANM2 BestiaryMenuSprite -Menu_Bestiary 0x11c ANM2 DeathScreenSprite -Menu_Bestiary 0x230 ANM2 EnemySprite -Menu_Bestiary 0x344 int CurrentPage -Menu_Bestiary 0x348 int SelectedElement -Menu_Bestiary 0x34c int LastEnemyPageID -Menu_Bestiary 0x35c int unk1 -Menu_Bestiary 0x360 int unk2 -Menu_Bestiary 0x368 int _holdLeftArrowCounter -Menu_Bestiary 0x36c int _holdUpArrowCounter -Menu_Bestiary 0x370 int _holdRightArrowCounter -Menu_Bestiary 0x374 int _holdDownArrowCounter -Menu_Challenge 0x4 int SelectedChallengeID -Menu_Challenge 0x8 int HoldInputTimer -Menu_Challenge 0xc float PositionX -Menu_Challenge 0x10 float PositionY -Menu_Challenge 0x14 ANM2 ChallengeMenuSprite -Menu_Character 0x0 int Status -Menu_Character 0x5 bool IsCharacterUnlocked -Menu_Character 0x6 bool IsInputPossible -Menu_Character 0x8 int Difficulty -Menu_Character 0xc int CooldownWhenHoldDirection -Menu_Character 0x10 int SelectedCharacterID -Menu_Character 0x14 int _chosenRandomCharacter -Menu_Character 0x18 float _randomRotationVelocity -Menu_Character 0x20 int _randomRotationAmount -Menu_Character 0x24 float _characterWheelDepth -Menu_Character 0x28 float _scrollSpeed -Menu_Character 0x2c float _characterWheelWidth -Menu_Character 0x30 float MenuBlackColorizeIntensity -Menu_Character 0x34 float MenuYellowColorizeIntensity -Menu_Character 0x38 float _PositionX -Menu_Character 0x3c float _PositionY -Menu_Character 0x40 ANM2 _BigCharPageSprite -Menu_Character 0x154 ANM2 _DifficultyOverlaySprite -Menu_Character 0x268 ANM2 _GreedDecoOverlaySprite -Menu_Character 0x37c ANM2 _CharacterMenuBGSprite -Menu_Character 0x490 CompletionWidget _completionWidget -Menu_Character 0x5ac ANM2 _DifficultyPageSprite -Menu_Character 0x6c0 ANM2 _SeedPageSprite -Menu_Character 0x7d4 ANM2 _WinStreakPageSprite -Menu_Character 0x8e8 ANM2 _EastereggPageSprite -Menu_Character 0xa04 ANM2 _SeedUnlockPageSprite -Menu_Character 0xb18 int _numCharacters -Menu_Character 0xb1c int _numCharacters_MINUS_SelectedEntry -Menu_Character 0xb20 ANM2 _CharacterPortraitsSprite -Menu_Character 0xc34 float _horizontalScrollPosition -Menu_Character 0xc50 ANM2 _SeedEntrySprite -Menu_Character 0xdb4 int _characterMenuShown -Menu_Character 0xdb8 ANM2 _PageSwapWidgetSprite -Menu_Character 0xecc ANM2 _TaintedMenuBGDecoSprite -Menu_Character_Entry 0x0 char* animationName -Menu_Character_Entry 0x4 int playerType -Menu_Character_Entry 0x8 bool hidden -Menu_Collection 0x0 int HoldInputTimer -Menu_Collection 0x4 int SelectedPage -Menu_Collection 0x8 float PositionX -Menu_Collection 0xc float PositionY -Menu_Collection 0x10 int SelectedElement -Menu_Collection 0x14 ANM2 CollectionMenuSprite -Menu_Collection 0x128 ANM2 DeathScreenSprite -Menu_Collection 0x248 float MoveXAxisDirection -Menu_Collection 0x24c float MoveYAxisDirection -Menu_Collection 0x25c int NumItems -Menu_ControllerSelect 0x0 int HoldInputTimer -Menu_ControllerSelect 0x4 int SelectedElement -Menu_ControllerSelect 0x8 float PositionX -Menu_ControllerSelect 0xc float PositionY -Menu_ControllerSelect 0x10 ANM2 ControllerSelectSprite -Menu_CustomChallenge 0x0 int SelectedElement -Menu_CustomChallenge 0x4 int HoldInputTimer -Menu_CustomChallenge 0x8 float PositionX -Menu_CustomChallenge 0xc float PositionY -Menu_CustomChallenge 0x10 ANM2 CustomChallengeSprite -Menu_Cutscenes 0x0 int HoldInputTimer -Menu_Cutscenes 0x4 int SelectedElement -Menu_Cutscenes 0x8 float PositionX -Menu_Cutscenes 0xc float PositionY -Menu_Cutscenes 0x10 ANM2 CutscenesMenuSprite -Menu_DailyChallenge 0x0 int State -Menu_DailyChallenge 0x4 int _holdInputTimer -Menu_DailyChallenge 0x8 int SelectedElement -Menu_DailyChallenge 0xc float _positionX -Menu_DailyChallenge 0x10 float _positionY -Menu_DailyChallenge 0x14 ANM2 _DailyRunSprite -Menu_DailyChallenge 0x128 int lastRunScore -Menu_DailyChallenge 0x12c int _timeHoursLeft -Menu_DailyChallenge 0x130 int _timeMinutesLeft -Menu_DailyChallenge 0x134 int _timeSecondsLeft -Menu_DailyChallenge 0x138 AnimationState* _leaderboardAnmState -Menu_DailyChallenge 0x13c GenericPopup _genericPopup -Menu_DailyChallenge 0x270 GenericPrompt _genericPrompt -Menu_DailyChallenge 0x3a4 Leaderboard _leaderboard -Menu_Game 0x0 int KeyDownTimer -Menu_Game 0x4 int SelectedElement -Menu_Game 0x8 float PositionX -Menu_Game 0xc float PositionY -Menu_Game 0x10 ANM2 GameMenuSprite -Menu_Game 0x124 ANM2 ContinueWidgetSprite -Menu_KeyConfig 0x0 int State -Menu_KeyConfig 0x4 int SelectedElement -Menu_KeyConfig 0x8 int SelectedColumn -Menu_KeyConfig 0xc float PositionX -Menu_KeyConfig 0x10 float PositionY -Menu_KeyConfig 0x14 ANM2 KeyConfigSprite -MenuManager 0xc int _state -MenuManager 0x10 float _fadeOutProgress -MenuManager 0x14 int _fadeInActive -MenuManager 0x18 float _fadeInProgress -MenuManager 0x1c KColor _fadeInColor -MenuManager 0x30 int _returnState -MenuManager 0x34 float _vingnetteIntensity -MenuManager 0x38 float _backWidgetPositionOffsetY -MenuManager 0x3c float _selectWidgetPositionOffsetY -MenuManager 0x40 int _selectedMenuID -MenuManager 0x44 Vector _ViewPosition -MenuManager 0x4c ANM2 _MenuShadowSprite -MenuManager 0x178 Seeds _seedsObject -MenuManager 0x1d4 Menu_Title _menuTitle -MenuManager 0x2f8 Menu_Save _menuSave -MenuManager 0xb90 Menu_Game _menuGame -MenuManager 0xdd0 Menu_DailyChallenge _menuDailyChallenge -MenuManager 0x1530 Menu_Character _menuCharacter -MenuManager 0x2518 Menu_SpecialSeeds _menuSpecialSeeds -MenuManager 0x2684 Menu_Challenge _menuChallenge -MenuManager 0x27b4 Menu_Collection _menuCollection -MenuManager 0x2a14 Menu_Stats _menuStats -MenuManager 0xce8c Menu_Options _menuOptions -MenuManager 0xd114 Menu_ControllerSelect _menuControllerSelect -MenuManager 0xd244 Menu_KeyConfig _menuKeyConfig -MenuManager 0xd36c Menu_Cutscenes _menuCutscenes -MenuManager 0xd490 Menu_Bestiary _menuBestiary -MenuManager 0xd808 Menu_CustomChallenge _menuCustomChallenge -MenuManager 0xd92c Menu_Mods _menuMods -MenuManager 0xf7c4 bool _shouldLerpColorModState -MenuManager 0xf7c8 ColorModState _currentColorModState -MenuManager 0xf7e0 ColorModState _targetColorModState -MenuManager 0xf7f8 ColorModState _lerpColorModState -MenuManager 0xf810 float _scrollinterpolationX -MenuManager 0xf814 float _scrollinterpolationY -MenuManager 0xf820 ANM2 _flySprite -Menu_Mods 0x0 int SelectedElement -Menu_Mods 0x4 int HoldInputTimer -Menu_Mods 0x8 float PositionX -Menu_Mods 0xc float PositionY -Menu_Mods 0x10 ANM2 ModsMenuSprite -Menu_Mods 0x124 int State -Menu_Mods 0x128 ModEntry* _pointerToSelectedMod -Menu_Online 0x4 ANM2 _anm2 -Menu_Online 0x22c int _prevState -Menu_Online 0x230 int _state -Menu_Options 0x8 int SelectedElement -Menu_Options 0xc float PositionX_duplicate -Menu_Options 0x10 float PositionY_duplicate -Menu_Options 0x14 float PositionX -Menu_Options 0x18 float PositionY -Menu_Options 0x24 ANM2 OptionsSprite -Menu_Options 0x138 ANM2 GammaMenuSprite -Menu_Options 0x24c int HoldLeftCounter -Menu_Options 0x250 int HoldRightCounter -Menu_Options 0x254 int HoldUpDownCounter -Menu_Save 0x0 int State -Menu_Save 0x4 int SelectedSave -Menu_Save 0xc int HoldInputTimer -Menu_Save 0x10 float PositionX -Menu_Save 0x14 float PositionY -Menu_Save 0x18 ANM2 SaveSelectMenuSprite -Menu_Save 0x12c ANM2 Save1DrawingSprite -Menu_Save 0x240 ANM2 Save2DrawingSprite -Menu_Save 0x354 ANM2 Save3DrawingSprite -Menu_Save 0x470 ANM2 DeleteButtonSprite -Menu_Save 0x584 ANM2 DeletePopupSprite -Menu_SpecialSeeds 0x0 int State -Menu_SpecialSeeds 0x4 int SelectedElement -Menu_SpecialSeeds 0x8 int HoldInputTimer -Menu_SpecialSeeds 0xc float PositionX -Menu_SpecialSeeds 0x10 float PositionY -Menu_SpecialSeeds 0x1c ANM2 SpecialSeedsSprite -Menu_Stats 0x0 int _countTotalAchievements -Menu_Stats 0x4 int _countItemsInCollection -Menu_Stats 0x8 int _countDeaths -Menu_Stats 0xc int _countMomKills -Menu_Stats 0x10 int _statsMenuCurrentSelection -Menu_Stats 0x14 float _PositionX -Menu_Stats 0x18 float _PositionY -Menu_Stats 0x1c ANM2 _StatsMenuSprite -Menu_Stats 0x130 bool _isAchievementScreenVisible -Menu_Stats 0x134 float _achievementScrollInPosition -Menu_Stats 0x138 float _achievementScrollThruListPosition -Menu_Stats 0x13c int _selectedAchievmentId -Menu_Stats 0xb44 ANM2 _achievementsSprite -Menu_Stats 0xc58 ANM2 _achievementMiniSprite1 -Menu_Stats 0xd6c ANM2 _achievementMiniSprite2 -Menu_Stats 0xe80 ANM2 _achievementMiniSprite3 -Menu_Stats 0xf94 ANM2 _achievementMiniSprite4 -Menu_Stats 0x10a8 ANM2 _achievementMiniSprite5 -Menu_Stats 0x11bc ANM2 _achievementMiniSprite6 -Menu_Stats 0x12d0 ANM2 _achievementMiniSprite7 -Menu_Stats 0x13e4 ANM2 _achievementMiniSprite8 -Menu_Stats 0x14f8 ANM2 _achievementMiniSprite9 -Menu_Stats 0x160c ANM2 _cursorLeftSprite -Menu_Stats 0x1720 ANM2 _cursorRightSprite -Menu_Stats 0xa46c int _maxAchievementID -Menu_Stats 0xa470 int _holdInputTimer -Menu_Stats 0xa474 float _scrollSpeed -Menu_Title 0x0 float PositionX -Menu_Title 0x4 float PositionY -Menu_Title 0x8 ANM2 TitleScreenSprite -Minimap 0x0 int _state -Minimap 0x4 bool _unkBool -Minimap 0x8 uint32_t _holdTime -Minimap 0xc float _unkFloat -Minimap 0x2d8 ANM2 _itemIconsSprite -Minimap 0x3ec ANM2 _hudPickupSprite -Minimap 0x500 ANM2 _iconsSprite -Minimap 0x61c int _shakeDuration -Minimap 0x620 Vector _shakeOffset -MinimapConfig 0x0 ANM2 _mapSprite -MinimapConfig 0x11c Vector _vec1 -MinimapConfig 0x124 Vector _borderPadding -MinimapConfig 0x12c float _posOffsetX -MinimapConfig 0x130 float _borderScale -MinimapConfig 0x134 int _i1 -MinimapConfig 0x138 int _i2 -MinimapConfig 0x13c int _minimapIconNum -MinimapConfig 0x148 Vector _size1 -MinimapConfig 0x150 Vector _size2 -MinimapConfig 0x158 float _alpha -ModEntry 0x0 std_string _directory -ModEntry 0x18 std_string _name -ModEntry 0x30 std_string _resourcesDirectory -ModEntry 0x48 std_string _contentDirectory -ModEntry 0x60 std_string _dataDirectory -ModEntry 0x78 std_string _metadataVersion -ModEntry 0x90 std_string _metadataWorkshopID -ModEntry 0xa8 std_string _metadataDescription -ModEntry 0xc0 std_string _metadataVisibility -ModEntry 0xfc bool _enabled -ModEntry 0xfd bool _loaded -ModManager 0x0 vector_ModEntryPointer _mods -ModManager 0x2025c int _modBanStatus -ModManager_CharacterMap 0x0 int normal -ModManager_CharacterMap 0x4 int tainted -ModReference 0x0 std_string _mainLuaPath -ModReference 0x18 std_string _dataDirectory -ModReference 0x30 std_string _name -ModReference 0x48 LuaBridgeRef* _luaTableRef -ModReference 0x4c int _apiVersion -ModShader 0x0 std_string name -ModShader 0x18 KAGE_Graphics_Shader shader -Music 0x0 unsigned int _currentStream -Music 0x30c unsigned int _currentId -Music 0x310 unsigned int _queuedId -Music 0x314 float _pitch -Music 0x318 float _targetPitch -Music 0x31c vector_MusicEntry _entries -Music 0x328 bool _enabled -Music 0x32a uint16_t _jingleId -Music 0x360 float _jingleVolumeMaybe -Music 0x364 int _jingleCountdownMaybe -MusicEntry 0x4 std_string _string1 -NPCAI_Pathfinder 0x0 Entity * _entity -NPCAI_Pathfinder 0x4 Vector _targetRelated1 -NPCAI_Pathfinder 0xc Vector _targetRelated2 -NPCAI_Pathfinder 0x14 int _directionMaybe -NPCAI_Pathfinder 0x18 int _unkCounter -NPCAI_Pathfinder 0x1c int _framecountMaybe -NPCAI_Pathfinder 0x20 int _gridIndex -NPCAI_Pathfinder 0x24 float _interpFrameRelated -NPCAI_Pathfinder 0x28 int _countdownMaybe -NPCAI_Pathfinder 0x72c bool _hasDirectPath -NPCAI_Pathfinder 0x72d bool _unkBool -NPCAI_Pathfinder 0x730 Vector _posBackupMaybe -NPCAI_Pathfinder 0x738 bool _canCrushRocks -NPCAI_Pathfinder 0x73c int _evadeMovementCountdown -NPCAI_Pathfinder 0x740 float _unkFloat2 -NPCAI_Pathfinder 0x744 float _unkFloat -NightmareScene 0x20 ANM2 _backgroundANM2 -NightmareScene 0x134 ANM2 _bubbleANM2 -NightmareScene 0x248 ANM2 _ProgressBarANM2 -NightmareScene 0x4d4 ANM2 _playerExtraPortraitANM2 -OptionsConfig 0x0 std_string _optionsIniFilePath -OptionsConfig 0x18 float _musicVolume -OptionsConfig 0x1c float _sfxVolume -OptionsConfig 0x20 float _mapOpacity -OptionsConfig 0x24 bool _isFullscreen -OptionsConfig 0x25 bool _filterEnabled -OptionsConfig 0x28 float _gamma -OptionsConfig 0x2c float _exposure -OptionsConfig 0x30 float _brightness -OptionsConfig 0x34 float _contrast -OptionsConfig 0x38 bool _controlHotplugEnabled -OptionsConfig 0x3c int _popupsMode -OptionsConfig 0x40 bool _enableFoundHUD -OptionsConfig 0x44 int _cameraStyle -OptionsConfig 0x48 int _historyHudMode -OptionsConfig 0x4c float _hudOffset -OptionsConfig 0x50 bool _tryImportSave -OptionsConfig 0x51 bool _enableMods -OptionsConfig 0x52 bool _enableRumble -OptionsConfig 0x53 bool _enableChargeBars -OptionsConfig 0x54 bool _enableBulletVisibility -OptionsConfig 0x55 bool _enableAimLock -OptionsConfig 0x58 int _touchMode -OptionsConfig 0x5c bool _enableDebugConsole -OptionsConfig 0x5d bool _enableVSync -OptionsConfig 0x5e bool _enableSteamCloud -OptionsConfig 0x5f bool _enablePauseOnFocusLost -OptionsConfig 0x60 bool _enableMouseControl -OptionsConfig 0x64 int _maxScale -OptionsConfig 0x68 int _maxRenderScale -OptionsConfig 0x6c int _windowWidth -OptionsConfig 0x70 int _windowHeight -OptionsConfig 0x74 int _windowPosX -OptionsConfig 0x78 int _windowPosY -OptionsConfig 0x7c int _consoleFont -OptionsConfig 0x80 bool _enableFadedConsoleDisplay -OptionsConfig 0x81 bool _enableSaveCommandHistory -OptionsConfig 0x82 bool _enableBorderlessFullscreen -OptionsConfig 0x83 bool _enableInterpolation -OptionsConfig 0x84 bool _enableColorCorrection -OptionsConfig 0x85 bool _enableLighting -OptionsConfig 0x86 bool _enableShockwave -OptionsConfig 0x87 bool _enableCaustics -OptionsConfig 0x88 bool _enableFilter -OptionsConfig 0x89 bool _enablePixelation -OptionsConfig 0x8a bool _enableBloom -OptionsConfig 0x8b bool _enableWaterSurface -OptionsConfig 0x8c bool _getsSetToEnableWaterSurface -OptionsConfig 0x8d bool _enableColorModifier -OptionsConfig 0x8e bool _bossHpOnBottom -OptionsConfig 0x90 int _announcerVoiceMode -OptionsConfig 0x94 int _jacobEsauControls -OptionsConfig 0x98 bool _ascentVoiceover -OptionsConfig 0x9c int _onlineHud -OptionsConfig 0xa0 bool _streamerMode -OptionsConfig 0xa4 int _onlinePlayerVolume -OptionsConfig 0xa8 int _onlinePlayerOpacity -OptionsConfig 0xac bool _onlineChatEnabled -OptionsConfig 0xad bool _onlineFilterEnabled -OptionsConfig 0xb0 int _onlineColorSet -OptionsConfig 0xb4 int _onlineInputDelay -OptionsConfig 0xb8 bool _acceptedPublicBeta_VERSION -OptionsConfig 0xb9 bool _acceptedModDisclaimer -OptionsConfig 0xba bool _acceptedDataCollectionDisclaimer -PauseScreen 0x0 int state -PauseScreen 0x8 int selectedelement -PauseScreen 0x2c ANM2 mainsprite -PauseScreen 0x140 ANM2 minisprite -PauseScreen 0x254 ANM2 statssprite -PauseScreen 0x368 ANM2 mystuffminispritebase -PauseScreen 0x5b0 Menu_Options menuoptions -PauseScreen 0x840 CompletionWidget completionWidget -PersistentGameData_Bestiary 0x0 std_map_int_int encounters -PersistentGameData_Bestiary 0x8 std_map_int_int kills -PersistentGameData_Bestiary 0x10 std_map_int_int hits -PersistentGameData_Bestiary 0x18 std_map_int_int deaths -PersistentGameData 0x0 bool changesmade -PersistentGameData 0x1 bool readonly -PersistentGameData 0x4 KAGE_Filesys_FileStream* file -PersistentGameData 0x8 std_string filepath -PersistentGameData 0x20 std_string steamcloudfilepath -PersistentGameData 0xf8c bool fileLoadedSucessfully -PersistentGameData 0xf64 PersistentGameData_Bestiary bestiary -PlayerHUD 0x0 Entity_Player* _player -PlayerHUD 0x4 HUD* _HUD -PlayerHUD 0x8 short _playerHudIndex -PlayerHUD 0xc int8_t _redHeartFlashCountdown -PlayerHUD 0xd int8_t _soulHeartFlashCountdown -PlayerHUD 0xe int8_t _goldHeartFlashCountdown -PlayerHUDActiveItem 0x0 int id -PlayerHUDActiveItem 0x8 KAGE_Graphics_ImageBase* itemImage -PlayerHUDActiveItem 0x10 KAGE_Graphics_ImageBase* bookImage -PlayerHUDHeart 0x0 bool _visibility -PlayerHUDHeart 0x1 bool _eternalHeartVisibility -PlayerHUDHeart 0x2 bool _goldenHeartVisibility -PlayerHUDHeart 0x3 bool _fadeHeart -PlayerHUDHeart 0x4 int8_t _flashType -PlayerHUDHeart 0x8 const char* _spriteAnim -PlayerHUDHeart 0xc const char* _spriteOverlayAnim -PlayerHUDTrinket 0x0 int id -PlayerHUDTrinket 0x4 int slot -PlayerHUDTrinket 0x8 KAGE_Graphics_ImageBase* image -PlayerManager 0x0 vector_EntityPlayerPtr _playerList -PlayerManager 0xb8 RNG _rng -PocketItem 0x0 int _id -PocketItem 0x4 uint32_t _type -Point 0x0 Vector _pos -Point 0x8 float _width -Point 0xc float _spritesheetCoordinate -Point 0x10 ColorMod _color -Point 0x3c bool _worldSpace -PosVel 0x0 Vector pos -PosVel 0x8 Vector vel -ProceduralEffect_ConditionData_EntitySpawn 0x4 short variant -ProceduralEffect_ConditionData_EntitySpawn 0x6 short type -ProceduralEffect_ActionData_UseActiveItem 0x0 int collectibleId -ProceduralEffect_ActionData_AddTemproryEffect 0x0 int collectibleId -ProceduralEffect_ActionData_SpawnEntity 0x0 short variant -ProceduralEffect_ActionData_SpawnEntity 0x2 short type -ProceduralEffect_ActionData_ConvertEntities 0x0 short fromVariant -ProceduralEffect_ActionData_ConvertEntities 0x2 short fromType -ProceduralEffect_ActionData_ConvertEntities 0x4 short toVariant -ProceduralEffect_ActionData_ConvertEntities 0x6 short toType -ProceduralEffect_ActionData_AreaDamage 0x8 float radius -ProceduralEffect_ActionData_AreaDamage 0xc float damage -ProceduralEffect_ActionData_AreaDamage 0x10 long long flags1 -ProceduralEffect_ActionData_AreaDamage 0x18 long long flags2 -ProceduralEffect_ActionData_Fart 0x0 float fartScale -ProceduralEffect_ActionData_Fart 0xc float radius -ProceduralEffect_ActionData_Fart 0x0 int effectConditionType -ProceduralEffect_ActionData_Fart 0x4 int effectActionType -ProceduralEffect_ActionData_Fart 0x30 float triggerChanceScale -ProceduralEffect_ActionData_Fart 0x60 float score -ProceduralItem 0x0 ItemConfig_Item* item -ProceduralItem 0x4 int _id -ProceduralItem 0x10 ItemConfig_Item* targetItem -ProceduralItem 0x14 float damage -ProceduralItem 0x18 float firedelay -ProceduralItem 0x1c float speed -ProceduralItem 0x20 float range -ProceduralItem 0x24 float shotspeed -ProceduralItem 0x28 float luck -ProceduralItemManager 0x10 KAGE_SmartPointer_ImageBase _proceduralItemTexture ProjectileParams 0x0 bool GridCollision ProjectileParams 0x4 float HeightModifier ProjectileParams 0x8 float FallingSpeedModifier @@ -1708,93 +387,16 @@ ProjectileParams 0x88 float ChangeVelocity ProjectileParams 0x8c uint32_t ChangeTimeout ProjectileParams 0x90 float DepthOffset ProjectileParams 0x94 uint32_t Variant -ProjectileParams 0x9c float Damage QueueItemData 0x0 ItemConfig_Item* _item QueueItemData 0x4 int _charge -QueueItemData 0x8 unsigned int _flags -QueueItemData 0xc int _vardata -RNG 0x0 unsigned int _seed -RNG 0x4 unsigned int _shift1 -RNG 0x8 unsigned int _shift2 -RNG 0xc unsigned int _shift3 -RailManager 0x0 Room* _room -RailManager 0x1c4 ANM2 _sprite -RedirectedPath 0x0 uint32_t _primaryHash -RedirectedPath 0x4 uint32_t _secondaryHash -RedirectedPath 0x8 ModEntry* _modEntry -RedirectedPath 0xc std_string _filePath -KAGE_ReferenceCountBase 0x4 uint16_t strong -KAGE_ReferenceCountBase 0x6 uint16_t weak -KAGE_ReferenceCountBase 0x8 KAGE_System_Mutex mutex -KAGE_ReferenceCount_ImageBase base KAGE_ReferenceCountBase -KAGE_ReferenceCount_ImageBase 0x14 KAGE_Graphics_ImageBase* image -KAGE_ReferenceCount_EntitySaveState base KAGE_ReferenceCountBase -KAGE_ReferenceCount_EntitySaveState 0x14 EntitySaveState* _saveState -Room 0x4 RoomDescriptor* _descriptor -Room 0x8 uint32_t _roomType -Room 0xc uint32_t _gridWidth Room 0x10 uint32_t _gridHeight Room 0x11ec int _roomClearDelay Room 0x11f8 Camera* _Camera Room 0x1bb0 uint32_t _bossId -Room 0x1bc8 Backdrop _backdrop Room 0x1204 Vector _renderScrollOffset Room 0x120c bool _redHeartDamage Room 0x1218 EntityList _entityList Room 0x1618 FXLayers _fxLayers -Room 0x7070 deque_ShopRestockDesc _shopItemDeque -Room 0x7220 int _slowdownDuration -Room 0x723c int _greedWaveTimer -Room 0x7240 float _waterAmount -Room 0x7244 KColor _waterColor -Room 0x7258 KColor _waterColorMultiplier -Room 0x726c KColor _waterLerpTargetColor -Room 0x7280 KColor _waterLerpTargetColorMult -Room 0x7294 int _waterLerpColorDuration -Room 0x7298 int _waterLerpColorCountdown -Room 0x72a1 bool _pacifist -Room 0x72a4 ColorMod _floorColor -Room 0x72d0 ColorMod _wallColor -Room 0x7310 TemporaryEffects _temporaryEffects -Room 0x7454 int _numRainSpawners -Room 0x7458 float _rainIntensity -Room 0x7460 Vector _waterCurrent -Room 0x7468 RailManager _railManager -Room 0x7740 float _lavaIntensity -RoomConfig 0x1c54 vector_Curse _curses -RoomConfig 0x1c60 RoomConfig_Miniboss _miniboss -RoomConfig 0x1e20 RoomConfig_Room* _rooms -RoomConfig 0x1e24 unsigned int _roomCount -RoomConfig_Curse 0x0 unsigned int _idMaybe -RoomConfig_Curse 0x4 std_string _displayName -RoomConfig_Miniboss 0x0 unsigned int _idMaybe -RoomConfig_Miniboss 0x4 std_string _displayName -RoomConfig_Room 0x0 int32_t StageId -RoomConfig_Room 0x4 int32_t Mode -RoomConfig_Room 0x8 int32_t Type -RoomConfig_Room 0xc uint32_t Variant -RoomConfig_Room 0x10 int32_t Subtype -RoomConfig_Room 0x14 std_string Name -RoomConfig_Room 0x2c int32_t Difficulty -RoomConfig_Room 0x30 float InitialWeight -RoomConfig_Room 0x34 float Weight -RoomConfig_Room 0x38 uint32_t Doors -RoomConfig_Room 0x3c DoorsBitSet QuestDoors -RoomConfig_Room 0x40 RoomSpawn* Spawns -RoomConfig_Room 0x44 uint16_t SpawnCount -RoomConfig_Room 0x46 int8_t Width -RoomConfig_Room 0x47 int8_t Height -RoomConfig_Room 0x48 int32_t Shape -RoomConfig_Room 0x4c RoomConfigFlags Flags -RoomConfig_Room 0x58 uint32_t originalVariant -RoomConfig_Stage 0x0 unsigned int _id -RoomConfig_Stage 0x4 std_string _displayName -RoomConfig_Stage 0x1c std_string _playerSpot -RoomConfig_Stage 0x34 std_string _bossSpot -RoomConfig_Stage 0x4c std_string _suffix -RoomConfig_Stage 0xbc int _musicId -RoomConfig_Stage 0xc0 int _backdrop -RoomConfig_VariantSet 0x0 DisjointedSet* _set RoomDescriptor 0x0 int32_t GridIndex RoomDescriptor 0x4 int32_t SafeGridIndex RoomDescriptor 0x8 int32_t ListIndex @@ -1822,77 +424,7 @@ RoomDescriptor 0x88 vector_EntitySaveState SavedEffects RoomDescriptor 0xac int16_t ShopItemIdx RoomDescriptor 0xae int16_t ShopItemDiscountIdx RoomDescriptor 0xb0 int32_t DeliriumDistance -RoomDescriptor 0xb4 int32_t Group -RoomEntry 0x0 uint32_t type -RoomEntry 0x4 uint16_t variant -RoomEntry 0x6 uint16_t subtype -RoomEntry 0x8 float weight -RoomSet 0x0 std_string _filepath -RoomSet 0x18 RoomConfig_Room* _configs -RoomSet 0x1c unsigned int _count -RoomSet 0x20 std_map_uint_VariantSetPtr variantSetMap -RoomSet 0x28 bool _loaded -RoomSpawn 0x0 uint16_t X -RoomSpawn 0x2 uint16_t Y -RoomSpawn 0x4 RoomEntry* Entries -RoomSpawn 0x8 uint8_t CountEntries -RoomSpawn 0xc float SumWeights -RoomTransition 0x0 int _mode -RoomTransition 0x10 int _direction -RoomTransition 0x14 int _roomIndex -RoomTransition 0x18 int _roomDimension -RoomTransition 0x38 ANM2 _versusScreenANM2 -RoomTransition 0x224 std_map_int_ANM2 _extraLayerANM2s -RoomTransition 0x238 int _unkStartRoomTransitionCond -RunCallbackRegistry 0x0 lua_State* state -RunCallbackRegistry 0x4 int32_t key -ScoreSheet 0x0 int _stageBonus -ScoreSheet 0x4 int _schwagBonus -ScoreSheet 0x8 int _blueBabyBonus -ScoreSheet 0xc int _lambBonus -ScoreSheet 0x10 int _megaSatanBonus -ScoreSheet 0x14 int _motherBonus -ScoreSheet 0x18 int _deliriumBonus -ScoreSheet 0x1c int _beastBonus -ScoreSheet 0x20 int _rushBonus -ScoreSheet 0x24 int _explorationBonus -ScoreSheet 0x28 int _damagePenalty -ScoreSheet 0x2c int _timePenalty -ScoreSheet 0x30 int _itemPenalty -ScoreSheet 0x34 int _totalScore -ScoreSheet 0x38 int _runTimeLevel -ScoreSheet 0x3c int _runTimeLevelType -ScoreSheet 0x40 uint32_t _runTime -ScoreSheet 0x58 int _runEnding -Seeds 0x0 bool _isCustomRun -Seeds 0x4 unsigned int _gameStartSeed -Seeds 0x8 RNG _rng Seeds 0x50 unsigned int _playerInitSeed -Seeds 0x58 int _seedEffectsCount -KAGE_SmartPointer_ImageBase 0x0 KAGE_Graphics_ImageBase* image -KAGE_SmartPointer_ImageBase 0x4 KAGE_ReferenceCount_ImageBase* counter -KAGE_SmartPointer_EntitySaveState 0x0 EntitySaveState* saveState -KAGE_SmartPointer_EntitySaveState 0x4 KAGE_ReferenceCount_EntitySaveState* counter -SoundEffect 0x0 unsigned int _id -SoundEffect 0x198 bool _loaded -SoundEffect 0x199 bool _shouldPreload -SoundEffects 0x0 vector_SoundEffect _sounds -SoundEffects 0xc int _count -SoundEffects 0x10 float _volume -SourceQuad base DestinationQuad -SourceQuad 0x20 int _coordinateSpace -StageTransition 0x10 bool _sameStage -StaticArray 0x0 void* data -StaticArray 0x4 uint16_t size -SteamCloudFile base KAGE_Filesys_FileStream -SteamCloudFile 0xc const char* _steamCloudFilename -SteamCloudFile 0x10 char* _buffer -SteamCloudFile 0x14 uint32_t _bufferSize -SteamCloudFile 0x18 uint32_t _position -SteamCloudFile 0x1c uint32_t _size -SteamCloudFile 0x20 bool _unk -SteamCloudFile 0x21 bool _isEof -StringTable 0x0 uint32_t language TearParams 0x0 int _tearVariant TearParams 0x4 int _bombVariant TearParams 0x8 ColorMod _tearColor @@ -1901,45 +433,7 @@ TearParams 0x38 BitSet128 _flags TearParams 0x48 float _tearDamage TearParams 0x4c float _tearScale TearParams 0x50 float _tearHeight -TearParams 0x54 float _massMultiplier -TearParams 0x58 float _knockbackMultiplier -TearParams 0x5c float _speedMultiplier -TearParams 0x60 int _tearDisplacement -TemporaryEffect 0x0 ItemConfig_Item *_item TemporaryEffect 0x4 int _count TemporaryEffect 0x8 int _cooldown -TemporaryEffects 0x4 vector_TemporaryEffect _effects -TemporaryEffects 0x10 bool _shouldEvaluateCache -TemporaryEffects 0x11 bool _disabled -TemporaryEffects 0x14 Entity_Player* _player Vector 0x0 float x Vector 0x4 float y -WaterClipInfo 0x0 unsigned int bitFlags -WaterClipInfo 0x4 float unkFloat -Weapon 0x4 Entity* _owner -Weapon 0xc float _fireDelay -Weapon 0x10 float _maxFireDelay -Weapon 0x14 float _charge -Weapon 0x20 Vector _direction -Weapon 0x30 int _weaponType -Weapon 0x34 uint32_t _modifiers -Weapon 0x38 int _numFired -Weapon_MultiShotParams 0x0 int16_t numTears -Weapon_MultiShotParams 0x2 int16_t numLanesPerEye -Weapon_MultiShotParams 0x4 float spreadAngleTears -Weapon_MultiShotParams 0x8 float spreadAngleLaser -Weapon_MultiShotParams 0xc float speadAngleTechX -Weapon_MultiShotParams 0x10 float spreadAngleKnife -Weapon_MultiShotParams 0x14 int numEyesActive -Weapon_MultiShotParams 0x18 float multiEyeAngle -Weapon_MultiShotParams 0x1c bool isCrossEyed -Weapon_MultiShotParams 0x1d bool isShootingBackwards -Weapon_MultiShotParams 0x1e bool isShootingSideways -Weapon_MultiShotParams 0x20 int16_t numRandomDirTears -Weapon_Brimstone base Weapon -Weapon_MonstrosLung base Weapon -WeightedOutcomePicker 0x0 vector_Outcome _outcomes -WeightedOutcomePicker_Outcome 0x0 uint32_t _value -WeightedOutcomePicker_Outcome 0x4 uint32_t _weight -XY 0x0 int x -XY 0x4 int y