ColorMod layout from the Lua Color getters; Entity._splatColor; embed small/placeholder structs (EntityPtr)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
78730f0352
commit
d806b3b969
3 files changed
+66
-24
No files matched your search
@@ -620,3 +620,8 @@ EntityConfig 0x2c vector_string _edenHair EntityConfig::load_players_xml 006998d
|
|||||||
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
|
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
|
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
|
||||||
Entity_Player 0x17a0 int _pocketSlots[8] AddPocketItem/RemovePocketItem/GetMaxPocketItems: 4 (id, type) pairs, type 0 pill 1 card 2 pocket active
|
Entity_Player 0x17a0 int _pocketSlots[8] AddPocketItem/RemovePocketItem/GetMaxPocketItems: 4 (id, type) pairs, type 0 pill 1 card 2 pocket active
|
||||||
|
# ColorMod = the Lua Color class (0x2c): getters Color::R 00407240 (+0), Color::A (+0xc), RO (+0x20), BO (+0x28); SetColorize 00682fb0 writes +0x10..+0x1c; ctor 00407170 sets 1,1,1,1 then 7 zeros
|
||||||
|
ColorMod 0x0 float _tint[4] Color::R/G/B/A getters read +0x0..+0xc
|
||||||
|
ColorMod 0x10 float _colorize[4] Color::SetColorize 00682fb0 writes +0x10..+0x1c
|
||||||
|
ColorMod 0x20 float _offset[3] Color::RO/GO/BO getters read +0x20..+0x28
|
||||||
|
Entity 0x1e4 ColorMod _splatColor Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
|
Can't render this file because it contains an unexpected character in line 236 and column 126.
|
@@ -28,7 +28,7 @@ public class ApplyTypes extends GhidraScript {
|
|||||||
case "Vector": return vec;
|
case "Vector": return vec;
|
||||||
}
|
}
|
||||||
DataType d = dtm.getDataType(new CategoryPath("/"), t); // embedded struct built by an earlier pass
|
DataType d = dtm.getDataType(new CategoryPath("/"), t); // embedded struct built by an earlier pass
|
||||||
return d instanceof Structure && d.getLength() >= 0x20 ? d : null;
|
return d instanceof Structure && d.getLength() >= 4 ? d : null; // placeholder structs (EntityPtr) too: a name beats field_0x
|
||||||
}
|
}
|
||||||
|
|
||||||
void addFields(StructureDataType s, String cls, int depth) {
|
void addFields(StructureDataType s, String cls, int depth) {
|
||||||
|
|||||||
+60
-23
@@ -27,6 +27,15 @@ static_assert(offsetof(AnimationState, _isPlaying) == 0x14);
|
|||||||
static_assert(offsetof(AnimationState, _currentlyTriggeredEvents) == 0x18);
|
static_assert(offsetof(AnimationState, _currentlyTriggeredEvents) == 0x18);
|
||||||
static_assert(offsetof(AnimationState, _previouslyTriggeredEvents) == 0x1c);
|
static_assert(offsetof(AnimationState, _previouslyTriggeredEvents) == 0x1c);
|
||||||
|
|
||||||
|
struct ColorMod {
|
||||||
|
float _tint[4]; // Color::R/G/B/A getters read +0x0..+0xc
|
||||||
|
float _colorize[4]; // Color::SetColorize 00682fb0 writes +0x10..+0x1c
|
||||||
|
float _offset[3]; // Color::RO/GO/BO getters read +0x20..+0x28
|
||||||
|
};
|
||||||
|
static_assert(offsetof(ColorMod, _tint) == 0x0);
|
||||||
|
static_assert(offsetof(ColorMod, _colorize) == 0x10);
|
||||||
|
static_assert(offsetof(ColorMod, _offset) == 0x20);
|
||||||
|
|
||||||
struct ANM2 {
|
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 _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
|
uint8_t _animDefaultName[0x18]; // std_string; AnmCache::Load 0x40db90 assigns default anim name; GetDefaultAnimationName 0x4a5cf0 returns &+0x18
|
||||||
@@ -45,8 +54,8 @@ struct ANM2 {
|
|||||||
Vector _offset; // Lua Sprite.Offset get 0x49cb40 (&+0x94) / set 0x456340; Reset 0x407f10 = Vector::Zero
|
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
|
Vector _scale; // Lua Sprite.Scale get 0x417200 / set 0x420170; Reset = Vector::One
|
||||||
float _rotation; // Lua Sprite.Rotation get 0x417210 / set 0x43ee80
|
float _rotation; // Lua Sprite.Rotation get 0x417210 / set 0x43ee80
|
||||||
uint8_t _color[0x2c]; // ColorMod; Lua Sprite.Color get 0x407410 / set 0x4073d0
|
ColorMod _color; // Lua Sprite.Color get 0x407410 / set 0x4073d0
|
||||||
uint8_t _championColor[0x2c]; // ColorMod; second ColorMod: ctor 0x4074c0, Reset 0x407f10 (alpha 0), copied/swapped like Color
|
ColorMod _championColor; // second ColorMod: ctor 0x4074c0, Reset 0x407f10 (alpha 0), copied/swapped like Color
|
||||||
bool _flipX; // Lua FlipX get 0x407420 / set 0x435c60
|
bool _flipX; // Lua FlipX get 0x407420 / set 0x435c60
|
||||||
bool _flipY; // Lua FlipY get 0x407430 / set 0x505b50
|
bool _flipY; // Lua FlipY get 0x407430 / set 0x505b50
|
||||||
uint8_t _pad_0x102[0x2];
|
uint8_t _pad_0x102[0x2];
|
||||||
@@ -141,7 +150,8 @@ struct Entity {
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -233,6 +243,7 @@ static_assert(offsetof(Entity, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity, _freezeCountdown) == 0x218);
|
||||||
@@ -498,7 +509,8 @@ struct Entity_Bomb { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -611,6 +623,7 @@ static_assert(offsetof(Entity_Bomb, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Bomb, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Bomb, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Bomb, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Bomb, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Bomb, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Bomb, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Bomb, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Bomb, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Bomb, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Bomb, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Bomb, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Bomb, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Bomb, _freezeCountdown) == 0x218);
|
||||||
@@ -709,7 +722,8 @@ struct Entity_Effect { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -809,6 +823,7 @@ static_assert(offsetof(Entity_Effect, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Effect, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Effect, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Effect, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Effect, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Effect, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Effect, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Effect, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Effect, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Effect, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Effect, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Effect, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Effect, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Effect, _freezeCountdown) == 0x218);
|
||||||
@@ -898,7 +913,8 @@ struct Entity_Familiar { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -986,7 +1002,7 @@ struct Entity_Familiar { // : Entity (flattened)
|
|||||||
uint8_t _pad_0xee0[0x8];
|
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)
|
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 _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
|
ColorMod _dirtColor; // 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
|
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, _index) == 0x20);
|
||||||
@@ -1013,6 +1029,7 @@ static_assert(offsetof(Entity_Familiar, _entityExtraDataPtrUpperBytes) == 0x18e)
|
|||||||
static_assert(offsetof(Entity_Familiar, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Familiar, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Familiar, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Familiar, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Familiar, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Familiar, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Familiar, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Familiar, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Familiar, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Familiar, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Familiar, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Familiar, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Familiar, _freezeCountdown) == 0x218);
|
||||||
@@ -1113,7 +1130,8 @@ struct Entity_Knife { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -1220,6 +1238,7 @@ static_assert(offsetof(Entity_Knife, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Knife, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Knife, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Knife, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Knife, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Knife, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Knife, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Knife, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Knife, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Knife, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Knife, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Knife, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Knife, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Knife, _freezeCountdown) == 0x218);
|
||||||
@@ -1314,7 +1333,8 @@ struct Entity_Laser { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -1430,6 +1450,7 @@ static_assert(offsetof(Entity_Laser, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Laser, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Laser, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Laser, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Laser, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Laser, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Laser, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Laser, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Laser, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Laser, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Laser, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Laser, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Laser, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Laser, _freezeCountdown) == 0x218);
|
||||||
@@ -1531,7 +1552,8 @@ struct Entity_NPC { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -1632,7 +1654,8 @@ struct Entity_NPC { // : Entity (flattened)
|
|||||||
uint8_t _pad_0xc76[0x2];
|
uint8_t _pad_0xc76[0x2];
|
||||||
int _bosscoloridx;
|
int _bosscoloridx;
|
||||||
uint8_t _pad_0xc7c[0x30];
|
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
|
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)
|
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
|
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
|
int32_t _controllerID; // Entity_NPC::IsControllerActionPressed 006d8260 passes this+0xf1c to input_is_action_pressed (-1 = none); GetControllerMovementInput 006d85a0 / UpdateControllerMovement 006d9050 test it
|
||||||
@@ -1667,6 +1690,7 @@ static_assert(offsetof(Entity_NPC, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_NPC, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_NPC, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_NPC, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_NPC, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_NPC, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_NPC, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_NPC, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_NPC, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_NPC, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_NPC, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_NPC, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_NPC, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_NPC, _freezeCountdown) == 0x218);
|
||||||
@@ -1782,7 +1806,8 @@ struct Entity_Pickup { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -1899,6 +1924,7 @@ static_assert(offsetof(Entity_Pickup, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Pickup, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Pickup, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Pickup, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Pickup, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Pickup, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Pickup, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Pickup, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Pickup, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Pickup, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Pickup, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Pickup, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Pickup, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Pickup, _freezeCountdown) == 0x218);
|
||||||
@@ -2015,7 +2041,8 @@ struct Entity_Player { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -2138,7 +2165,8 @@ struct Entity_Player { // : Entity (flattened)
|
|||||||
float _tearfallaccel;
|
float _tearfallaccel;
|
||||||
float _tearrange;
|
float _tearrange;
|
||||||
uint8_t _pad_0x1484[0x40];
|
uint8_t _pad_0x1484[0x40];
|
||||||
uint8_t _laserColor[0x44]; // ColorMod
|
ColorMod _laserColor;
|
||||||
|
uint8_t _pad_0x14f0[0x18];
|
||||||
TemporaryEffects _temporaryeffects;
|
TemporaryEffects _temporaryeffects;
|
||||||
int _speedModifier;
|
int _speedModifier;
|
||||||
int _fireDelayModifier;
|
int _fireDelayModifier;
|
||||||
@@ -2199,8 +2227,9 @@ struct Entity_Player { // : Entity (flattened)
|
|||||||
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 _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;
|
bool _canShoot;
|
||||||
uint8_t _pad_0x1826[0x2];
|
uint8_t _pad_0x1826[0x2];
|
||||||
uint8_t _footprintColor1[0x2c]; // ColorMod
|
ColorMod _footprintColor1;
|
||||||
uint8_t _footprintColor2[0x34]; // ColorMod
|
ColorMod _footprintColor2;
|
||||||
|
uint8_t _pad_0x1880[0x8];
|
||||||
int _ponyCharge;
|
int _ponyCharge;
|
||||||
int _planCKillCountdown;
|
int _planCKillCountdown;
|
||||||
uint8_t _pad_0x1890[0x4];
|
uint8_t _pad_0x1890[0x4];
|
||||||
@@ -2340,6 +2369,7 @@ static_assert(offsetof(Entity_Player, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Player, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Player, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Player, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Player, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Player, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Player, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Player, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Player, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Player, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Player, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Player, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Player, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Player, _freezeCountdown) == 0x218);
|
||||||
@@ -2599,7 +2629,8 @@ struct Entity_Projectile { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -2706,6 +2737,7 @@ static_assert(offsetof(Entity_Projectile, _entityExtraDataPtrUpperBytes) == 0x18
|
|||||||
static_assert(offsetof(Entity_Projectile, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Projectile, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Projectile, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Projectile, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Projectile, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Projectile, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Projectile, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Projectile, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Projectile, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Projectile, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Projectile, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Projectile, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Projectile, _freezeCountdown) == 0x218);
|
||||||
@@ -2799,7 +2831,8 @@ struct Entity_Slot { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -2891,6 +2924,7 @@ static_assert(offsetof(Entity_Slot, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Slot, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Slot, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Slot, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Slot, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Slot, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Slot, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Slot, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Slot, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Slot, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Slot, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Slot, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Slot, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Slot, _freezeCountdown) == 0x218);
|
||||||
@@ -2975,7 +3009,8 @@ struct Entity_Tear { // : Entity (flattened)
|
|||||||
uint8_t _pad_0x191[0x1];
|
uint8_t _pad_0x191[0x1];
|
||||||
uint16_t _entityExtraDataPtrLowerBytes;
|
uint16_t _entityExtraDataPtrLowerBytes;
|
||||||
uint8_t _pad_0x194[0x18];
|
uint8_t _pad_0x194[0x18];
|
||||||
uint8_t _colorParams[0x64]; // vector_ColorParams
|
uint8_t _colorParams[0x38]; // vector_ColorParams
|
||||||
|
ColorMod _splatColor; // Lua getter Entity::SplatColor returns this+0x1e4
|
||||||
int _fireDamageCountdown;
|
int _fireDamageCountdown;
|
||||||
int _damageCountdown;
|
int _damageCountdown;
|
||||||
int _freezeCountdown;
|
int _freezeCountdown;
|
||||||
@@ -3094,6 +3129,7 @@ static_assert(offsetof(Entity_Tear, _entityExtraDataPtrUpperBytes) == 0x18e);
|
|||||||
static_assert(offsetof(Entity_Tear, _collidesWithGrid) == 0x190);
|
static_assert(offsetof(Entity_Tear, _collidesWithGrid) == 0x190);
|
||||||
static_assert(offsetof(Entity_Tear, _entityExtraDataPtrLowerBytes) == 0x192);
|
static_assert(offsetof(Entity_Tear, _entityExtraDataPtrLowerBytes) == 0x192);
|
||||||
static_assert(offsetof(Entity_Tear, _colorParams) == 0x1ac);
|
static_assert(offsetof(Entity_Tear, _colorParams) == 0x1ac);
|
||||||
|
static_assert(offsetof(Entity_Tear, _splatColor) == 0x1e4);
|
||||||
static_assert(offsetof(Entity_Tear, _fireDamageCountdown) == 0x210);
|
static_assert(offsetof(Entity_Tear, _fireDamageCountdown) == 0x210);
|
||||||
static_assert(offsetof(Entity_Tear, _damageCountdown) == 0x214);
|
static_assert(offsetof(Entity_Tear, _damageCountdown) == 0x214);
|
||||||
static_assert(offsetof(Entity_Tear, _freezeCountdown) == 0x218);
|
static_assert(offsetof(Entity_Tear, _freezeCountdown) == 0x218);
|
||||||
@@ -4636,7 +4672,7 @@ struct ProjectileParams {
|
|||||||
float CurvingStrength;
|
float CurvingStrength;
|
||||||
float Acceleration;
|
float Acceleration;
|
||||||
float Spread;
|
float Spread;
|
||||||
uint8_t Color[0x2c]; // ColorMod
|
ColorMod Color;
|
||||||
uint64_t BulletFlags;
|
uint64_t BulletFlags;
|
||||||
Vector PositionOffset;
|
Vector PositionOffset;
|
||||||
Vector TargetPosition;
|
Vector TargetPosition;
|
||||||
@@ -4732,8 +4768,9 @@ struct Room {
|
|||||||
bool _isFirstEnemyDead;
|
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
|
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 _pad_0x72a2[0x2];
|
||||||
uint8_t _floorColor[0x2c]; // ColorMod; Lua Room:SetFloorColor 007e91b0 copies 0x2c bytes to 0x72a4; ctor 007e9400 inits it
|
ColorMod _floorColor; // 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
|
ColorMod _wallColor; // Lua Room:SetWallColor 007e91f0 copies 0x2c bytes to 0x72d0; ctor 007e9400 inits it
|
||||||
|
uint8_t _pad_0x72fc[0x14];
|
||||||
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
|
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];
|
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
|
int _numRainSpawners; // rain init 00824350 zeroes it, then fills spawner array 0x73f4 (stride 0x18) and increments it; Room::update_ambient_sounds 00800500 reads it
|
||||||
@@ -4854,7 +4891,7 @@ static_assert(offsetof(RoomDescriptor, Group) == 0xb4);
|
|||||||
struct TearParams {
|
struct TearParams {
|
||||||
int _tearVariant;
|
int _tearVariant;
|
||||||
int _bombVariant;
|
int _bombVariant;
|
||||||
uint8_t _tearColor[0x2c]; // ColorMod
|
ColorMod _tearColor;
|
||||||
int _unused;
|
int _unused;
|
||||||
uint8_t _flags[0x10]; // BitSet128
|
uint8_t _flags[0x10]; // BitSet128
|
||||||
float _tearDamage;
|
float _tearDamage;
|
||||||
|
|||||||
Reference in new issue
Block a user