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
@@ -335,9 +335,9 @@ LAB_0049f8bb:
|
||||
if ((compareResult == 0) &&
|
||||
((animData[0x34] == 0 || ((npc->_sprite)._animState._isPlaying != 0)))) goto LAB_0049f8ee;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("ChargeBegin"),1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("ChargeBegin"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_0049f8ee:
|
||||
@@ -383,7 +383,7 @@ void NpcHelper::chimera_render_child(Entity_NPC *npc, Vector *offset)
|
||||
if (((((npc->_type == 0x38e) && (npc->_variant == 1)) && (npc->_state == 0x10)) &&
|
||||
((piVar7 = GHIDRA_CAST<int *>(npc->_child), piVar7 != GHIDRA_CAST<int *>(0x0) && (piVar7[0x2d9] == 0x10)))) &&
|
||||
(*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(piVar7) + 0x171)) == '\0')) {
|
||||
layerFrame = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::GetLayerFrame(2);
|
||||
layerFrame = AnimationState::GetLayerFrame(&(npc->_sprite)._animState,2);
|
||||
if ((layerFrame != (void *)0x0) && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(layerFrame) + 0x2c)) != '\0')) {
|
||||
iVar1 = piVar7[0xcf];
|
||||
iVar2 = piVar7[0x37];
|
||||
@@ -393,7 +393,7 @@ void NpcHelper::chimera_render_child(Entity_NPC *npc, Vector *offset)
|
||||
piVar7[0xcf] = GHIDRA_INT((npc->_pos).x);
|
||||
piVar7[0xd0] = GHIDRA_INT((npc->_pos).y);
|
||||
iVar6 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(layerFrame) + 0x14));
|
||||
pLVar8 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar8 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
frameX = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(layerFrame) + 0x10));
|
||||
if (pLVar8->_flipX != 0) {
|
||||
frameX = frameX ^ 0x80000000;
|
||||
@@ -696,9 +696,9 @@ LAB_004a2fd9:
|
||||
if ((uVar2 == 0) && ((animData[0x34] == 0 || ((pEVar7->_sprite)._animState._isPlaying != 0))))
|
||||
goto LAB_004a2fed;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&pEVar7->_sprite)))->ANM2::SetAnimation(&DAT_00b1d33c,1);
|
||||
bVar1 = ANM2::SetAnimation(&pEVar7->_sprite,&DAT_00b1d33c,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(pEVar7->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(pEVar7->_sprite)._animState);
|
||||
(pEVar7->_sprite)._animState._isPlaying = 1;
|
||||
npcLocal->_state = 6;
|
||||
return;
|
||||
@@ -1022,9 +1022,9 @@ void NpcHelper::delirium_spawn_form_parts(Entity_NPC *npc, float maxHealth)
|
||||
local_24 = pEVar6;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004a8acc:
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&pEVar6->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("WalkBodyHori"),1);
|
||||
bVar4 = ANM2::SetAnimation(&pEVar6->_sprite,GHIDRA_CAST<uint8_t *>("WalkBodyHori"),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(pEVar6->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(pEVar6->_sprite)._animState);
|
||||
(pEVar6->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -1500,9 +1500,9 @@ LAB_004a971c:
|
||||
if ((uVar5 == 0) && ((curAnimData[0x34] == 0 || ((npc->_sprite)._animState._isPlaying != 0))))
|
||||
goto LAB_004a9753;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Blink"),1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Blink"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -1866,9 +1866,9 @@ LAB_004aa3d4:
|
||||
anim = &DAT_00b1e0e4;
|
||||
}
|
||||
LAB_004aa517:
|
||||
isAnimSet = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(anim,1);
|
||||
isAnimSet = ANM2::SetAnimation(&npc->_sprite,anim,1);
|
||||
if (isAnimSet != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -1965,8 +1965,8 @@ LAB_004aa7f9:
|
||||
}
|
||||
if (step != 0) {
|
||||
if ((GHIDRA_UINT(step) <= GHIDRA_UINT(local_1c)) && ((npc->_sprite)._loaded != 0)) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(npc->_sprite)._animState);
|
||||
AnimationState::Update(&(npc->_sprite)._overlayAnimState);
|
||||
}
|
||||
(npc->_pos).x = stepVelocityX + (npc->_pos).x;
|
||||
(npc->_pos).y = stepVelocityY + (npc->_pos).y;
|
||||
@@ -1982,8 +1982,8 @@ LAB_004aa7f9:
|
||||
cycleId & 0x7f;
|
||||
}
|
||||
else if ((npc->_sprite)._loaded != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(npc->_sprite)._animState);
|
||||
AnimationState::Update(&(npc->_sprite)._overlayAnimState);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
@@ -2276,9 +2276,9 @@ LAB_004b1488:
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004b152e:
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(s_Attack1,1);
|
||||
bVar4 = ANM2::SetAnimation(&npc->_sprite,s_Attack1,1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -2322,9 +2322,9 @@ LAB_004b1515:
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004b162e:
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Attack2Start"),1);
|
||||
bVar4 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Attack2Start"),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -2383,9 +2383,9 @@ LAB_004b1615:
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004b177e:
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(&DAT_00b1d2e4,1);
|
||||
bVar4 = ANM2::SetAnimation(&npc->_sprite,&DAT_00b1d2e4,1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -2431,9 +2431,9 @@ LAB_004b1765:
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004b1874:
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Attack4Start"),1);
|
||||
bVar4 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Attack4Start"),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -2824,7 +2824,7 @@ void NpcHelper::gideon_update_death(Entity_NPC *npc)
|
||||
}
|
||||
pitch = 1.0;
|
||||
if ((npc->_sprite)._animState._animData != (void *)0x0) {
|
||||
bVar3 = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("Sound"));
|
||||
bVar3 = AnimationState::IsEventTriggered(&(npc->_sprite)._animState,GHIDRA_CAST<uint8_t *>("Sound"));
|
||||
manager = g_manager;
|
||||
if (bVar3 != 0) {
|
||||
eventPitch = 1.0;
|
||||
@@ -2972,9 +2972,9 @@ LAB_004b3c2c:
|
||||
((*GHIDRA_CAST<char *>((GHIDRA_INT((afterimage->_sprite)._animState._animData) + 0x34)) == '\0' ||
|
||||
((afterimage->_sprite)._animState._isPlaying != 0)))) goto LAB_004b3c68;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&afterimage->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(animNameData),1);
|
||||
bVar1 = ANM2::SetAnimation(&afterimage->_sprite,GHIDRA_CAST<uint8_t *>(animNameData),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(afterimage->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(afterimage->_sprite)._animState);
|
||||
(afterimage->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_004b3c68:
|
||||
@@ -2999,8 +2999,8 @@ LAB_004b3c68:
|
||||
AnimationState::SetFrameFloat
|
||||
(&(afterimage->_sprite)._animState,(npc->_sprite)._animState._animFrame);
|
||||
}
|
||||
afterimageLayer = (GHIDRA_CAST<ANM2 *>((&afterimage->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
npcLayer = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
afterimageLayer = ANM2::GetLayer(&afterimage->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
npcLayer = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(afterimageLayer->_color)._tint[3] = (npcLayer->_color)._tint[3];
|
||||
afterimage->_entityGridCollisionClass = 0;
|
||||
afterimage->_entityCollisionClass = 0;
|
||||
@@ -3737,7 +3737,7 @@ void NpcHelper::hornfel_render_minecart(Entity_NPC *npc, ANM2 *minecartSprite, V
|
||||
frameIndex < *GHIDRA_CAST<int *>((layerIndex + 8)))))))) &&
|
||||
(npcFrame = GHIDRA_CAST<float *>((frameIndex * 0x6c + *GHIDRA_CAST<int *>((layerIndex + 4)))),
|
||||
npcFrame != GHIDRA_CAST<float *>(0x0))) {
|
||||
(GHIDRA_CAST<AnimationState *>((frameCopy)))->AnimationState::copy_assign(cartFrame);
|
||||
AnimationState::copy_assign(frameCopy,cartFrame);
|
||||
local_88 = frameCopy;
|
||||
npcSprite = &npc->_sprite;
|
||||
local_84 = 1;
|
||||
@@ -3745,14 +3745,14 @@ void NpcHelper::hornfel_render_minecart(Entity_NPC *npc, ANM2 *minecartSprite, V
|
||||
frameCopy[0]._animation = (void *)(((float)frameCopy[0]._animation - 0.0) + *npcFrame);
|
||||
frameCopy[0]._animData = (void *)(((float)frameCopy[0]._animData - 224.0) + npcFrame[1]);
|
||||
local_80 = 1;
|
||||
pLVar2 = (GHIDRA_CAST<ANM2 *>((npcSprite)))->ANM2::GetLayer(&DAT_00000004);
|
||||
pLVar2 = ANM2::GetLayer(npcSprite,&DAT_00000004);
|
||||
pLVar2->_visible = 1;
|
||||
pLVar2 = (GHIDRA_CAST<ANM2 *>((npcSprite)))->ANM2::GetLayer(&DAT_00000004);
|
||||
pLVar2 = ANM2::GetLayer(npcSprite,&DAT_00000004);
|
||||
(pLVar2->_color)._tint[3] = (minecartSprite->_color)._tint[3];
|
||||
AnimationLayer::RenderFrame
|
||||
(GHIDRA_CAST<AnimationLayer *>(&renderLayer),renderPosLocal,0,&g_vectorZero,&g_vectorZero,
|
||||
npcSprite);
|
||||
pLVar2 = (GHIDRA_CAST<ANM2 *>((npcSprite)))->ANM2::GetLayer(&DAT_00000004);
|
||||
pLVar2 = ANM2::GetLayer(npcSprite,&DAT_00000004);
|
||||
pLVar2->_visible = 0;
|
||||
}
|
||||
}
|
||||
@@ -3777,14 +3777,14 @@ void NpcHelper::hornfel_charge(Entity_NPC *npc)
|
||||
if (0.0 <= cartVelocityX) {
|
||||
animName = "IdleRight";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
return;
|
||||
}
|
||||
animName = "IdleUp";
|
||||
if (0.0 <= cartVelocityY) {
|
||||
animName = "IdleDown";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
return;
|
||||
}
|
||||
if (ABS(cartVelocityY) < ABS(cartVelocityX)) {
|
||||
@@ -3792,14 +3792,14 @@ void NpcHelper::hornfel_charge(Entity_NPC *npc)
|
||||
if (0.0 <= cartVelocityX) {
|
||||
animName = "ChargeRight";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
return;
|
||||
}
|
||||
animName = "ChargeUp";
|
||||
if (0.0 <= cartVelocityY) {
|
||||
animName = "ChargeDown";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -4113,7 +4113,7 @@ LAB_004b8213:
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/965.001_hornfel minecart.anm2",0x22
|
||||
);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((minecartSprite)))->ANM2::Load(&anm2Path,1);
|
||||
ANM2::Load(minecartSprite,&anm2Path,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < anm2Path._capacity) {
|
||||
uVar2 = anm2Path._capacity + 1;
|
||||
@@ -4527,21 +4527,21 @@ LAB_004b8df1:
|
||||
animName = "Attack1Left";
|
||||
}
|
||||
LAB_004b9068:
|
||||
(GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(&npc->_sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
}
|
||||
else {
|
||||
animName = "Attack1Left_Back";
|
||||
if (0.0 <= (float)local_28) {
|
||||
animName = "Attack1Right_Back";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
ANM2::Play(&npc->_sprite,GHIDRA_CAST<uint8_t *>(animName),0);
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&npc->_projectileDelay) + 3)) = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (uVar1 != 1) {
|
||||
if (uVar1 == 2) {
|
||||
(GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::Play(s_Attack2,0);
|
||||
ANM2::Play(&npc->_sprite,s_Attack2,0);
|
||||
npc->_state = 9;
|
||||
*GHIDRA_CAST<uint8_t *>(&npc->_projectileCooldown) = 0x96;
|
||||
}
|
||||
@@ -4582,7 +4582,7 @@ LAB_004b9068:
|
||||
animName = "Attack1Double";
|
||||
goto LAB_004b9068;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Attack1Double_Back"),0);
|
||||
ANM2::Play(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Attack1Double_Back"),0);
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&npc->_projectileDelay) + 3)) = 0;
|
||||
}
|
||||
npc->_state = 8;
|
||||
@@ -4882,9 +4882,9 @@ void NpcHelper::hornfel_set_anim(Entity_NPC *npc, int stateFrame)
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004bb896:
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(s_Open,1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,s_Open,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -5390,7 +5390,7 @@ void NpcHelper::horny_boys_render(Entity_NPC *npc, Vector *offset)
|
||||
layerOffset = 0;
|
||||
do {
|
||||
iVar1 = *GHIDRA_CAST<int *>((layerOffset + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(animData) + 0x18))));
|
||||
layerFrame = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::GetLayerFrame(iVar1);
|
||||
layerFrame = AnimationState::GetLayerFrame(&(npc->_sprite)._animState,iVar1);
|
||||
if ((((layerFrame != (void *)0x0) && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(layerFrame) + 0x2c)) != '\0')) &&
|
||||
(iVar1 - 3U < 3)) &&
|
||||
(dequeIndex = ((npc->_entityDeque)._offset - 3) + iVar1,
|
||||
@@ -5657,7 +5657,7 @@ void NpcHelper::moms_heart_attack_pattern(Entity_NPC *npc, int pattern, int stat
|
||||
return;
|
||||
}
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(projParams.BulletFlags)) + 0x0))) = baseBulletFlags;
|
||||
isHeartbeat = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("Heartbeat"));
|
||||
isHeartbeat = AnimationState::IsEventTriggered(&(npc->_sprite)._animState,GHIDRA_CAST<uint8_t *>("Heartbeat"));
|
||||
if (isHeartbeat == 0) {
|
||||
return;
|
||||
}
|
||||
@@ -5861,7 +5861,7 @@ LAB_004d358e:
|
||||
return;
|
||||
}
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(projParams.BulletFlags)) + 0x0))) = baseBulletFlags;
|
||||
isHeartbeat = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("Heartbeat"));
|
||||
isHeartbeat = AnimationState::IsEventTriggered(&(npc->_sprite)._animState,GHIDRA_CAST<uint8_t *>("Heartbeat"));
|
||||
if (isHeartbeat == 0) {
|
||||
return;
|
||||
}
|
||||
@@ -6590,7 +6590,7 @@ void NpcHelper::ball_and_chain_render_chain(float *param_1)
|
||||
local_9c = local_9c + (float)dVar5 / pixelScale;
|
||||
local_98.y = local_9c;
|
||||
local_90 = local_98.x;
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1->_visible = 1;
|
||||
DAT_00c78ef4 = 1;
|
||||
(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(&(DAT_00c78ef8)) + 0x0))) = 1;
|
||||
@@ -6604,7 +6604,7 @@ void NpcHelper::ball_and_chain_render_chain(float *param_1)
|
||||
(local_90 - renderPos.x) * (local_90 - renderPos.x));
|
||||
BeamRenderer::Add(&local_98,color_00,1.0,fVar2);
|
||||
BeamRenderer::End();
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
local_8c = g_displayPixelRatio;
|
||||
pLVar1->_visible = 0;
|
||||
local_8c = local_8c * g_screenPointScale;
|
||||
@@ -6619,10 +6619,10 @@ void NpcHelper::ball_and_chain_render_chain(float *param_1)
|
||||
renderPos.x = snappedX + *param_1;
|
||||
local_98.x = *GHIDRA_CAST<float *>((in_ECX + 0xec));
|
||||
*GHIDRA_CAST<uint32_t *>((in_ECX + 0xec)) = 0;
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1->_visible = 1;
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(sprite))))->Sprite::RenderLayer(2,&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1->_visible = 0;
|
||||
*GHIDRA_CAST<float *>((in_ECX + 0xec)) = local_98.x;
|
||||
}
|
||||
@@ -7319,9 +7319,9 @@ void NpcHelper::leper_flesh_ai(Entity_NPC *npc)
|
||||
pbVar5 = (npc->_sprite)._animState._animData;
|
||||
if (pbVar5 == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_005489d8:
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(local_c8,1);
|
||||
bVar2 = ANM2::SetAnimation(&npc->_sprite,local_c8,1);
|
||||
if (bVar2 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -7772,12 +7772,12 @@ LAB_0054f962:
|
||||
if (iVar7 == 5) {
|
||||
fVar13 = -fVar13;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(&npc->_sprite,layerIndex);
|
||||
(layer->_pos).x = (fVar12 - fVar11) * 0.65;
|
||||
(layer->_pos).y = ((fVar14 - fVar15) + (fVar1 - fVar13)) * 0.65;
|
||||
dVar2 = __uint_to_double_fixup[-(GHIDRA_INT(layerIndex) >> 0x1f)];
|
||||
fVar12 = *pfVar5;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(&npc->_sprite,layerIndex);
|
||||
pfVar5 = pfVar5 + 1;
|
||||
layer->_visible = fVar12 <= -6.0 - (float)((double)GHIDRA_INT(layerIndex) + dVar2) * 3.0;
|
||||
layerIndex = layerIndex + 1;
|
||||
@@ -7968,7 +7968,7 @@ void NpcHelper::willo_attack(Entity_NPC *npc)
|
||||
npc->_state = 3;
|
||||
return;
|
||||
}
|
||||
isEventTriggered = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::IsEventTriggered(&DAT_00b6166c);
|
||||
isEventTriggered = AnimationState::IsEventTriggered(&(npc->_sprite)._animState,&DAT_00b6166c);
|
||||
manager = g_manager;
|
||||
if (isEventTriggered != 0) {
|
||||
local_b8 = 1.0;
|
||||
@@ -7985,7 +7985,7 @@ void NpcHelper::willo_attack(Entity_NPC *npc)
|
||||
if ((npc->_sprite)._animState._animData == (void *)0x0) {
|
||||
return;
|
||||
}
|
||||
isEventTriggered = (GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("Shoot"));
|
||||
isEventTriggered = AnimationState::IsEventTriggered(&(npc->_sprite)._animState,GHIDRA_CAST<uint8_t *>("Shoot"));
|
||||
manager = g_manager;
|
||||
if (isEventTriggered == 0) {
|
||||
return;
|
||||
@@ -8105,9 +8105,9 @@ LAB_00559175:
|
||||
}
|
||||
}
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&willo->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("UnderwaterSpawn"),1);
|
||||
bVar1 = ANM2::SetAnimation(&willo->_sprite,GHIDRA_CAST<uint8_t *>("UnderwaterSpawn"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(willo->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(willo->_sprite)._animState);
|
||||
(willo->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
return willo;
|
||||
@@ -8140,9 +8140,9 @@ LAB_005590d5:
|
||||
if ((flagsHigh == 0) && ((animData[0x34] == 0 || ((willo->_sprite)._animState._isPlaying != 0))))
|
||||
goto LAB_00559108;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&willo->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("UnderwaterAttack"),1);
|
||||
bVar1 = ANM2::SetAnimation(&willo->_sprite,GHIDRA_CAST<uint8_t *>("UnderwaterAttack"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(willo->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(willo->_sprite)._animState);
|
||||
(willo->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_00559108:
|
||||
@@ -8860,7 +8860,7 @@ void NpcHelper::clutch_spawn_fire(Entity_NPC *npc, Entity *target)
|
||||
animPathCapacity = &DAT_0000002f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_4c))) + 0x10))),"gfx/009.002_Fire Projectile.anm2",0x21);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((fireSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
ANM2::Load(fireSprite,GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (&DAT_0000000f < animPathCapacity) {
|
||||
size = animPathCapacity + 1;
|
||||
@@ -8902,9 +8902,9 @@ LAB_00572e4b:
|
||||
((*GHIDRA_CAST<char *>((GHIDRA_INT((fire->_sprite)._animState._animData) + 0x34)) == '\0' ||
|
||||
((fire->_sprite)._animState._isPlaying != 0)))) goto LAB_00572e7c;
|
||||
}
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((fireSprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Flickering"),1);
|
||||
bVar4 = ANM2::SetAnimation(fireSprite,GHIDRA_CAST<uint8_t *>("Flickering"),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(fire->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(fire->_sprite)._animState);
|
||||
(fire->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_00572e7c:
|
||||
@@ -8912,7 +8912,7 @@ LAB_00572e7c:
|
||||
pbVar6 = GHIDRA_CAST<uint8_t *>(0x0);
|
||||
if ((local_50->_sprite)._layerCount != 0) {
|
||||
do {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((fireSprite)))->ANM2::GetLayer(pbVar6);
|
||||
layer = ANM2::GetLayer(fireSprite,pbVar6);
|
||||
fVar3 = fRam00c34e34;
|
||||
fVar2 = fRam00c34e30;
|
||||
fVar9 = fRam00c34e2c;
|
||||
@@ -9000,11 +9000,11 @@ void NpcHelper::clutch_render(Entity_NPC *npc, Vector *offset)
|
||||
int *pointDeque;
|
||||
|
||||
if (npc->_variant == 0) {
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
if ((0.0 < (pLVar1->_color)._tint[3]) && ((npc->_vectorDeque1)._size != 0)) {
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1->_visible = 1;
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
layerId = GHIDRA_CAST<uint8_t *>(0x1);
|
||||
layerOffset = 0x3c;
|
||||
pLVar1->_visible = 1;
|
||||
@@ -9067,7 +9067,7 @@ void NpcHelper::clutch_render(Entity_NPC *npc, Vector *offset)
|
||||
if (iVar3 == 7) {
|
||||
segmentStretch = 1.0;
|
||||
LAB_00575d73:
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(layerId);
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,layerId);
|
||||
(pLVar1->_size).x = segmentStretch;
|
||||
(pLVar1->_size).y = 1.0;
|
||||
if ((npc->_sprite)._flipX == 0) {
|
||||
@@ -9093,10 +9093,10 @@ LAB_00575d73:
|
||||
iVar6 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar6 + 4)) + (*GHIDRA_CAST<int *>((iVar6 + 8)) - 1U & pointBlock) * 4));
|
||||
fVar7 = atan2f(pfVar2[1] - *GHIDRA_CAST<float *>((iVar6 + 4 + pointSlotOffset)),
|
||||
*pfVar2 - *GHIDRA_CAST<float *>((iVar6 + pointSlotOffset)));
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(layerId);
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,layerId);
|
||||
pLVar1->_rotation = fVar7 * 57.295776 * flipSign;
|
||||
if ((npc->_sprite)._overlayAnimState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._overlayAnimState)))->AnimationState::SetFrameFloat((float)iVar3);
|
||||
AnimationState::SetFrameFloat(&(npc->_sprite)._overlayAnimState,(float)iVar3);
|
||||
}
|
||||
if ((npc->_sprite)._loaded != 0) {
|
||||
if ((npc->_sprite)._overlayRenderFirst == 0) {
|
||||
@@ -9183,9 +9183,9 @@ LAB_00575ed0:
|
||||
layerId = layerId + 1;
|
||||
layerOffset = layerOffset + 4;
|
||||
} while (layerOffset < 0x41);
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar1->_visible = 0;
|
||||
pLVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1 = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar1->_visible = 0;
|
||||
}
|
||||
}
|
||||
@@ -9465,9 +9465,9 @@ LAB_00576915:
|
||||
goto LAB_00576948;
|
||||
}
|
||||
ExceptionList = &local_10;
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(&DAT_00b61c98,1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,&DAT_00b61c98,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_00576948:
|
||||
@@ -9666,9 +9666,9 @@ LAB_00583029:
|
||||
if ((uVar2 == 0) && ((animData[0x34] == 0 || ((segment->_sprite)._animState._isPlaying != 0))))
|
||||
goto LAB_00583051;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&segment->_sprite)))->ANM2::SetAnimation(anim,1);
|
||||
bVar1 = ANM2::SetAnimation(&segment->_sprite,anim,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(segment->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(segment->_sprite)._animState);
|
||||
(segment->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_00583051:
|
||||
@@ -10923,7 +10923,7 @@ void NpcHelper::tuff_twins_play_anim(Entity_NPC *npc, uint8_t *animName, int unu
|
||||
if (0xf < fullAnimCapacity) {
|
||||
ppppbVar2 = fullAnim[0];
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(ppppbVar2),0);
|
||||
ANM2::Play(&npc->_sprite,GHIDRA_CAST<uint8_t *>(ppppbVar2),0);
|
||||
if (0xf < fullAnimCapacity) {
|
||||
oldSize = fullAnimCapacity + 1;
|
||||
ppppbVar2 = fullAnim[0];
|
||||
@@ -11065,7 +11065,7 @@ void NpcHelper::tuff_twins_body_attack_anim(Entity_NPC *npc)
|
||||
}
|
||||
tuff_twins_play_anim(npc,GHIDRA_CAST<uint8_t *>(attackAnim),unused);
|
||||
if ((npc->_sprite)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::SetFrameFloat((float)savedFrame);
|
||||
AnimationState::SetFrameFloat(&(npc->_sprite)._animState,(float)savedFrame);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -11866,9 +11866,9 @@ LAB_005ab305:
|
||||
if ((animCompare == 0) && ((animData[0x34] == 0 || ((npc->_sprite)._animState._isPlaying != 0)))
|
||||
) goto LAB_005ab33c;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(&DAT_00c7f858,1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,&DAT_00c7f858,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_005ab33c:
|
||||
@@ -12951,9 +12951,9 @@ LAB_006d0fd5:
|
||||
if ((uVar2 == 0) && ((animData[0x34] == 0 || ((npc->_sprite)._animState._isPlaying != 0))))
|
||||
goto LAB_006d1001;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar1 = ANM2::SetAnimation(sprite,s_Idle,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -12986,7 +12986,7 @@ LAB_006d107e:
|
||||
local_c = (fVar5 * 0.9) / npc->_maxHitPoints + 0.1;
|
||||
local_10 = local_c * g_vectorOne.y;
|
||||
local_c = local_c * g_vectorOne.x;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(layer->_size).x = local_c;
|
||||
(layer->_size).y = local_10;
|
||||
if (npc->_health <= 1.5 && npc->_health != 1.5) goto LAB_006d114a;
|
||||
@@ -13002,7 +13002,7 @@ LAB_006d114a:
|
||||
npc->_state = 0x10;
|
||||
npc->_entityCollisionClass = 0;
|
||||
npc->_entityGridCollisionClass = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Disappear"),0);
|
||||
ANM2::Play(sprite,GHIDRA_CAST<uint8_t *>("Disappear"),0);
|
||||
goto LAB_006d1556;
|
||||
}
|
||||
}
|
||||
@@ -13059,7 +13059,7 @@ LAB_006d12d6:
|
||||
local_10 = (npc->_health * 0.9) / npc->_maxHitPoints + 0.1;
|
||||
local_c = local_10 * g_vectorOne.y;
|
||||
local_10 = local_10 * g_vectorOne.x;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(layer->_size).x = local_10;
|
||||
(layer->_size).y = local_c;
|
||||
if (1.5 < npc->_health || npc->_health == 1.5) goto LAB_006d1556;
|
||||
@@ -13069,9 +13069,9 @@ LAB_006d12d6:
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_006d13b6:
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Disappear"),1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Disappear"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -13116,15 +13116,15 @@ LAB_006d13a8:
|
||||
local_10 = (fVar4 * 0.9) / npc->_maxHitPoints + 0.1;
|
||||
local_c = local_10 * g_vectorOne.y;
|
||||
local_10 = local_10 * g_vectorOne.x;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(layer->_size).x = local_10;
|
||||
(layer->_size).y = local_c;
|
||||
animData = (npc->_sprite)._animState._animData;
|
||||
if (animData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_006d14f6:
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&npc->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Appear"),1);
|
||||
bVar1 = ANM2::SetAnimation(&npc->_sprite,GHIDRA_CAST<uint8_t *>("Appear"),1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(npc->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(npc->_sprite)._animState);
|
||||
(npc->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user