db/fields: 89 Lua field properties typed from their binders (Friction, Tear stick, Player TearFlags/QueuedItem, grid entities...)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-24 23:15:27 -04:00
1 parent 8aa6c6fc68
commit 58eeb7991f
2 files changed
+367 -50

No files matched your search

+277 -50
View File
@@ -110,6 +110,13 @@ static_assert(offsetof(ActiveItemDesc, _timeRechargeCooldown) == 0x14);
static_assert(offsetof(ActiveItemDesc, _partialCharge) == 0x18);
static_assert(offsetof(ActiveItemDesc, _varData) == 0x1c);
struct BitSet128 {
uint64_t _l; // Lua BitSet128.l via binder 008774f0: getter 008bc3c0 pushes two dwords via FUN_0085c030 (64-bit pushinteger), setter stores 64-bit checkinteger
uint64_t _h; // Lua BitSet128.h via binder 008774f0: getter 008bc3c0 pushes two dwords via FUN_0085c030 (64-bit pushinteger), setter stores 64-bit checkinteger
};
static_assert(offsetof(BitSet128, _l) == 0x0);
static_assert(offsetof(BitSet128, _h) == 0x8);
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
@@ -196,7 +203,8 @@ struct Entity {
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -278,6 +286,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity, _size) == 0x370);
static_assert(offsetof(Entity, _health) == 0x380);
static_assert(offsetof(Entity, _collisionDamage) == 0x388);
@@ -475,6 +484,22 @@ static_assert(offsetof(EntityConfig_Player, _moddedGameOverANM2) == 0x13c);
static_assert(offsetof(EntityConfig_Player, _moddedCoopMenuANM2) == 0x140);
static_assert(offsetof(EntityConfig_Player, _moddedControlsANM2) == 0x144);
struct EntityRef {
int _type; // Lua EntityRef.Type via binder 00875c50: getter 008bb900 pushes dword via FUN_0085bfd0 (signed pushinteger), setter 008bb960 luaL_checkinteger dword
uint32_t _variant; // Lua EntityRef.Variant via binder 00875dd0: getter 008bb9c0 pushes dword via FUN_0085bff0 (pushinteger, high=0 unsigned), setter 008bb960 dword
int _spawnerType; // Lua EntityRef.SpawnerType via binder 00875f40: getter 008bba20 lua_pushinteger(*(int*), sign-extended; separate instance from Type, likely an enum), setter dword
uint32_t _spawnerVariant; // Lua EntityRef.SpawnerVariant via binder 00875dd0: getter 008bb9c0 pushes dword via FUN_0085bff0 (pushinteger, high=0 unsigned), setter 008bb960 dword
Vector _position; // Lua EntityRef.Position via binder 008760c0: getter 008bba80 copies 8 bytes into UserdataValue<KAGE::Math::Vector2>
uint8_t _pad_0x18[0xc];
uint32_t _entity; // Entity* // Lua EntityRef.Entity via binder 008763b0: getter 008bbbc0 UserdataPtr with Entity class key c8297a (nil if 0), setter stores pointer
};
static_assert(offsetof(EntityRef, _type) == 0x0);
static_assert(offsetof(EntityRef, _variant) == 0x4);
static_assert(offsetof(EntityRef, _spawnerType) == 0x8);
static_assert(offsetof(EntityRef, _spawnerVariant) == 0xc);
static_assert(offsetof(EntityRef, _position) == 0x10);
static_assert(offsetof(EntityRef, _entity) == 0x24);
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
@@ -555,7 +580,8 @@ struct Entity_Bomb { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -588,7 +614,7 @@ struct Entity_Bomb { // : Entity (flattened)
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
BitSet128 _tearFlags; // (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
@@ -658,6 +684,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Bomb, _size) == 0x370);
static_assert(offsetof(Entity_Bomb, _health) == 0x380);
static_assert(offsetof(Entity_Bomb, _collisionDamage) == 0x388);
@@ -768,7 +795,8 @@ struct Entity_Effect { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -790,13 +818,21 @@ struct Entity_Effect { // : Entity (flattened)
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)
uint8_t _pad_0x40c[0x4];
float _height; // Lua EntityEffect.m_Height via binder 00885330: getter 008bee70 pushnumber, setter 008beed0 checknumber -> float
uint8_t _pad_0x414[0xc];
BitSet128 _varData; // Entity_Effect::CreateTimer 0060af00 stores the timer callback/delay/times in effect(1000.119)+0x420/+0x424/+0x428 (per-variant scratch data)
uint8_t _pad_0x430[0x20];
int _state;
uint8_t _pad_0x454[0x8];
float _minRadius; // Lua EntityEffect.MinRadius via binder 00885330: getter 008bee70 pushnumber, setter 008beed0 checknumber -> float
float _maxRadius; // Lua EntityEffect.MaxRadius via binder 00885330: getter 008bee70 pushnumber, setter 008beed0 checknumber -> float
int _timeout;
int _lifespan;
uint8_t _pad_0x464[0x44];
bool _isFollowing; // Lua EntityEffect.IsFollowing via binder 00885610: getter 008bf000 pushboolean(byte), setter toboolean -> bool
uint8_t _pad_0x465[0x3];
Vector _parentOffset; // Lua EntityEffect.ParentOffset via binder 00885790: getter 008bf0d0 UserdataValue<Vector2> 8-byte copy
int _damageSource; // Lua EntityEffect.DamageSource via binder 008854a0: getter 008bef40 FUN_0085bfd0 signed dword, setter dword
uint8_t _pad_0x474[0x34];
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);
@@ -858,6 +894,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Effect, _size) == 0x370);
static_assert(offsetof(Entity_Effect, _health) == 0x380);
static_assert(offsetof(Entity_Effect, _collisionDamage) == 0x388);
@@ -873,10 +910,16 @@ 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, _height) == 0x410);
static_assert(offsetof(Entity_Effect, _varData) == 0x420);
static_assert(offsetof(Entity_Effect, _state) == 0x450);
static_assert(offsetof(Entity_Effect, _minRadius) == 0x454);
static_assert(offsetof(Entity_Effect, _maxRadius) == 0x458);
static_assert(offsetof(Entity_Effect, _timeout) == 0x45c);
static_assert(offsetof(Entity_Effect, _lifespan) == 0x460);
static_assert(offsetof(Entity_Effect, _isFollowing) == 0x464);
static_assert(offsetof(Entity_Effect, _parentOffset) == 0x468);
static_assert(offsetof(Entity_Effect, _damageSource) == 0x470);
static_assert(offsetof(Entity_Effect, _hitList) == 0x4a8);
struct Entity_Familiar { // : Entity (flattened)
@@ -959,7 +1002,8 @@ struct Entity_Familiar { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -985,7 +1029,16 @@ struct Entity_Familiar { // : Entity (flattened)
uint32_t _player; // Entity_Player*
uint8_t _pad_0x414[0x1e4];
int _moveDelayNum;
uint8_t _pathfinder[0x778]; // NPCAI_Pathfinder
uint8_t _pathfinder[0x750]; // NPCAI_Pathfinder
int _fireCooldown; // Lua EntityFamiliar.FireCooldown via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
int _headFrameDelay; // Lua EntityFamiliar.HeadFrameDelay via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
int _moveDirection; // Lua EntityFamiliar.MoveDirection via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
int _shootDirection; // Lua EntityFamiliar.ShootDirection via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
int _lastDirection; // Lua EntityFamiliar.LastDirection via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
float _orbitAngleOffset; // Lua EntityFamiliar.OrbitAngleOffset via binder 008860f0: getter 008bf2d0 pushnumber, setter checknumber -> float
Vector _orbitDistance; // Lua EntityFamiliar.OrbitDistance via binder 00886260: getter 008bf3a0 UserdataValue<Vector2> 8-byte copy
float _orbitSpeed; // Lua EntityFamiliar.OrbitSpeed via binder 008860f0: getter 008bf2d0 pushnumber, setter checknumber -> float
int _orbitLayer; // Lua EntityFamiliar.OrbitLayer via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
bool _isFollower;
bool _isDelayed;
uint8_t _pad_0xd76[0x6];
@@ -993,7 +1046,8 @@ struct Entity_Familiar { // : Entity (flattened)
int _hearts;
int _keys;
int _state;
uint8_t _pad_0xd8c[0x20];
int _roomClearCount; // Lua EntityFamiliar.RoomClearCount via binder 00885f80: getter 008bf210 FUN_0085bfd0 signed dword, setter dword
uint8_t _pad_0xd90[0x1c];
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
@@ -1064,6 +1118,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Familiar, _size) == 0x370);
static_assert(offsetof(Entity_Familiar, _health) == 0x380);
static_assert(offsetof(Entity_Familiar, _collisionDamage) == 0x388);
@@ -1082,12 +1137,22 @@ 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, _fireCooldown) == 0xd4c);
static_assert(offsetof(Entity_Familiar, _headFrameDelay) == 0xd50);
static_assert(offsetof(Entity_Familiar, _moveDirection) == 0xd54);
static_assert(offsetof(Entity_Familiar, _shootDirection) == 0xd58);
static_assert(offsetof(Entity_Familiar, _lastDirection) == 0xd5c);
static_assert(offsetof(Entity_Familiar, _orbitAngleOffset) == 0xd60);
static_assert(offsetof(Entity_Familiar, _orbitDistance) == 0xd64);
static_assert(offsetof(Entity_Familiar, _orbitSpeed) == 0xd6c);
static_assert(offsetof(Entity_Familiar, _orbitLayer) == 0xd70);
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, _roomClearCount) == 0xd8c);
static_assert(offsetof(Entity_Familiar, _hitList) == 0xdac);
static_assert(offsetof(Entity_Familiar, _weapon) == 0xdc4);
static_assert(offsetof(Entity_Familiar, _isLilDelirium) == 0xdc8);
@@ -1176,7 +1241,8 @@ struct Entity_Knife { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -1199,10 +1265,17 @@ struct Entity_Knife { // : Entity (flattened)
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
BitSet128 _tearFlags; // Lua EntityKnife.TearFlags getter 0085de90 copies 16 bytes from this+0x410
uint8_t _pad_0x420[0x10];
float _scale; // Lua EntityKnife.Scale via binder 00889f70: getter 008c04f0 pushnumber, setter checknumber -> float
uint8_t _pad_0x434[0x8];
float _rotationOffset; // Lua EntityKnife.RotationOffset via binder 00889f70: getter 008c04f0 pushnumber, setter checknumber -> float
uint8_t _pad_0x440[0x4];
float _knifeDistance; // Lua EntityKnife.GetKnifeDistance 0085deb0 returns this+0x444
float _knifeVelocity; // Lua EntityKnife.GetKnifeVelocity 004d77a0 returns this+0x448
uint8_t _pad_0x44c[0x18];
uint8_t _pad_0x44c[0x10];
float _maxDistance; // Lua EntityKnife.MaxDistance via binder 00889f70: getter 008c04f0 pushnumber, setter checknumber -> float
float _charge; // Lua EntityKnife.Charge via binder 00889f70: getter 008c04f0 pushnumber, setter checknumber -> float
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];
@@ -1273,6 +1346,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Knife, _size) == 0x370);
static_assert(offsetof(Entity_Knife, _health) == 0x380);
static_assert(offsetof(Entity_Knife, _collisionDamage) == 0x388);
@@ -1289,8 +1363,12 @@ 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, _scale) == 0x430);
static_assert(offsetof(Entity_Knife, _rotationOffset) == 0x43c);
static_assert(offsetof(Entity_Knife, _knifeDistance) == 0x444);
static_assert(offsetof(Entity_Knife, _knifeVelocity) == 0x448);
static_assert(offsetof(Entity_Knife, _maxDistance) == 0x45c);
static_assert(offsetof(Entity_Knife, _charge) == 0x460);
static_assert(offsetof(Entity_Knife, _isFlying) == 0x464);
static_assert(offsetof(Entity_Knife, _isSwinging) == 0x465);
static_assert(offsetof(Entity_Knife, _pathOffset) == 0x4c4);
@@ -1379,7 +1457,8 @@ struct Entity_Laser { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -1401,25 +1480,44 @@ struct Entity_Laser { // : Entity (flattened)
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
uint8_t _pad_0x40c[0x4];
Vector _parentOffset; // Lua EntityLaser.ParentOffset via binder 00888a70: getter 008bfac0 UserdataValue<Vector2> 8-byte copy
float _startAngleDegrees; // Lua EntityLaser.StartAngleDegrees via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
float _angleDegrees; // Lua EntityLaser.AngleDegrees via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
float _lastAngleDegrees; // Lua EntityLaser.LastAngleDegrees via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
uint8_t _pad_0x424[0x4];
BitSet128 _tearFlags;
uint8_t _pad_0x438[0x20];
int _timeout;
uint8_t _pad_0x45c[0x1];
bool _isFirstUpdate; // Lua EntityLaser.FirstUpdate via binder 00889050: getter 008bfeb0 pushboolean(byte), setter toboolean -> bool
bool _sampleLaser;
bool _shrink;
uint8_t _pad_0x45f[0x5];
uint8_t _homingLaser[0x6c]; // HomingLaser
uint8_t _pad_0x45f[0x1];
float _laserLength; // Lua EntityLaser.LaserLength via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
uint8_t _homingLaser[0x54]; // HomingLaser
float _curveStrength; // Lua EntityLaser.CurveStrength via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
float _radius; // Lua EntityLaser.Radius via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
bool _isActiveRotating; // Lua EntityLaser.IsActiveRotating via binder 00889050: getter 008bfeb0 pushboolean(byte), setter toboolean -> bool
uint8_t _pad_0x4c1[0x3];
uint32_t _rotationDelay; // Lua EntityLaser.RotationDelay via binder 008894c0: getter 008c0230 dword via FUN_0085bff0 (unsigned pushinteger), setter dword
float _rotationDegrees; // Lua EntityLaser.RotationDegrees via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
float _rotationSpd; // Lua EntityLaser.RotationSpd via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
float _maxDistance;
uint32_t _homingType;
Vector _endPoint;
float _scale;
bool _disableFollowParent;
uint8_t _pad_0x4e5[0x1b];
uint8_t _pad_0x4e5[0x3];
uint32_t _bounceLaser; // Entity* // Lua EntityLaser.BounceLaser via binder 008897c0: getter 008c03c0 UserdataPtr Entity key c8297a, setter stores pointer
uint8_t _pad_0x4ec[0x8];
float _blackHpDropChance; // Lua EntityLaser.BlackHpDropChance via binder 00888be0: getter 008bfc00 pushnumber, setter 008bfc60 checknumber -> float
uint8_t _pad_0x4f8[0x8];
bool _multidimensionalTouched;
uint8_t _pad_0x501[0x13];
bool _prismTouched;
bool _oneHit;
uint8_t _pad_0x516[0x2];
bool _isGridHit; // Lua EntityLaser.GridHit via binder 00889050: getter 008bfeb0 pushboolean(byte), setter toboolean -> bool
uint8_t _pad_0x517[0x1];
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
@@ -1485,6 +1583,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Laser, _size) == 0x370);
static_assert(offsetof(Entity_Laser, _health) == 0x380);
static_assert(offsetof(Entity_Laser, _collisionDamage) == 0x388);
@@ -1500,19 +1599,34 @@ 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, _parentOffset) == 0x410);
static_assert(offsetof(Entity_Laser, _startAngleDegrees) == 0x418);
static_assert(offsetof(Entity_Laser, _angleDegrees) == 0x41c);
static_assert(offsetof(Entity_Laser, _lastAngleDegrees) == 0x420);
static_assert(offsetof(Entity_Laser, _tearFlags) == 0x428);
static_assert(offsetof(Entity_Laser, _timeout) == 0x458);
static_assert(offsetof(Entity_Laser, _isFirstUpdate) == 0x45c);
static_assert(offsetof(Entity_Laser, _sampleLaser) == 0x45d);
static_assert(offsetof(Entity_Laser, _shrink) == 0x45e);
static_assert(offsetof(Entity_Laser, _laserLength) == 0x460);
static_assert(offsetof(Entity_Laser, _homingLaser) == 0x464);
static_assert(offsetof(Entity_Laser, _curveStrength) == 0x4b8);
static_assert(offsetof(Entity_Laser, _radius) == 0x4bc);
static_assert(offsetof(Entity_Laser, _isActiveRotating) == 0x4c0);
static_assert(offsetof(Entity_Laser, _rotationDelay) == 0x4c4);
static_assert(offsetof(Entity_Laser, _rotationDegrees) == 0x4c8);
static_assert(offsetof(Entity_Laser, _rotationSpd) == 0x4cc);
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, _bounceLaser) == 0x4e8);
static_assert(offsetof(Entity_Laser, _blackHpDropChance) == 0x4f4);
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, _isGridHit) == 0x516);
static_assert(offsetof(Entity_Laser, _disableInitSound) == 0x518);
static_assert(offsetof(Entity_Laser, _damageMultiplier) == 0x51c);
static_assert(offsetof(Entity_Laser, _hitList) == 0x520);
@@ -1598,7 +1712,8 @@ struct Entity_NPC { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -1653,7 +1768,8 @@ struct Entity_NPC { // : Entity (flattened)
uint16_t _championRegenTimer;
uint8_t _pad_0xc76[0x2];
int _bosscoloridx;
uint8_t _pad_0xc7c[0x30];
int _groupIdx; // Lua EntityNPC.GroupIdx via binder 008877e0: getter 008bf5b0 FUN_0085bfd0 signed dword, setter dword
uint8_t _pad_0xc80[0x2c];
ColorMod _dirtColor; // Entity_NPC::UpdateDirtColor 006c04b0 writes Room::GetFloorColorAt*2 to this+0xcac..0xcb4 and lerps sprite layers toward it
uint8_t _pad_0xcd8[0x114];
ANM2 _chargeBarSprite; // gfx/chargebar.anm2 loaded by Entity_NPC::UpdateChargeBar (006d8e40)
@@ -1725,6 +1841,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_NPC, _size) == 0x370);
static_assert(offsetof(Entity_NPC, _health) == 0x380);
static_assert(offsetof(Entity_NPC, _collisionDamage) == 0x388);
@@ -1763,6 +1880,7 @@ 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, _groupIdx) == 0xc7c);
static_assert(offsetof(Entity_NPC, _dirtColor) == 0xcac);
static_assert(offsetof(Entity_NPC, _chargeBarSprite) == 0xdec);
static_assert(offsetof(Entity_NPC, _hitList) == 0xf00);
@@ -1852,7 +1970,8 @@ struct Entity_Pickup { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -1890,7 +2009,9 @@ struct Entity_Pickup { // : Entity (flattened)
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];
uint8_t _pad_0x558[0x2c];
uint32_t _state; // Lua EntityPickup.State via binder 00884ea0: getter 008bedb0 dword via FUN_0085bff0 (unsigned pushinteger), setter dword
uint8_t _pad_0x588[0x8];
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
@@ -1959,6 +2080,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Pickup, _size) == 0x370);
static_assert(offsetof(Entity_Pickup, _health) == 0x380);
static_assert(offsetof(Entity_Pickup, _collisionDamage) == 0x388);
@@ -1985,6 +2107,7 @@ 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, _state) == 0x584);
static_assert(offsetof(Entity_Pickup, _pickupGhost) == 0x590);
static_assert(offsetof(Entity_Pickup, _megaChestCollectible) == 0x594);
static_assert(offsetof(Entity_Pickup, _varData) == 0x59c);
@@ -2007,6 +2130,13 @@ static_assert(offsetof(TemporaryEffects, _shouldEvaluateCache) == 0x10);
static_assert(offsetof(TemporaryEffects, _disabled) == 0x11);
static_assert(offsetof(TemporaryEffects, _player) == 0x14);
struct QueueItemData {
uint32_t _item; // ItemConfig_Item*
int _charge;
};
static_assert(offsetof(QueueItemData, _item) == 0x0);
static_assert(offsetof(QueueItemData, _charge) == 0x4);
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
@@ -2087,7 +2217,8 @@ struct Entity_Player { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -2164,7 +2295,9 @@ struct Entity_Player { // : Entity (flattened)
float _tearfallspeed;
float _tearfallaccel;
float _tearrange;
uint8_t _pad_0x1484[0x40];
uint8_t _pad_0x1484[0x4];
BitSet128 _tearFlags; // Lua EntityPlayer.TearFlags via binder 00883ab0: getter 008be780 UserdataValue<bitset128_t> 16-byte copy
ColorMod _tearColor; // Lua EntityPlayer.TearColor via binder 00883c30: getter 008be8a0 -> 008ab7d0 UserdataValue<ColorMod>, setter 008be900 copies 0x2c bytes
ColorMod _laserColor;
uint8_t _pad_0x14f0[0x18];
TemporaryEffects _temporaryeffects;
@@ -2223,13 +2356,15 @@ struct Entity_Player { // : Entity (flattened)
uint8_t _voidedCollectibles[0x4c]; // std_vector_int; VoidHasCollectible 007711a0: when an active slot holds 477 Void, scans begin 0x1754 / end 0x1758 for the id (shift +0x10)
int _pocketSlots[8]; // AddPocketItem/RemovePocketItem/GetMaxPocketItems: 4 (id, type) pairs, type 0 pill 1 card 2 pocket active
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];
QueueItemData _queuedItem; // Lua EntityPlayer.QueuedItem via binder 008840c0: getter 008bebc0 UserdataValue<Entity_Player::QueueItemData> 0x14-byte copy
uint8_t _pad_0x17cc[0x58];
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];
ColorMod _footprintColor1;
ColorMod _footprintColor2;
uint8_t _pad_0x1880[0x8];
uint8_t _pad_0x1880[0x4];
int _itemHoldCooldown; // Lua EntityPlayer.ItemHoldCooldown via binder 00884240: getter 008becf0 FUN_0085bfd0 signed dword, setter checkinteger dword
int _ponyCharge;
int _planCKillCountdown;
uint8_t _pad_0x1890[0x4];
@@ -2335,7 +2470,10 @@ struct Entity_Player { // : Entity (flattened)
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];
uint8_t _pad_0x2098[0x4];
int _samsonBerserkCharge; // Lua EntityPlayer.SamsonBerserkCharge via binder 00884240: getter 008becf0 FUN_0085bfd0 signed dword, setter checkinteger dword
float _ibsCharge; // Lua EntityPlayer.IBSCharge via binder 00883940: getter 008be6b0 FUN_0085c050 pushnumber, setter checknumber -> float
uint8_t _pad_0x20a4[0x5];
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)
@@ -2404,6 +2542,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Player, _size) == 0x370);
static_assert(offsetof(Entity_Player, _health) == 0x380);
static_assert(offsetof(Entity_Player, _collisionDamage) == 0x388);
@@ -2461,6 +2600,8 @@ 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, _tearFlags) == 0x1488);
static_assert(offsetof(Entity_Player, _tearColor) == 0x1498);
static_assert(offsetof(Entity_Player, _laserColor) == 0x14c4);
static_assert(offsetof(Entity_Player, _temporaryeffects) == 0x1508);
static_assert(offsetof(Entity_Player, _speedModifier) == 0x1520);
@@ -2507,10 +2648,12 @@ static_assert(offsetof(Entity_Player, _smeltedTrinkets) == 0x1748);
static_assert(offsetof(Entity_Player, _voidedCollectibles) == 0x1754);
static_assert(offsetof(Entity_Player, _pocketSlots) == 0x17a0);
static_assert(offsetof(Entity_Player, _actionHoldDrop) == 0x17c0);
static_assert(offsetof(Entity_Player, _queuedItem) == 0x17c4);
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, _itemHoldCooldown) == 0x1884);
static_assert(offsetof(Entity_Player, _ponyCharge) == 0x1888);
static_assert(offsetof(Entity_Player, _planCKillCountdown) == 0x188c);
static_assert(offsetof(Entity_Player, _headColor) == 0x1894);
@@ -2589,6 +2732,8 @@ 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, _samsonBerserkCharge) == 0x209c);
static_assert(offsetof(Entity_Player, _ibsCharge) == 0x20a0);
static_assert(offsetof(Entity_Player, _isCoopGhost) == 0x20a9);
static_assert(offsetof(Entity_Player, _playerHUD) == 0x20d4);
static_assert(offsetof(Entity_Player, _hasUnlistedRestoreState) == 0x20e8);
@@ -2675,7 +2820,8 @@ struct Entity_Projectile { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -2772,6 +2918,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Projectile, _size) == 0x370);
static_assert(offsetof(Entity_Projectile, _health) == 0x380);
static_assert(offsetof(Entity_Projectile, _collisionDamage) == 0x388);
@@ -2877,7 +3024,8 @@ struct Entity_Slot { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -2959,6 +3107,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Slot, _size) == 0x370);
static_assert(offsetof(Entity_Slot, _health) == 0x380);
static_assert(offsetof(Entity_Slot, _collisionDamage) == 0x388);
@@ -3055,7 +3204,8 @@ struct Entity_Tear { // : Entity (flattened)
uint8_t _pad_0x358[0x4];
int _sortingLayer;
Vector _velocity;
uint8_t _pad_0x368[0x8];
uint8_t _pad_0x368[0x4];
float _friction; // Lua Entity.Friction via binder 0087d5d0: getter 008be110 FUN_0085c050 (lua_pushnumber), setter 008be170 luaL_checknumber -> *(float*)
float _size;
uint8_t _pad_0x374[0xc];
float _health;
@@ -3084,7 +3234,7 @@ struct Entity_Tear { // : Entity (flattened)
float _homingFriction;
float _fScale;
float _baseScale;
uint8_t _tearFlags[0x10]; // BitSet128
BitSet128 _tearFlags;
int _waitFrames;
Vector _continueVelocity;
uint8_t _hitList[0xc]; // std_vector_uint
@@ -3096,13 +3246,19 @@ struct Entity_Tear { // : Entity (flattened)
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];
uint8_t _pad_0x46a[0xe];
uint32_t _stickTarget; // Entity* // Lua EntityTear.StickTarget via binder 00880880: getter 008be4b0 UserdataPtr Entity key c8297a, setter stores pointer
Vector _stickDiff; // Lua EntityTear.StickDiff via binder 00880710: getter 008be370 UserdataValue<Vector2> 8-byte copy
int _stickTimer; // Lua EntityTear.StickTimer via binder 008805a0: getter 008be2b0 FUN_0085bfd0 signed dword, setter checkinteger dword
uint8_t _pad_0x488[0x24];
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];
bool _canTriggerStreakEnd; // Lua EntityTear.CanTriggerStreakEnd via binder 00880a00: getter 008be5e0 lua_pushboolean(byte), setter 008be640 lua_toboolean -> bool
uint8_t _pad_0x7e9[0x3];
Vector _posDisplacement;
uint8_t _pad_0x7f4[0x2c];
Vector _parentOffset; // Lua EntityTear.ParentOffset via binder 00880710: getter 008be370 UserdataValue<Vector2> 8-byte copy
uint8_t _pad_0x7fc[0x24];
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);
@@ -3164,6 +3320,7 @@ 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, _friction) == 0x36c);
static_assert(offsetof(Entity_Tear, _size) == 0x370);
static_assert(offsetof(Entity_Tear, _health) == 0x380);
static_assert(offsetof(Entity_Tear, _collisionDamage) == 0x388);
@@ -3197,10 +3354,15 @@ 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, _stickTarget) == 0x478);
static_assert(offsetof(Entity_Tear, _stickDiff) == 0x47c);
static_assert(offsetof(Entity_Tear, _stickTimer) == 0x484);
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, _canTriggerStreakEnd) == 0x7e8);
static_assert(offsetof(Entity_Tear, _posDisplacement) == 0x7ec);
static_assert(offsetof(Entity_Tear, _parentOffset) == 0x7f4);
static_assert(offsetof(Entity_Tear, _tearRange) == 0x820);
struct Font {
@@ -3439,7 +3601,7 @@ struct Game {
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 _timeCounter; // Lua Game.TimeCounter via binder 008952b0: getter 008c2850 FUN_0085bfd0 signed dword, setter dword
int _bossRushParTime;
int _blueWombParTime;
uint8_t _pad_0x26508[0x4];
@@ -3535,6 +3697,7 @@ 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, _timeCounter) == 0x264fc);
static_assert(offsetof(Game, _bossRushParTime) == 0x26500);
static_assert(offsetof(Game, _blueWombParTime) == 0x26504);
static_assert(offsetof(Game, _screenShakeOffset) == 0x2650c);
@@ -3651,16 +3814,22 @@ struct GridEntity_Door { // : GridEntity (flattened)
Vector _spriteOffset;
uint8_t _pad_0xdc[0x7c];
int _slot;
uint8_t _pad_0x15c[0x8];
int _currentRoomType; // Lua GridEntityDoor.CurrentRoomType via binder 0088bb60: getter 008c09b0 FUN_0085bfd0 signed dword, setter dword
int _targetRoomType; // Lua GridEntityDoor.TargetRoomType via binder 0088bb60: getter 008c09b0 FUN_0085bfd0 signed dword, setter dword
int _direction;
uint8_t _pad_0x168[0x114];
ANM2 _extraSprite;
uint8_t _pad_0x390[0x1];
bool _isExtraVisible; // Lua GridEntityDoor.ExtraVisible via binder 0088be50: getter 008c0c10 pushboolean(byte), setter toboolean -> bool
bool _isBusted;
uint8_t _pad_0x392[0x2];
int _targetRoomIdx;
uint32_t _previousState;
uint32_t _previousVariant;
uint8_t _pad_0x3a0[0x4];
uint8_t _openAnimation[0x18]; // std_string; Lua GridEntityDoor.OpenAnimation via binder 0088c2d0: getter 008c0f40 lua_pushlstring of MSVC std::string (SSO cap>0xf), setter std::string::assign
uint8_t _closeAnimation[0x18]; // std_string; Lua GridEntityDoor.CloseAnimation via binder 0088c2d0: getter 008c0f40 lua_pushlstring of MSVC std::string (SSO cap>0xf), setter std::string::assign
uint8_t _lockedAnimation[0x18]; // std_string; Lua GridEntityDoor.LockedAnimation via binder 0088c2d0: getter 008c0f40 lua_pushlstring of MSVC std::string (SSO cap>0xf), setter std::string::assign
uint8_t _openLockedAnimation[0x4]; // std_string; Lua GridEntityDoor.OpenLockedAnimation via binder 0088c2d0: getter 008c0f40 lua_pushlstring of MSVC std::string (SSO cap>0xf), setter std::string::assign
};
static_assert(offsetof(GridEntity_Door, _desc) == 0x4);
static_assert(offsetof(GridEntity_Door, _varData) == 0x18);
@@ -3671,12 +3840,19 @@ 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, _currentRoomType) == 0x15c);
static_assert(offsetof(GridEntity_Door, _targetRoomType) == 0x160);
static_assert(offsetof(GridEntity_Door, _direction) == 0x164);
static_assert(offsetof(GridEntity_Door, _extraSprite) == 0x27c);
static_assert(offsetof(GridEntity_Door, _isExtraVisible) == 0x390);
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);
static_assert(offsetof(GridEntity_Door, _openAnimation) == 0x3a4);
static_assert(offsetof(GridEntity_Door, _closeAnimation) == 0x3bc);
static_assert(offsetof(GridEntity_Door, _lockedAnimation) == 0x3d4);
static_assert(offsetof(GridEntity_Door, _openLockedAnimation) == 0x3ec);
struct GridEntity_Fire { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3745,6 +3921,7 @@ struct GridEntity_Pit { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
bool _hasLadder; // Lua GridEntityPit.HasLadder via binder 0088ca80: getter 008c13d0 pushboolean(byte), setter toboolean -> bool
};
static_assert(offsetof(GridEntity_Pit, _desc) == 0x4);
static_assert(offsetof(GridEntity_Pit, _varData) == 0x18);
@@ -3753,6 +3930,7 @@ 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);
static_assert(offsetof(GridEntity_Pit, _hasLadder) == 0x154);
struct GridEntity_Poop { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3764,6 +3942,9 @@ struct GridEntity_Poop { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
int _reviveTimer; // Lua GridEntityPoop.ReviveTimer via binder 0088c4c0: getter 008c10c0 FUN_0085bfd0 signed dword, setter dword
uint8_t _stateAnimation[0x18]; // std_string; Lua GridEntityPoop.StateAnimation via binder 0088c640: getter 008c1180 pushlstring of std::string, setter assign
bool _isUnderPlayer; // Lua GridEntityPoop.UnderPlayer via binder 0088c7c0: getter 008c1300 pushboolean(byte), setter toboolean -> bool
};
static_assert(offsetof(GridEntity_Poop, _desc) == 0x4);
static_assert(offsetof(GridEntity_Poop, _varData) == 0x18);
@@ -3772,6 +3953,9 @@ 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);
static_assert(offsetof(GridEntity_Poop, _reviveTimer) == 0x154);
static_assert(offsetof(GridEntity_Poop, _stateAnimation) == 0x158);
static_assert(offsetof(GridEntity_Poop, _isUnderPlayer) == 0x170);
struct GridEntity_PressurePlate { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3783,6 +3967,9 @@ struct GridEntity_PressurePlate { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
ANM2 _timerPlate; // Lua GridEntityPressurePlate.TimerPlate via binder 0088d350: getter 008c17a0 UserdataValue<ANM2> copy-constructs ANM2, setter ANM2 copy+SwapANM2
uint32_t _nextGreedAnimation; // char* // Lua GridEntityPressurePlate.NextGreedAnimation via binder 0088d4d0: getter 008c1940 lua_pushstring(ptr) or nil, setter stores luaL_checklstring pointer
uint8_t _greedModeRNG[0x4]; // RNG; Lua GridEntityPressurePlate.GreedModeRNG via binder 0088d650: getter 008c1a50 UserdataValue<RNG> 16-byte copy
};
static_assert(offsetof(GridEntity_PressurePlate, _desc) == 0x4);
static_assert(offsetof(GridEntity_PressurePlate, _varData) == 0x18);
@@ -3791,6 +3978,9 @@ 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);
static_assert(offsetof(GridEntity_PressurePlate, _timerPlate) == 0x154);
static_assert(offsetof(GridEntity_PressurePlate, _nextGreedAnimation) == 0x268);
static_assert(offsetof(GridEntity_PressurePlate, _greedModeRNG) == 0x26c);
struct GridEntity_Rock { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3802,6 +3992,9 @@ struct GridEntity_Rock { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
uint8_t _anim[0x18]; // std_string; Lua GridEntityRock.Anim via binder 0088ce40: getter 008c14a0 pushlstring of std::string, setter assign
uint8_t _rubbleAnim[0x24]; // std_string; Lua GridEntityRock.RubbleAnim via binder 0088ce40: getter 008c14a0 pushlstring of std::string, setter assign
int _frameCnt; // Lua GridEntityRock.FrameCnt via binder 0088cfb0: getter 008c1620 FUN_0085bfd0 signed dword, setter dword
};
static_assert(offsetof(GridEntity_Rock, _desc) == 0x4);
static_assert(offsetof(GridEntity_Rock, _varData) == 0x18);
@@ -3810,6 +4003,9 @@ 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);
static_assert(offsetof(GridEntity_Rock, _anim) == 0x154);
static_assert(offsetof(GridEntity_Rock, _rubbleAnim) == 0x16c);
static_assert(offsetof(GridEntity_Rock, _frameCnt) == 0x190);
struct GridEntity_Spikes { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3821,6 +4017,7 @@ struct GridEntity_Spikes { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
int _timeout; // Lua GridEntitySpikes.Timeout via binder 0088d7f0: getter 008c1b70 FUN_0085bfd0 signed dword, setter dword
};
static_assert(offsetof(GridEntity_Spikes, _desc) == 0x4);
static_assert(offsetof(GridEntity_Spikes, _varData) == 0x18);
@@ -3829,6 +4026,7 @@ 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);
static_assert(offsetof(GridEntity_Spikes, _timeout) == 0x154);
struct GridEntity_Stairs { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -3878,6 +4076,7 @@ struct GridEntity_TNT { // : GridEntity (flattened)
uint8_t _rng[0x10]; // RNG
int _collisionClass;
ANM2 _sprite;
int _frameCnt; // Lua GridEntityTNT.FrameCnt via binder 0088d150: getter 008c16e0 FUN_0085bfd0 signed dword, setter dword
};
static_assert(offsetof(GridEntity_TNT, _desc) == 0x4);
static_assert(offsetof(GridEntity_TNT, _varData) == 0x18);
@@ -3886,6 +4085,7 @@ 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);
static_assert(offsetof(GridEntity_TNT, _frameCnt) == 0x154);
struct GridEntity_Teleporter { // : GridEntity (flattened)
uint8_t _pad_0x0[0x4];
@@ -4051,6 +4251,7 @@ struct ItemConfig_Item {
uint64_t tags;
int quality;
int craftingQuality;
int _initCharge; // Lua Item.InitCharge via binder 00878d70: getter 008bccf0 FUN_0085bfd0 signed dword (same binder as MaxCharges)
};
static_assert(offsetof(ItemConfig_Item, type) == 0x0);
static_assert(offsetof(ItemConfig_Item, id) == 0x4);
@@ -4081,6 +4282,7 @@ 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);
static_assert(offsetof(ItemConfig_Item, _initCharge) == 0xc8);
struct ItemConfig_Pill {
int id;
@@ -4659,6 +4861,13 @@ static_assert(offsetof(PlayerHUD, _soulHeartFlashCountdown) == 0xd);
static_assert(offsetof(PlayerHUD, _goldHeartFlashCountdown) == 0xe);
static_assert(offsetof(PlayerHUD, _activeItem) == 0x190);
struct PosVel {
Vector _position; // Lua PosVel.Position via binder 0087d130: getter 008bde40 copies 8 bytes into UserdataValue<Vector2>
Vector _velocity; // Lua PosVel.Velocity via binder 0087d130: getter 008bde40 copies 8 bytes into UserdataValue<Vector2>
};
static_assert(offsetof(PosVel, _position) == 0x0);
static_assert(offsetof(PosVel, _velocity) == 0x8);
struct ProjectileParams {
bool GridCollision;
uint8_t _pad_0x1[0x3];
@@ -4709,13 +4918,6 @@ 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
@@ -4888,12 +5090,36 @@ static_assert(offsetof(RoomDescriptor, ShopItemDiscountIdx) == 0xae);
static_assert(offsetof(RoomDescriptor, DeliriumDistance) == 0xb0);
static_assert(offsetof(RoomDescriptor, Group) == 0xb4);
struct RoomEntry {
int _type; // Lua Entry.Type via binder 0088df10: getter 008c1c30 FUN_0085bfd0 signed dword, setter dword
uint16_t _variant; // Lua Entry.Variant via binder 0088e090: getter 008c1cf0 MOV DX,word -> FUN_0085c010 (MOVZX), setter stores 16-bit
uint16_t _subtype; // Lua Entry.Subtype via binder 0088e090: getter 008c1cf0 MOV DX,word -> FUN_0085c010 (MOVZX), setter stores 16-bit
float _weight; // Lua Entry.Weight via binder 0088e200: getter 008c1db0 pushnumber, setter checknumber -> float
};
static_assert(offsetof(RoomEntry, _type) == 0x0);
static_assert(offsetof(RoomEntry, _variant) == 0x4);
static_assert(offsetof(RoomEntry, _subtype) == 0x6);
static_assert(offsetof(RoomEntry, _weight) == 0x8);
struct RoomSpawn {
short _x; // Lua Spawn.X via binder 0088e450: getter 008c1e80 pushinteger((int)*(short*)) sign-extended, setter stores 16-bit
short _y; // Lua Spawn.Y via binder 0088e450: getter 008c1e80 pushinteger((int)*(short*)) sign-extended, setter stores 16-bit
uint8_t _pad_0x4[0x4];
uint8_t _entryCount; // Lua Spawn.EntryCount via binder 0088e6c0: getter 008c1f40 pushinteger(byte, high 0), setter stores byte
uint8_t _pad_0x9[0x3];
float _sumWeights; // Lua Spawn.SumWeights via binder 0088e840: getter 008c2000 pushnumber, setter checknumber -> float
};
static_assert(offsetof(RoomSpawn, _x) == 0x0);
static_assert(offsetof(RoomSpawn, _y) == 0x2);
static_assert(offsetof(RoomSpawn, _entryCount) == 0x8);
static_assert(offsetof(RoomSpawn, _sumWeights) == 0xc);
struct TearParams {
int _tearVariant;
int _bombVariant;
ColorMod _tearColor;
int _unused;
uint8_t _flags[0x10]; // BitSet128
BitSet128 _flags;
float _tearDamage;
float _tearScale;
float _tearHeight;
@@ -4908,10 +5134,11 @@ static_assert(offsetof(TearParams, _tearScale) == 0x4c);
static_assert(offsetof(TearParams, _tearHeight) == 0x50);
struct TemporaryEffect {
uint8_t _pad_0x0[0x4];
uint32_t _item; // ItemConfig_Item* // Lua TemporaryEffect.Item via binder 0087bf10: getter 008bdc50 UserdataPtr with Item class (const) key c829a6, nil if 0
int _count;
int _cooldown;
};
static_assert(offsetof(TemporaryEffect, _item) == 0x0);
static_assert(offsetof(TemporaryEffect, _count) == 0x4);
static_assert(offsetof(TemporaryEffect, _cooldown) == 0x8);
#pragma pack(pop)