Curation round 2, wave A: anm2 (Anm2Ed JSON), text, config as idiomatic classes; SDL3 platform opens a window
- anm2.h/.cpp take over ANM2, AnimationState, LayerState, AnmCache and the frame data. They read Anm2Ed's JSON documents with simdjson and play them as the game does (interpolation baked at load). src/anm2/ and msvc.h are retired. - font, formatted_text, string_table and rich_text take over the text classes. FormattedText::parse is still bit-exact against its assembly. - options_config and challenge_params take over OptionsConfig, ChallengeParams and the .ini helpers. The tests include Save's exact bytes. - platform.h/.cpp and main.cpp run IsaacMain on SDL3: the window and GL context open, and the run stops at the first built-in shader (FUN_00a13fa0). - source_tree.py: a taken-over parent stays bytes, taken-over methods are not re-emitted as a namespace, and every address in a (a, b, c to d) list on a comment counts as taken over. - log.h: reconstruction_missing() for a taken-over class's methods that are not written yet. 206 functions taken over, boot path 89/615. The full build waits for wave B: item_config, entity_config and mod_manager still use the old APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6e1ca7c6c
commit
780767f5e1
161 files changed
+8646
-21919
No files matched your search
@@ -367,12 +367,12 @@ void Entity_Pickup::GetLootList(Vector *renderOffset)
|
||||
g_graphicsManager_blendMode[3] = 1;
|
||||
g_graphicsManager_blendMode[4] = 7;
|
||||
g_graphicsManager_blendMode[1] = iVar3;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_wrapSMode = 0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_wrapTMode = 0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(GHIDRA_CAST<LayerState *>((layer)))->LayerState::GetTexture(&texture);
|
||||
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
LayerState::GetTexture(layer,&texture);
|
||||
local_14 = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),3);
|
||||
if (texture != GHIDRA_CAST<Vector *>(0x0)) {
|
||||
shader = &g_shaders;
|
||||
@@ -529,7 +529,7 @@ void Entity_Pickup::Constructor()
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::constructor();
|
||||
local_8 = 0;
|
||||
*GHIDRA_CAST<uint8_t ***>(this) = IsaacRepentancePlus::Entity_Pickup::vftable;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_priceANM2)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_priceANM2);
|
||||
(this->_colorMod)._tint[0] = 1.0;
|
||||
(this->_colorMod)._tint[1] = 1.0;
|
||||
(this->_colorMod)._tint[2] = 1.0;
|
||||
@@ -548,7 +548,7 @@ void Entity_Pickup::Constructor()
|
||||
this->_flipSaveState = 0;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x5cc)))) = 0;
|
||||
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),6);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_altPedestalANM2);
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
@@ -618,7 +618,7 @@ uint8_t Entity_Pickup::TryFlip(Entity_Player *unusedPlayer, uint32_t unusedSeed)
|
||||
local_8 = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(local_8))) + 0x1))) << 8;
|
||||
}
|
||||
(GHIDRA_CAST<EntitySaveStateRef *>((flipStateRef)))->EntitySaveStateRef::Set(state);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_altPedestalANM2);
|
||||
invoke_pending_callbacks(flippedState);
|
||||
ExceptionList = local_10;
|
||||
return 1;
|
||||
@@ -703,16 +703,16 @@ void Entity_Pickup::SetAlternatePedestal(int pedestalType)
|
||||
|
||||
if ((((this->_variant == 100) && (-1 < pedestalType)) && (this->_price == 0)) &&
|
||||
(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) != 0x10)) {
|
||||
isOverlaySet = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetOverlayAnimation(GHIDRA_CAST<uint8_t *>("Alternates"),1);
|
||||
isOverlaySet = ANM2::SetOverlayAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>("Alternates"),1);
|
||||
if ((isOverlaySet != 0) && ((this->_sprite)._overlayAnimState._animData != (void *)0x0)) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._overlayAnimState)))->AnimationState::SetFrameFloat((float)pedestalType);
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._overlayAnimState,(float)pedestalType);
|
||||
}
|
||||
nullFrameOffset = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._overlayAnimState)))->AnimationState::GetNullFrameById(0);
|
||||
nullFrameOffset = AnimationState::GetNullFrameById(&(this->_sprite)._overlayAnimState,0);
|
||||
pedestalOffset = &g_vectorZero;
|
||||
if (nullFrameOffset != GHIDRA_CAST<Vector *>(0x0)) {
|
||||
pedestalOffset = nullFrameOffset;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
(layer->_pos).x = pedestalOffset->x;
|
||||
(layer->_pos).y = pedestalOffset->y;
|
||||
manager = g_manager;
|
||||
@@ -1018,7 +1018,7 @@ LAB_006e22cc:
|
||||
}
|
||||
switchD_006e23e9_caseD_1:
|
||||
ppcStack_20 = ppcVar1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::LoadGraphics((uint8_t)iVar2);
|
||||
ANM2::LoadGraphics(&this->_sprite,(uint8_t)iVar2);
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
@@ -1073,13 +1073,13 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) == 0x10) {
|
||||
(this->_posOffset).y = 0.0;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
SetAlternatePedestal(this,0);
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_priceANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_priceANM2);
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._overlayAnimState)))->AnimationState::SetAnimationData((void *)0x0);
|
||||
AnimationState::SetAnimationData(&(this->_sprite)._overlayAnimState,(void *)0x0);
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) == 0x10) {
|
||||
(this->_posOffset).y = -20.0;
|
||||
}
|
||||
@@ -1095,7 +1095,7 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
priceConfig = (GHIDRA_CAST<EntityConfig *>((&manager->_entityConfig)))->EntityConfig::GetEntity(5,0,0);
|
||||
}
|
||||
priceSprite = &this->_priceANM2;
|
||||
(GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::Load(&priceConfig->anm2Path,1);
|
||||
ANM2::Load(priceSprite,&priceConfig->anm2Path,1);
|
||||
if ((this->_price < 0) && (this->_price != -1000)) {
|
||||
anim = "Hearts";
|
||||
}
|
||||
@@ -1109,37 +1109,37 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
}
|
||||
pGVar5 = local_14;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(anim),1);
|
||||
ANM2::SetAnimation(priceSprite,GHIDRA_CAST<uint8_t *>(anim),1);
|
||||
iVar4 = this->_price;
|
||||
if (iVar4 < 0) {
|
||||
if (iVar4 < -8) {
|
||||
if (iVar4 == -9) {
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(7.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,7.0);
|
||||
}
|
||||
}
|
||||
else if (iVar4 == -1000) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(priceSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::SetLayerFrame(1,0);
|
||||
(GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::SetLayerFrame(2,10);
|
||||
ANM2::SetLayerFrame(priceSprite,1,0);
|
||||
ANM2::SetLayerFrame(priceSprite,2,10);
|
||||
}
|
||||
}
|
||||
else {
|
||||
switch(iVar4) {
|
||||
case -8:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(6.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,6.0);
|
||||
}
|
||||
break;
|
||||
case -7:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(5.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,5.0);
|
||||
}
|
||||
break;
|
||||
case -6:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(4.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,4.0);
|
||||
}
|
||||
if (pGVar5 == GHIDRA_CAST<GridEntity *>(0xfffffff6)) {
|
||||
room = g_game->_room;
|
||||
@@ -1163,11 +1163,11 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
}
|
||||
break;
|
||||
case -5:
|
||||
layer = (GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(priceSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(priceSprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer->_visible = 0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
layer = ANM2::GetLayer(priceSprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
childSlot = &this->_child;
|
||||
layer->_visible = 0;
|
||||
if (*childSlot == 0) {
|
||||
@@ -1191,29 +1191,29 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
break;
|
||||
case -4:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(3.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,3.0);
|
||||
}
|
||||
break;
|
||||
case -3:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(2.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,2.0);
|
||||
}
|
||||
break;
|
||||
case -2:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(1.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,1.0);
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
if ((this->_priceANM2)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::SetFrameFloat(0.0);
|
||||
AnimationState::SetFrameFloat(&(this->_priceANM2)._animState,0.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (iVar4 < 10) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((priceSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(priceSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
}
|
||||
else {
|
||||
@@ -1228,7 +1228,7 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT((this->_priceANM2)._animState._layerFrames) + iVar4 * 4)) = 0;
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::AdvanceLayerPosition(iVar4,(float)price);
|
||||
AnimationState::AdvanceLayerPosition(&(this->_priceANM2)._animState,iVar4,(float)price);
|
||||
}
|
||||
}
|
||||
price = this->_price % 10;
|
||||
@@ -1242,7 +1242,7 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT((this->_priceANM2)._animState._layerFrames) + iVar4 * 4)) = 0;
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::AdvanceLayerPosition(iVar4,(float)price);
|
||||
AnimationState::AdvanceLayerPosition(&(this->_priceANM2)._animState,iVar4,(float)price);
|
||||
}
|
||||
if (((this->_priceANM2)._animState._animData != (void *)0x0) &&
|
||||
((2 < *GHIDRA_CAST<int *>((GHIDRA_INT((this->_priceANM2)._animState._animation) + 0x80)) ||
|
||||
@@ -1254,14 +1254,14 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT((this->_priceANM2)._animState._layerFrames) + iVar4 * 4)) = 0;
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_priceANM2)._animState)))->AnimationState::AdvanceLayerPosition(iVar4,10.0);
|
||||
AnimationState::AdvanceLayerPosition(&(this->_priceANM2)._animState,iVar4,10.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this->_variant == 100) {
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("ShopIdle"),1);
|
||||
bVar1 = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>("ShopIdle"),1);
|
||||
if (((bVar1 != 0) && ((this->_sprite)._animState._animData != (void *)0x0)) &&
|
||||
((GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat(0.0),
|
||||
(AnimationState::SetFrameFloat(&(this->_sprite)._animState,0.0),
|
||||
(this->_sprite)._animState._animData != (void *)0x0)) {
|
||||
(this->_sprite)._animState._isPlaying = 0;
|
||||
this->_entityCollisionClass = 1;
|
||||
@@ -1270,7 +1270,7 @@ void Entity_Pickup::update_price_sprite(int price)
|
||||
}
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
}
|
||||
this->_entityCollisionClass = 1;
|
||||
pGVar5 = local_14;
|
||||
@@ -1280,7 +1280,7 @@ LAB_006e2c1a:
|
||||
(**(code **)(*GHIDRA_CAST<int *>(this->_child) + 0x28))(uVar2);
|
||||
}
|
||||
if ((pGVar5 == GHIDRA_CAST<GridEntity *>(0xfffffff6)) && (this->_price == 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
SetAlternatePedestal(this,0);
|
||||
uVar2 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar2,0);
|
||||
@@ -1339,7 +1339,7 @@ LAB_006e2c1a:
|
||||
if ((iVar4 != 0) && (*GHIDRA_CAST<int *>((iVar4 + 4)) == 0x1c)) {
|
||||
if (*GHIDRA_CAST<int *>((iVar4 + 0xc)) == 1) {
|
||||
*GHIDRA_CAST<uint32_t *>((iVar4 + 0xc)) = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((iVar4 + 0x40)))))->ANM2::Play(GHIDRA_CAST<uint8_t *>("SummonPayment"),0);
|
||||
ANM2::Play(GHIDRA_CAST<ANM2 *>((iVar4 + 0x40)),GHIDRA_CAST<uint8_t *>("SummonPayment"),0);
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
@@ -1460,9 +1460,9 @@ LAB_006e3070:
|
||||
nameCompare = 0;
|
||||
LAB_006e3075:
|
||||
if (nameCompare == 0) {
|
||||
frame = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
frame = ANM2::GetFrame(&this->_sprite);
|
||||
if (frame == 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("AppearFast"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("AppearFast"),0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1697,7 +1697,7 @@ void Entity_Pickup::Update()
|
||||
local_40 = GHIDRA_CAST<Entity *>(&DAT_0000002f);
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_68))) + 0x14))),"gfx/promo/gfuel/effects/explosion4.anm2",0x28);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((explosionSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_68 + 0x14)),1);
|
||||
ANM2::Load(explosionSprite,GHIDRA_CAST<std_string *>((local_68 + 0x14)),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (GHIDRA_CAST<Entity *>(&DAT_0000000f) < local_40) {
|
||||
piVar13 = GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_40)) + 0x1))));
|
||||
@@ -1734,10 +1734,10 @@ void Entity_Pickup::Update()
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_stack_fffffec0)) + 0x0))) = 0xab;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_stack_fffffec0)) + 0x1))) = 0x3d;
|
||||
(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(&(in_stack_fffffec0)) + 0x2))) = 0x6e;
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&local_cc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(in_stack_fffffec4),1);
|
||||
bVar4 = ANM2::SetAnimation(&local_cc->_sprite,GHIDRA_CAST<uint8_t *>(in_stack_fffffec4),1);
|
||||
pRVar20 = local_d0;
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((local_d0->_gridEntities + 3)))))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((local_d0->_gridEntities + 3)));
|
||||
*GHIDRA_CAST<uint8_t *>((pRVar20->_gridEntities + 8)) = 1;
|
||||
pEVar8 = local_cc;
|
||||
}
|
||||
@@ -1767,10 +1767,10 @@ LAB_006e3e26:
|
||||
}
|
||||
if (bVar4 != (this->_altPedestalANM2)._loaded) {
|
||||
if (bVar4 == 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_altPedestalANM2);
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(register0x00000010) + -0x248)))))->ANM2::ANM2(&this->_sprite);
|
||||
ANM2::ANM2(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(register0x00000010) + -0x248)),&this->_sprite);
|
||||
other._championColor._offset[0] = in_stack_fffffeac;
|
||||
other._filename._buf[0] = in_stack_fffffdb8[0];
|
||||
other._filename._buf[1] = in_stack_fffffdb8[1];
|
||||
@@ -1869,7 +1869,7 @@ LAB_006e3e26:
|
||||
(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(&(other)) + 0x10a))) = SUB42(in_stack_fffffec0,2);
|
||||
other._shadowLayerIndex = GHIDRA_INT(in_stack_fffffec4);
|
||||
other._bitflags = iVar23;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::operator_assign(other);
|
||||
ANM2::operator_assign(&this->_altPedestalANM2,other);
|
||||
if ((g_game->_currentDimensionIdx == 2) ||
|
||||
((uVar7 = (GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level::GetCurses(), (uVar7 & 0x40) == 0 &&
|
||||
(this->_isForceBlind == 0)))) {
|
||||
@@ -1881,15 +1881,16 @@ LAB_006e3e26:
|
||||
load_collectible_gfx
|
||||
(&this->_altPedestalANM2,1,*GHIDRA_CAST<int *>((this->_flipSaveState + 8)),
|
||||
*GHIDRA_CAST<uint32_t *>((this->_flipSaveState + 0x34)),bVar4);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::LoadGraphics(bVar4);
|
||||
animName = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState))))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
ANM2::LoadGraphics(&this->_altPedestalANM2,bVar4);
|
||||
animName = ANM2::GetAnimation(GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState),
|
||||
GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
local_14 = 1;
|
||||
if (0xf < animName->_capacity) {
|
||||
animName = *GHIDRA_CAST<std_string **>(animName->_buf);
|
||||
}
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(animName),1);
|
||||
bVar4 = ANM2::SetAnimation(&this->_altPedestalANM2,GHIDRA_CAST<uint8_t *>(animName),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_altPedestalANM2)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_altPedestalANM2)._animState);
|
||||
(this->_altPedestalANM2)._animState._isPlaying = 1;
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
@@ -1912,8 +1913,8 @@ LAB_006e3e26:
|
||||
}
|
||||
}
|
||||
if ((this->_altPedestalANM2)._loaded != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_altPedestalANM2)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_altPedestalANM2)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(this->_altPedestalANM2)._animState);
|
||||
AnimationState::Update(&(this->_altPedestalANM2)._overlayAnimState);
|
||||
}
|
||||
}
|
||||
if ((this->_price == 0) && (this->_variant == 10)) {
|
||||
@@ -2108,7 +2109,7 @@ LAB_006e4390:
|
||||
uVar7 = 0;
|
||||
LAB_006e4395:
|
||||
if (uVar7 == 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
this->_entityCollisionClass = 4;
|
||||
}
|
||||
}
|
||||
@@ -2308,7 +2309,7 @@ LAB_006e4978:
|
||||
if (this->_entityCollisionClass != 0) {
|
||||
pcVar12 = "IdlePanic";
|
||||
LAB_006e4bf6:
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(pcVar12),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>(pcVar12),0);
|
||||
}
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
@@ -2449,18 +2450,18 @@ LAB_006e535b:
|
||||
}
|
||||
}
|
||||
if ((local_bd == 0) || (this->_subtype != 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
goto LAB_006e53e7;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Opened"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Opened"),0);
|
||||
}
|
||||
else {
|
||||
LAB_006e5393:
|
||||
bVar4 = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
bVar4 = AnimationState::IsEventTriggered(&(this->_sprite)._animState,GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
if (((bVar4 != 0) && (PlayDropSound(this), local_bd == 0)) &&
|
||||
((bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsPlaying(GHIDRA_CAST<uint8_t *>("Appear")), bVar4 != 0 ||
|
||||
((bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsPlaying(GHIDRA_CAST<uint8_t *>("AppearFast")), bVar4 != 0 ||
|
||||
(bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsPlaying(GHIDRA_CAST<uint8_t *>("Reappear")), bVar4 != 0)))))) {
|
||||
((bVar4 = ANM2::IsPlaying(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear")), bVar4 != 0 ||
|
||||
((bVar4 = ANM2::IsPlaying(&this->_sprite,GHIDRA_CAST<uint8_t *>("AppearFast")), bVar4 != 0 ||
|
||||
(bVar4 = ANM2::IsPlaying(&this->_sprite,GHIDRA_CAST<uint8_t *>("Reappear")), bVar4 != 0)))))) {
|
||||
LAB_006e53e7:
|
||||
this->_entityCollisionClass = 4;
|
||||
if (this->_variant == 0x29) {
|
||||
@@ -2521,9 +2522,9 @@ LAB_006e4fc5:
|
||||
}
|
||||
else if (iVar6 < 6) {
|
||||
if (iVar6 == 5) {
|
||||
iVar6 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
iVar6 = ANM2::GetFrame(&this->_sprite);
|
||||
if (((this->_sprite)._animState._animData != (void *)0x0) &&
|
||||
((GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat((float)(iVar6 + 2)),
|
||||
(AnimationState::SetFrameFloat(&(this->_sprite)._animState,(float)(iVar6 + 2)),
|
||||
(this->_sprite)._animState._animData != (void *)0x0)) {
|
||||
(this->_sprite)._animState._isPlaying = 0;
|
||||
}
|
||||
@@ -2540,7 +2541,7 @@ LAB_006e4fc5:
|
||||
uVar7 = Random();
|
||||
if ((uVar7 & 7) == 0) {
|
||||
uVar7 = Random();
|
||||
iVar6 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
iVar6 = ANM2::GetFrame(&this->_sprite);
|
||||
jitterFrame = iVar6 + -2 + uVar7 % 5;
|
||||
uVar7 = 6;
|
||||
if (6 < jitterFrame) {
|
||||
@@ -2565,14 +2566,15 @@ LAB_006e4fc5:
|
||||
puVar1 = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&this->_flags) + 4));
|
||||
*puVar1 = *puVar1 & 0xfffffeff;
|
||||
*GHIDRA_CAST<int *>(&this->_flags) = GHIDRA_INT(flags);
|
||||
animName = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState))))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
animName = ANM2::GetAnimation(GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState),
|
||||
GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
local_14 = 5;
|
||||
if (0xf < animName->_capacity) {
|
||||
animName = *GHIDRA_CAST<std_string **>(animName->_buf);
|
||||
}
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(animName),1);
|
||||
bVar4 = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>(animName),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_sprite)._animState);
|
||||
(this->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
local_14 = 0xffffffff;
|
||||
@@ -2654,7 +2656,7 @@ LAB_006e55e8:
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_bd = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
local_bd = AnimationState::IsEventTriggered(&(this->_sprite)._animState,GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
if (local_bd == 0) goto LAB_006e55e8;
|
||||
LAB_006e562c:
|
||||
uVar7 = Random();
|
||||
@@ -2713,7 +2715,7 @@ LAB_006e562c:
|
||||
}
|
||||
if ((((this->_variant == 0x39) && (this->_subtype != 0)) &&
|
||||
((this->_sprite)._animState._animData != (void *)0x0)) &&
|
||||
(bVar4 = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::IsEventTriggered(s_Open), bVar4 != 0)) {
|
||||
(bVar4 = AnimationState::IsEventTriggered(&(this->_sprite)._animState,s_Open), bVar4 != 0)) {
|
||||
if (this->_subtype == 1) {
|
||||
player = GHIDRA_CAST<Entity_Player *>(this->_target);
|
||||
if ((player == GHIDRA_CAST<Entity_Player *>(0x0)) || (player->_type != 1)) {
|
||||
@@ -2751,7 +2753,7 @@ LAB_006e562c:
|
||||
(iVar6 = this->_chestReCloseTimer + -1, this->_chestReCloseTimer = iVar6, iVar6 == 0)) &&
|
||||
(this->_variant == 0x35)) {
|
||||
this->_subtype = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Close"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Close"),0);
|
||||
manager = g_manager;
|
||||
local_c8.y = 2.94273e-44;
|
||||
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_c8.y));
|
||||
@@ -2958,7 +2960,8 @@ LAB_006e42ba:
|
||||
}
|
||||
}
|
||||
if ((this->_variant == 0x14) && (this->_subtype == 6)) {
|
||||
animName = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState))))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
animName = ANM2::GetAnimation(GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState),
|
||||
GHIDRA_CAST<std_string *>((local_bc + 0x10)));
|
||||
puVar1 = &animName->_size;
|
||||
if (0xf < animName->_capacity) {
|
||||
animName = *GHIDRA_CAST<std_string **>(animName->_buf);
|
||||
@@ -2967,7 +2970,7 @@ LAB_006e42ba:
|
||||
(GHIDRA_CAST<msvc::string *>((local_bc + 0x10)))->msvc::string::_Tidy_deallocate();
|
||||
if (local_bd != 0) {
|
||||
if ((this->_sprite)._animState._animData != (void *)0x0) {
|
||||
bVar4 = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
bVar4 = AnimationState::IsEventTriggered(&(this->_sprite)._animState,GHIDRA_CAST<uint8_t *>("DropSound"));
|
||||
manager = g_manager;
|
||||
if (bVar4 != 0) {
|
||||
local_c8.y = 3.237e-43;
|
||||
@@ -2977,7 +2980,7 @@ LAB_006e42ba:
|
||||
}
|
||||
if (((this->_sprite)._animState._animData == (void *)0x0) ||
|
||||
((this->_sprite)._animState._isPlaying == 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3044,7 +3047,7 @@ LAB_006e6515:
|
||||
local_e8._shift3 = GHIDRA_INT((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayer(0);
|
||||
}
|
||||
if (this->_state == 1) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Open,0);
|
||||
ANM2::Play(&this->_sprite,s_Open,0);
|
||||
uVar7 = 0;
|
||||
playerManager = &g_game->_playerManager;
|
||||
game = g_game;
|
||||
@@ -3076,7 +3079,7 @@ LAB_006e6515:
|
||||
}
|
||||
}
|
||||
else if (this->_state == 2) {
|
||||
iVar6 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
iVar6 = ANM2::GetFrame(&this->_sprite);
|
||||
if ((iVar6 == 6) &&
|
||||
(((iVar6 = get_stage_ending_id(0), iVar6 == 3 || (iVar6 == 4)) ||
|
||||
((iVar6 == 5 || ((iVar6 == 9 || (iVar6 == 0xc)))))))) {
|
||||
@@ -3127,7 +3130,7 @@ LAB_006e67da:
|
||||
else {
|
||||
local_c8.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar11) + 0x30));
|
||||
}
|
||||
puVar14 = GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<ANM2 *>((&player->_bodySprite)))->ANM2)::GetFrame();
|
||||
puVar14 = GHIDRA_CAST<uint8_t *>(ANM2)::GetFrame(&player->_bodySprite);
|
||||
if (puVar14 != &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Room *>((GHIDRA_INT(local_c8.y) + -0x7898))))) + 0x7897)))) goto LAB_006e67da;
|
||||
}
|
||||
game = g_game;
|
||||
@@ -3148,9 +3151,9 @@ LAB_006e686a:
|
||||
fVar19 = (this->_pos).x - (player->_pos).x, fVar17 = (this->_pos).y - (player->_pos).y,
|
||||
fVar17 * fVar17 + fVar19 * fVar19 < 2500.0)) {
|
||||
Morph(this,this->_type,0x34,this->_subtype,0,0,0);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Appear"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear"),0);
|
||||
if ((this->_sprite)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat(14.0);
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._animState,14.0);
|
||||
}
|
||||
this->_entityCollisionClass = 4;
|
||||
SoundEffects::PlayWithFartOverride(0xcd,1.0,2,0,1.0);
|
||||
@@ -3235,12 +3238,12 @@ void Entity_Pickup::Render(Vector *offset)
|
||||
&g_vectorZero);
|
||||
local_14 = 2.6;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer->_visible = 0;
|
||||
AnimationState::Render
|
||||
(&(this->_sprite)._overlayAnimState,position,&g_vectorZero,&g_vectorZero);
|
||||
AnimationState::Render(&(this->_sprite)._animState,position,&g_vectorZero,&g_vectorZero);
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer->_visible = 1;
|
||||
if (this->_megaChestCollectible[1] == (void *)0x0) {
|
||||
scratchPos.x = local_14 + position->x;
|
||||
@@ -3262,7 +3265,7 @@ void Entity_Pickup::Render(Vector *offset)
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::Render(offset);
|
||||
}
|
||||
if ((this->_priceANM2)._loaded != 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_priceANM2)))->ANM2::Render(&this->_renderPosition,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_priceANM2,&this->_renderPosition,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
FUN_008630c0(this,offset);
|
||||
}
|
||||
@@ -3352,9 +3355,9 @@ uint8_t Entity_Pickup::TryOpenChest(Entity_Player *player)
|
||||
bVar4 = 0;
|
||||
}
|
||||
else {
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(s_Open,1);
|
||||
bVar4 = ANM2::SetAnimation(&this->_sprite,s_Open,1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_sprite)._animState);
|
||||
(this->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
manager = g_manager;
|
||||
@@ -4291,7 +4294,7 @@ void Entity_Pickup::CollectTrinket(Entity_Player *param_2, uint32_t param_3)
|
||||
ExceptionList = &local_10;
|
||||
savedThis = this;
|
||||
if ((param_3 == 0) && (param_3 = this->_price, param_3 == 0)) goto LAB_006e89de;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_priceANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_priceANM2);
|
||||
if (0 < GHIDRA_INT(param_3)) {
|
||||
EntityList::QuerySublist
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),GHIDRA_CAST<EntityList_EL *>(entities),3,0xce,0x209,0,
|
||||
@@ -4521,9 +4524,9 @@ uint8_t Entity_Pickup::empty_pedestal()
|
||||
if (this->_subtype != 0) {
|
||||
this->_subtype = 0;
|
||||
if (this->_price == 0) {
|
||||
isAnimSet = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Empty"),1);
|
||||
isAnimSet = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>("Empty"),1);
|
||||
if ((isAnimSet != 0) && ((this->_sprite)._animState._animData != (void *)0x0)) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat(0.0);
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._animState,0.0);
|
||||
if ((this->_sprite)._animState._animData != (void *)0x0) {
|
||||
(this->_sprite)._animState._isPlaying = 0;
|
||||
}
|
||||
@@ -4536,14 +4539,14 @@ uint8_t Entity_Pickup::empty_pedestal()
|
||||
}
|
||||
update_price_sprite(this,0);
|
||||
SetAlternatePedestal(this,0);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetFrame(GHIDRA_CAST<std_string *>("Empty"),0);
|
||||
isAnimSet = (GHIDRA_CAST<ANM2 *>((&this->_altPedestalANM2)))->ANM2::SetAnimation(s_Idle,1);
|
||||
ANM2::SetFrame(&this->_sprite,GHIDRA_CAST<std_string *>("Empty"),0);
|
||||
isAnimSet = ANM2::SetAnimation(&this->_altPedestalANM2,s_Idle,1);
|
||||
if (isAnimSet != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_altPedestalANM2)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_altPedestalANM2)._animState);
|
||||
(this->_altPedestalANM2)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
shadowLayer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>("itemshadow"));
|
||||
shadowLayer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>("itemshadow"));
|
||||
if (shadowLayer != GHIDRA_CAST<LayerState *>(0x0)) {
|
||||
shadowLayer->_visible = 0;
|
||||
}
|
||||
@@ -4900,7 +4903,7 @@ void Entity_Pickup::update_cycle_collectible(uint8_t isForce)
|
||||
}
|
||||
Morph(this,this->_type,this->_variant,this->_cycleCollectibleList[0],1,1,1);
|
||||
if ((this->_sprite)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat((float)animFrame);
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._animState,(float)animFrame);
|
||||
}
|
||||
this->_wait = rotatedState[0];
|
||||
this->_cycleCollectibleList[0] = rotatedState[1];
|
||||
@@ -5392,7 +5395,7 @@ void Entity_Pickup::RestoreState(Room *room, Entity_Pickup *entity, void *saveSt
|
||||
}
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(saveState) + 0x6c)) != 0) {
|
||||
(GHIDRA_CAST<SharedPtr *>((&entity->_flipSaveState)))->SharedPtr::assign(GHIDRA_CAST<int *>((GHIDRA_INT(saveState) + 0x6c)));
|
||||
(GHIDRA_CAST<ANM2 *>((&entity->_altPedestalANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&entity->_altPedestalANM2);
|
||||
}
|
||||
UpdateLootPreview(entity);
|
||||
if (((g_game->_currentRoomIdx == -0xc) && (g_game->_isStartingFromState != 0)) &&
|
||||
|
||||
Reference in new issue
Block a user