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
+117
-117
@@ -147,9 +147,9 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
flagsHigh = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&this->_flags) + 4));
|
||||
*GHIDRA_CAST<uint32_t *>(&this->_flags) = GHIDRA_UINT(this->_flags) & 0xfffffffb;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&this->_flags) + 4)) = flagsHigh;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x3));
|
||||
layer->_visible = 0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(&DAT_00000004);
|
||||
layer = ANM2::GetLayer(&this->_sprite,&DAT_00000004);
|
||||
layer->_visible = 0;
|
||||
this->_stateFrame = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&this->_projectileCooldown) + 2)) = 0;
|
||||
@@ -185,7 +185,7 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
local_28 = GHIDRA_CAST<Entity_NPC *>(&DAT_0000002f);
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_50))) + 0x14))),"gfx/965.001_hornfel minecart.anm2",0x22);
|
||||
local_14 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&newMinecart->_sprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_50 + 0x14)),1);
|
||||
ANM2::Load(&newMinecart->_sprite,GHIDRA_CAST<std_string *>((local_50 + 0x14)),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (GHIDRA_CAST<Entity_NPC *>(&DAT_0000000f) < local_28) {
|
||||
size = GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_28)) + 0x1))));
|
||||
@@ -221,7 +221,7 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
if ((0 < timer) && (timer = timer + -1, *GHIDRA_CAST<short *>(&this->_projectileDelay) = timer, timer < 1)) {
|
||||
if (this->_state == 0xe) {
|
||||
if (*GHIDRA_CAST<char *>((GHIDRA_INT(&this->_projectileDelay) + 3)) != '\0') {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Taunt"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Taunt"),0);
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&this->_projectileCooldown) + 3)) = 0x96;
|
||||
puVar3 = puStack_20;
|
||||
}
|
||||
@@ -238,7 +238,7 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
this->_friction = this->_friction * 0.8;
|
||||
if (ABS(absDirY) < ABS(fVar13)) {
|
||||
puStack_20 = local_50 + 0x4c;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("RunHori"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("RunHori"),0);
|
||||
bVar12 = (this->_velocity).x <= 0.0 && (this->_velocity).x != 0.0;
|
||||
}
|
||||
else {
|
||||
@@ -250,9 +250,9 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
if (animName == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_004ba3e5:
|
||||
puStack_20 = local_50 + 0x4c;
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(local_fc),1);
|
||||
bVar4 = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>(local_fc),1);
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_sprite)._animState);
|
||||
(this->_sprite)._animState._isPlaying = 1;
|
||||
activeRoom = room;
|
||||
}
|
||||
@@ -572,7 +572,7 @@ LAB_004b9d9e:
|
||||
((*GHIDRA_CAST<char *>((GHIDRA_INT(&this->_projectileCooldown) + 3)) == '\0' &&
|
||||
(uVar5 = Random(), puVar3 = puStack_20, uVar5 % 10 == 0)))) &&
|
||||
(0.5 < this->_health / this->_maxHitPoints)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Taunt"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Taunt"),0);
|
||||
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&this->_projectileCooldown) + 3)) = 0x96;
|
||||
puVar3 = puStack_20;
|
||||
}
|
||||
@@ -715,7 +715,7 @@ LAB_004b9d9e:
|
||||
break;
|
||||
case 0xb:
|
||||
puStack_20 = local_50 + 0x4c;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("ChargeFinish"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("ChargeFinish"),0);
|
||||
bVar4 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::IsEventTriggered("Shoot");
|
||||
if (bVar4 != 0) {
|
||||
(GHIDRA_CAST<ProjectileParams *>((&projectileParams)))->ProjectileParams::ProjectileParams();
|
||||
@@ -746,7 +746,7 @@ LAB_004b9d9e:
|
||||
projectile->_fallingAccel = projectile->_fallingAccel - 0.6;
|
||||
projectile->_fallingSpeed = projectile->_fallingSpeed * 0.7 - 3.0;
|
||||
}
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::WasEventTriggered(GHIDRA_CAST<uint8_t *>("Shoot"));
|
||||
bVar4 = ANM2::WasEventTriggered(&this->_sprite,GHIDRA_CAST<uint8_t *>("Shoot"));
|
||||
absDirY = (local_12c->_v2).x;
|
||||
puVar3 = puStack_20;
|
||||
if (bVar4 == 0) {
|
||||
@@ -770,7 +770,7 @@ LAB_004b9d9e:
|
||||
break;
|
||||
case 0xc:
|
||||
puStack_20 = local_50 + 0x4c;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Detonate"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Detonate"),0);
|
||||
bVar4 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::IsEventTriggered("Sound");
|
||||
if (bVar4 != 0) {
|
||||
PlaySound(this,0xfc,1.0,2,0,1.0);
|
||||
@@ -796,7 +796,7 @@ LAB_004b9d9e:
|
||||
}
|
||||
break;
|
||||
case 0x10:
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("DecoyIdle"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("DecoyIdle"),0);
|
||||
if (0.0 < this->_pendingDamage) {
|
||||
if ((this->_pendingDamageFlags & 4) == 0) {
|
||||
pfVar10 = *GHIDRA_CAST<float **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8))));
|
||||
@@ -980,7 +980,7 @@ LAB_004baae3:
|
||||
}
|
||||
NpcHelper::minecart_break(local_12c);
|
||||
this->_state = 0xd;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(&DAT_00b1cdf8,0);
|
||||
ANM2::Play(&this->_sprite,&DAT_00b1cdf8,0);
|
||||
puVar1 = &this->_entityRef;
|
||||
this->_entityGridCollisionClass = 5;
|
||||
this->_dead = 0;
|
||||
@@ -1388,9 +1388,9 @@ void Entity_NPC::update_move_direction_anim()
|
||||
}
|
||||
anim = (&PTR_s_Move1_00b1ee78)[this->_i1];
|
||||
if (this->_state == 0x10) {
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(anim,1);
|
||||
bVar1 = ANM2::SetAnimation(&this->_sprite,anim,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;
|
||||
return;
|
||||
@@ -1430,9 +1430,9 @@ LAB_004ce865:
|
||||
}
|
||||
}
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(anim,1);
|
||||
bVar1 = ANM2::SetAnimation(&this->_sprite,anim,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_sprite)._animState);
|
||||
(this->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -1898,7 +1898,7 @@ void Entity_NPC::render_overlay(Vector *offset, uint8_t isShadow)
|
||||
if ((this->_sprite)._animState._animData == (void *)0x0) {
|
||||
return;
|
||||
}
|
||||
pvVar1 = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::GetNullFrame(GHIDRA_CAST<uint8_t *>("CordPos"));
|
||||
pvVar1 = AnimationState::GetNullFrame(&(this->_sprite)._animState,GHIDRA_CAST<uint8_t *>("CordPos"));
|
||||
if (pvVar1 == (void *)0x0) {
|
||||
return;
|
||||
}
|
||||
@@ -2112,7 +2112,7 @@ void Entity_NPC::render_overlay(Vector *offset, uint8_t isShadow)
|
||||
do {
|
||||
if (totalLength <= *pfVar2) {
|
||||
if ((this->_sprite)._animState._animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat((float)GHIDRA_INT(uVar3));
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._animState,(float)GHIDRA_INT(uVar3));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2414,7 +2414,7 @@ void Entity_NPC::render_v1_layer_frames()
|
||||
fVar5 = 1.0;
|
||||
}
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT((this->_sprite)._animState._layerFrames) + layerId * 4)) = 0;
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::AdvanceLayerPosition(layerId,fVar5);
|
||||
AnimationState::AdvanceLayerPosition(&(this->_sprite)._animState,layerId,fVar5);
|
||||
LAB_005657ec:
|
||||
fVar5 = (this->_posOffset).y;
|
||||
layer2Height = fVar5;
|
||||
@@ -2425,10 +2425,10 @@ LAB_005657ec:
|
||||
(segmentIndex >> 1 & (this->_vectorDeque1)._mapSize - 1) * 4)) + 4 +
|
||||
(segmentIndex & 1) * 8));
|
||||
fVar1 = (this->_v1).y;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
(pLVar3->_pos).x = 0.0;
|
||||
(pLVar3->_pos).y = (fVar4 - fVar1) * 0.65;
|
||||
layer1 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer1 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
(layer1->_pos).x = (pLVar3->_pos).x;
|
||||
(layer1->_pos).y = (pLVar3->_pos).y;
|
||||
segmentIndex = (this->_vectorDeque1)._offset + 1;
|
||||
@@ -2443,7 +2443,7 @@ LAB_005657ec:
|
||||
(segmentIndex >> 1 & (this->_vectorDeque1)._mapSize - 1) * 4)) + 4 +
|
||||
(segmentIndex & 1) * 8));
|
||||
fVar1 = (this->_v1).y;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
(pLVar3->_pos).x = 0.0;
|
||||
(pLVar3->_pos).y = (fVar4 - fVar1) * 0.65;
|
||||
segment2Index = (this->_vectorDeque1)._offset;
|
||||
@@ -2457,13 +2457,13 @@ LAB_005657ec:
|
||||
4 + (segmentIndex & 1) * 8));
|
||||
fVar1 = *segment1Y;
|
||||
fVar2 = *segment1Y;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3->_flipY = fVar2 <= fVar4 && fVar4 != fVar1;
|
||||
segmentIndex = (this->_vectorDeque1)._offset + 2;
|
||||
fVar4 = *GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_INT((this->_vectorDeque1)._map) +
|
||||
((this->_vectorDeque1)._mapSize - 1 & segmentIndex >> 1) * 4)) +
|
||||
(segmentIndex & 1) * 8));
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3->_flipX = 0.0 < fVar4;
|
||||
segmentIndex = (this->_vectorDeque1)._offset + 2;
|
||||
if (*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_INT((this->_vectorDeque1)._map) +
|
||||
@@ -2474,7 +2474,7 @@ LAB_005657ec:
|
||||
else {
|
||||
fVar4 = -3.0;
|
||||
}
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
(pLVar3->_pos).x = fVar4;
|
||||
segmentIndex = (this->_vectorDeque1)._offset + 2;
|
||||
layer2Height = (*GHIDRA_CAST<float *>((*GHIDRA_CAST<int *>((GHIDRA_INT((this->_vectorDeque1)._map) +
|
||||
@@ -2484,7 +2484,7 @@ LAB_005657ec:
|
||||
}
|
||||
}
|
||||
sprite = &this->_sprite;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
pLVar3 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
if (renderMode == 5) {
|
||||
fVar5 = (fVar5 - 2.0) / 78.0;
|
||||
if (fVar5 <= 0.0) {
|
||||
@@ -2494,7 +2494,7 @@ LAB_005657ec:
|
||||
fVar5 = 1.0;
|
||||
}
|
||||
(pLVar3->_color)._tint[3] = 1.0 - fVar5;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar3 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
fVar5 = (layer1Height - 2.0) / 78.0;
|
||||
if (fVar5 <= 0.0) {
|
||||
fVar5 = 0.0;
|
||||
@@ -2503,7 +2503,7 @@ LAB_005657ec:
|
||||
fVar5 = 1.0;
|
||||
}
|
||||
(pLVar3->_color)._tint[3] = 1.0 - fVar5;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
fVar5 = (layer2Height - 2.0) / 78.0;
|
||||
}
|
||||
else {
|
||||
@@ -2515,7 +2515,7 @@ LAB_005657ec:
|
||||
fVar5 = 1.0;
|
||||
}
|
||||
(pLVar3->_color)._tint[3] = 1.0 - fVar5;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
pLVar3 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
fVar5 = (layer1Height - -2.0) / 18.0;
|
||||
if (fVar5 <= 0.0) {
|
||||
fVar5 = 0.0;
|
||||
@@ -2524,7 +2524,7 @@ LAB_005657ec:
|
||||
fVar5 = 1.0;
|
||||
}
|
||||
(pLVar3->_color)._tint[3] = 1.0 - fVar5;
|
||||
pLVar3 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
pLVar3 = ANM2::GetLayer(sprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
fVar5 = (layer2Height - -2.0) / 18.0;
|
||||
}
|
||||
if (fVar5 <= 0.0) {
|
||||
@@ -2975,9 +2975,9 @@ void Entity_NPC::Constructor()
|
||||
(this->_dirtColor)._offset[0] = 0.0;
|
||||
(this->_dirtColor)._offset[1] = 0.0;
|
||||
(this->_dirtColor)._offset[2] = 0.0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_statusEffectSprite);
|
||||
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),7);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_chargeBarSprite);
|
||||
(this->_hitList)._begin = (void *)0x0;
|
||||
(this->_hitList)._end = (void *)0x0;
|
||||
(this->_hitList)._capacity = (void *)0x0;
|
||||
@@ -3285,8 +3285,8 @@ LAB_006b8f98:
|
||||
msvc::deque<ptr>::_Tidy();
|
||||
msvc::deque<ptr>::_Tidy();
|
||||
msvc::deque<ptr>::_Tidy();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::Reset();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_statusEffectSprite);
|
||||
ANM2::Reset(&this->_chargeBarSprite);
|
||||
hitList = &this->_hitList;
|
||||
if (GHIDRA_CAST<std_vector *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(familiars)) + 0x4)))) != hitList) {
|
||||
oldData = hitList->_begin;
|
||||
@@ -3551,7 +3551,7 @@ LAB_006bafec:
|
||||
if (*GHIDRA_CAST<int *>((local_a8 + bossColorPathSize + 0x54)) == 0) goto LAB_006bafec;
|
||||
psVar4 = GHIDRA_CAST<std_string *>((local_a8 + bossColorPathSize + 0x44));
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(psVar4,0);
|
||||
ANM2::Load(&this->_sprite,psVar4,0);
|
||||
local_ac = GHIDRA_CAST<LayerState *>(&(g_game->_seedEffects)._seedEffects);
|
||||
local_a8 = GHIDRA_CAST<uint8_t *>(0x4f);
|
||||
msvc::set<int>::find_node(local_54._buf + 0xc,&local_a8);
|
||||
@@ -3572,7 +3572,7 @@ LAB_006bafec:
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_54._buf))) + 0x0))),
|
||||
"gfx/promo/gfuel/102.001_g baby (true final boss).anm2",0x36);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(&local_54,1);
|
||||
ANM2::Load(&this->_sprite,&local_54,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < local_54._capacity) {
|
||||
uVar6 = local_54._capacity + 1;
|
||||
@@ -3696,7 +3696,7 @@ LAB_006bb6be:
|
||||
sprite = &this->_sprite;
|
||||
layerSprite = GHIDRA_CAST<Sprite *>(sprite);
|
||||
do {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(sprite,layerIndex);
|
||||
local_ac = layer;
|
||||
if (layer->_layerData == (void *)0x0) {
|
||||
layerString._size = 0;
|
||||
@@ -3873,7 +3873,7 @@ LAB_006bb394:
|
||||
spriteBitflags = &(this->_sprite)._bitflags;
|
||||
*spriteBitflags = *spriteBitflags & 0xffffffdf;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::LoadGraphics((uint8_t)championColor);
|
||||
ANM2::LoadGraphics(&this->_sprite,(uint8_t)championColor);
|
||||
if (isDirtColorNeeded != '\0') {
|
||||
UpdateDirtColor(this,1);
|
||||
}
|
||||
@@ -3959,9 +3959,9 @@ void Entity_NPC::LoadEntityConfig()
|
||||
if (0xf < (this->_sprite)._animDefaultName._capacity) {
|
||||
anim = *GHIDRA_CAST<std_string **>((this->_sprite)._animDefaultName._buf);
|
||||
}
|
||||
hasRoomConfigFlag = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(anim),1);
|
||||
hasRoomConfigFlag = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>(anim),1);
|
||||
if (((hasRoomConfigFlag != 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;
|
||||
}
|
||||
@@ -4089,7 +4089,7 @@ void Entity_NPC::LoadEntityConfig()
|
||||
}
|
||||
this->ResetColor();
|
||||
load_graphics(this,1);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetFrame(&(this->_sprite)._animDefaultName,0);
|
||||
ANM2::SetFrame(&this->_sprite,&(this->_sprite)._animDefaultName,0);
|
||||
local_8 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((local_34)))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c)))->msvc::string::_Tidy_deallocate();
|
||||
@@ -4550,7 +4550,7 @@ LAB_006c05af:
|
||||
}
|
||||
sprite = &this->_sprite;
|
||||
do {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(sprite,layerIndex);
|
||||
stringDestructFlags = stringDestructFlags | 4;
|
||||
currentLayer = layer;
|
||||
if (layer->_layerData == (void *)0x0) {
|
||||
@@ -5078,7 +5078,7 @@ void Entity_NPC::ResetColor()
|
||||
isChampionLayer = '\0';
|
||||
if ((this->_sprite)._layerCount != 0) {
|
||||
do {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(layerIdx);
|
||||
layer = ANM2::GetLayer(&this->_sprite,layerIdx);
|
||||
if ((layer->_bitflags & 0x10) != 0) {
|
||||
isChampionLayer = '\x01';
|
||||
goto LAB_006c115c;
|
||||
@@ -5851,16 +5851,16 @@ LAB_006c4f12:
|
||||
if ((this->_statusEffectSprite)._loaded == 0) {
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/StatusEffects.anm2"));
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
ANM2::Load(&this->_statusEffectSprite,GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::_Tidy_deallocate();
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::IsPlaying(&s_empty);
|
||||
bVar2 = ANM2::IsPlaying(&this->_statusEffectSprite,&s_empty);
|
||||
if ((bVar2 != 0) && ((this->_statusEffectSprite)._loaded != 0)) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_statusEffectSprite)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_statusEffectSprite)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(this->_statusEffectSprite)._animState);
|
||||
AnimationState::Update(&(this->_statusEffectSprite)._overlayAnimState);
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(local_290),0);
|
||||
ANM2::Play(&this->_statusEffectSprite,GHIDRA_CAST<uint8_t *>(local_290),0);
|
||||
(this->_statusEffectSprite)._bitflags = iVar16 << 0x1f;
|
||||
}
|
||||
iVar16 = this->_pauseTimer;
|
||||
@@ -6046,12 +6046,12 @@ LAB_006c5358:
|
||||
if (this->_type != 0x3e) {
|
||||
this->_visible = 1;
|
||||
}
|
||||
pvVar8 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>("Appear"));
|
||||
pvVar8 = ANM2::GetAnimationData(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear"));
|
||||
if (pvVar8 != (void *)0x0) {
|
||||
if (this->_type != 0x10a) {
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::RemoveOverlay();
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Appear"),1);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear"),1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -6060,15 +6060,15 @@ LAB_006c56aa:
|
||||
local_281 = 0;
|
||||
}
|
||||
else {
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsFinishedImpl(GHIDRA_CAST<uint8_t *>("Appear"));
|
||||
bVar2 = ANM2::IsFinishedImpl(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear"));
|
||||
if ((bVar2 == 0) &&
|
||||
(pvVar8 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>("Appear")), pvVar8 != (void *)0x0)
|
||||
(pvVar8 = ANM2::GetAnimationData(&this->_sprite,GHIDRA_CAST<uint8_t *>("Appear")), pvVar8 != (void *)0x0)
|
||||
) {
|
||||
(GHIDRA_CAST<msvc::string *>((local_64)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("Appear"));
|
||||
local_14 = 3;
|
||||
local_2a4 = GHIDRA_CAST<Entity_Effect *>(&DAT_00000004);
|
||||
pAVar18 = GHIDRA_CAST<ANM2 *>(Config)::GetPillEffects();
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_4c + 0x10)));
|
||||
ANM2::GetAnimation(pAVar18,GHIDRA_CAST<std_string *>((local_4c + 0x10)));
|
||||
local_28c = GHIDRA_CAST<Entity_Effect *>(0xc);
|
||||
cVar3 = FUN_0040c7c0();
|
||||
if (cVar3 == '\0') goto LAB_006c56aa;
|
||||
@@ -6154,9 +6154,9 @@ LAB_006c58e9:
|
||||
|| ((iVar16 == 0xed && (this->_variant == 2)))))) {
|
||||
pAVar18 = &this->_sprite;
|
||||
local_2a0 = pAVar18;
|
||||
pvVar8 = (GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>("Flush"));
|
||||
pvVar8 = ANM2::GetAnimationData(pAVar18,GHIDRA_CAST<uint8_t *>("Flush"));
|
||||
if (pvVar8 != (void *)0x0) {
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Flush"),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>("Flush"),0);
|
||||
iVar16 = this->_state;
|
||||
this->_renderZOffset = 5000;
|
||||
goto LAB_006c59c4;
|
||||
@@ -6171,7 +6171,7 @@ LAB_006c59c4:
|
||||
if (iVar16 == 0x12) {
|
||||
LAB_006c59d3:
|
||||
pAVar18 = &this->_sprite;
|
||||
pvVar8 = (GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::GetAnimationData(GHIDRA_CAST<uint8_t *>("Death"));
|
||||
pvVar8 = ANM2::GetAnimationData(pAVar18,GHIDRA_CAST<uint8_t *>("Death"));
|
||||
iVar16 = this->_type;
|
||||
if (pvVar8 == (void *)0x0) {
|
||||
if (iVar16 == 0x1c) {
|
||||
@@ -6179,7 +6179,7 @@ LAB_006c59d3:
|
||||
if (iVar16 == 0) {
|
||||
deathAnim = "DeathHead";
|
||||
LAB_006c5b7b:
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(deathAnim),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>(deathAnim),0);
|
||||
}
|
||||
else {
|
||||
if (iVar16 == 1) {
|
||||
@@ -6191,7 +6191,7 @@ LAB_006c5b7b:
|
||||
goto LAB_006c5b7b;
|
||||
}
|
||||
}
|
||||
iVar16 = (GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::GetFrame();
|
||||
iVar16 = ANM2::GetFrame(pAVar18);
|
||||
if (iVar16 == 3) {
|
||||
PlaySound(this,0x74,1.0,2,0,1.0);
|
||||
}
|
||||
@@ -6201,17 +6201,17 @@ LAB_006c5b7b:
|
||||
if (this->_parent == 0) {
|
||||
deathAnim = "DeathHead";
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>(deathAnim),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>(deathAnim),0);
|
||||
}
|
||||
else if (iVar16 == 0x3e) {
|
||||
if (this->_parent == 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("DeathHead"),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>("DeathHead"),0);
|
||||
}
|
||||
else if (this->_child == 0) {
|
||||
this->Remove();
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("DeathBody01"),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>("DeathBody01"),0);
|
||||
}
|
||||
}
|
||||
else if (((iVar16 != 0x4a) && (iVar16 != 0x4b)) && (iVar16 != 0x4c)) {
|
||||
@@ -6221,43 +6221,43 @@ LAB_006c5b7b:
|
||||
}
|
||||
else if (iVar16 == 0x19b) {
|
||||
if (this->_variant == 1) {
|
||||
local_288 = GHIDRA_CAST<Room *>((GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2)::GetLayer(&DAT_00b6767c);
|
||||
local_288 = GHIDRA_CAST<Room *>(ANM2)::GetLayer(pAVar18,&DAT_00b6767c);
|
||||
if (local_288 == GHIDRA_CAST<Room *>(0x0)) {
|
||||
local_2a0 = pAVar18;
|
||||
}
|
||||
else {
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar16 = _ptr_deref_or_minus1();
|
||||
pvVar8 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetLayerFrame(iVar16);
|
||||
pvVar8 = AnimationState::GetLayerFrame(animState,iVar16);
|
||||
if ((pvVar8 != (void *)0x0) && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(pvVar8) + 0x2c)) != '\0')) {
|
||||
(GHIDRA_CAST<ANM2 *>((local_2a0)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("HandDeath"),0);
|
||||
ANM2::Play(local_2a0,GHIDRA_CAST<uint8_t *>("HandDeath"),0);
|
||||
goto LAB_006c5c3e;
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((local_2a0)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("SmallHoleClose"),0);
|
||||
ANM2::Play(local_2a0,GHIDRA_CAST<uint8_t *>("SmallHoleClose"),0);
|
||||
}
|
||||
else if (this->_variant == 2) {
|
||||
FUN_0044bf90(0);
|
||||
}
|
||||
else {
|
||||
pAVar12 = GHIDRA_CAST<ANM2 *>(Config)::GetPillEffects();
|
||||
psVar6 = (GHIDRA_CAST<ANM2 *>((pAVar12)))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_4c + 0x10)));
|
||||
psVar6 = ANM2::GetAnimation(pAVar12,GHIDRA_CAST<std_string *>((local_4c + 0x10)));
|
||||
local_14 = 4;
|
||||
local_281 = str_ne(psVar6,GHIDRA_CAST<uint8_t *>("BigHoleClose"));
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::_Tidy_deallocate();
|
||||
if (local_281 != 0) {
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Death"),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>("Death"),0);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (iVar16 == 0x195) {
|
||||
local_29c = GHIDRA_CAST<Room *>((GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2)::GetLayer(s_Head);
|
||||
local_29c = GHIDRA_CAST<Room *>(ANM2)::GetLayer(pAVar18,s_Head);
|
||||
if (local_29c != GHIDRA_CAST<Room *>(0x0)) {
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar16 = _ptr_deref_or_minus1();
|
||||
pvVar8 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetLayerFrame(iVar16);
|
||||
pvVar8 = AnimationState::GetLayerFrame(animState,iVar16);
|
||||
if ((pvVar8 == (void *)0x0) || (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(pvVar8) + 0x2c)) == '\0')) {
|
||||
bVar2 = 0;
|
||||
}
|
||||
@@ -6268,7 +6268,7 @@ LAB_006c5b7b:
|
||||
pAVar18 = local_2a0;
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Death"),0);
|
||||
ANM2::Play(pAVar18,GHIDRA_CAST<uint8_t *>("Death"),0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6291,7 +6291,7 @@ LAB_006c5c89:
|
||||
if (bVar2 != 0) {
|
||||
SoundEffects::PlayWithFartOverride(0x48,1.0,2,0,1.0);
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsFinishedImpl(&s_empty);
|
||||
bVar2 = ANM2::IsFinishedImpl(&this->_sprite,&s_empty);
|
||||
if ((bVar2 != 0) && (this->_dead != 0)) {
|
||||
(GHIDRA_CAST<ProjectileParams *>((&projectileParams)))->ProjectileParams::ProjectileParams();
|
||||
pPVar31 = &projectileParams;
|
||||
@@ -6313,7 +6313,7 @@ LAB_006c5c89:
|
||||
}
|
||||
}
|
||||
else if (iVar16 == 0x393) {
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::IsFinishedImpl(&s_empty);
|
||||
bVar2 = ANM2::IsFinishedImpl(&this->_sprite,&s_empty);
|
||||
if ((bVar2 != 0) && (this->_dead != 0)) {
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_a0))))->Color::Color();
|
||||
damageSource = 0;
|
||||
@@ -6345,8 +6345,8 @@ LAB_006c5c89:
|
||||
(**(code **)(*piVar14 + 0x3c))(&this->_splatColor,0xffffffff,0xff,0,1);
|
||||
SoundEffects::PlayWithFartOverride(0x1e,1.0,2,0,1.0);
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar16 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetAnimationLength();
|
||||
iVar15 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
iVar16 = AnimationState::GetAnimationLength(animState);
|
||||
iVar15 = ANM2::GetFrame(&this->_sprite);
|
||||
if (iVar16 + -1 <= iVar15) {
|
||||
SoundEffects::PlayWithFartOverride(0x105,1.0,2,0,1.0);
|
||||
uVar4 = Random();
|
||||
@@ -6413,7 +6413,7 @@ LAB_006c5c89:
|
||||
(((this->_initSeed & 1) == 0 ||
|
||||
(bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::IsType(0x38c,-1,-1), bVar2 != 0)))) {
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar16 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::NextEventTrigger(GHIDRA_CAST<uint8_t *>("Explosion"));
|
||||
iVar16 = AnimationState::NextEventTrigger(animState,GHIDRA_CAST<uint8_t *>("Explosion"));
|
||||
_empty_check_0x34();
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar23)) + 0x0))) + 10.0 <= (float)iVar16) {
|
||||
fVar19 = (long double)(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::PlaybackSpeed();
|
||||
@@ -6427,7 +6427,7 @@ LAB_006c5c89:
|
||||
msvc::string::string_from_cstr
|
||||
(local_4c + 0x10,GHIDRA_CAST<uint8_t *>("gfx/promo/gfuel/effects/explosion_delayed.anm2"));
|
||||
local_14 = 5;
|
||||
(GHIDRA_CAST<ANM2 *>((pAVar18)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
ANM2::Load(pAVar18,GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::_Tidy_deallocate();
|
||||
sprite = GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Entity *>((pEVar7)))->Entity)::GetSprite();
|
||||
@@ -6577,7 +6577,7 @@ LAB_006c5c89:
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0x1e);
|
||||
SoundEffects::PlayWithFartOverride(0x10a,1.0,2,0,1.0);
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(sprite))))->ANM2::IsFinishedImpl(&s_empty);
|
||||
bVar2 = ANM2::IsFinishedImpl(GHIDRA_CAST<ANM2 *>(sprite),&s_empty);
|
||||
if ((bVar2 != 0) && (this->_exists != 0)) {
|
||||
trigger_kill_item_effects(this);
|
||||
}
|
||||
@@ -6758,7 +6758,7 @@ LAB_006c6d40:
|
||||
}
|
||||
tmpColor = GHIDRA_CAST<ColorMod *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite)::Color();
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_a0))))->Color::operator_assign(tmpColor);
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_a0))))->Font::SetLineHeightModifier(this->_flickerAlpha);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_a0),this->_flickerAlpha);
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::SetColor(GHIDRA_CAST<ColorMod *>(local_a0));
|
||||
}
|
||||
iVar16 = this->_championColorIdx;
|
||||
@@ -6858,10 +6858,10 @@ LAB_006c7154:
|
||||
(GHIDRA_INT(this->_championRegenTimer) - GHIDRA_INT(local_288) < 5)) {
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/024.000_Globin.anm2"));
|
||||
local_14 = 7;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
ANM2::Load(&this->_sprite,GHIDRA_CAST<std_string *>((local_4c + 0x10)),1);
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((local_4c + 0x10)))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("ReGenChamp"),1);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("ReGenChamp"),1);
|
||||
LAB_006c7308:
|
||||
this->ResetColor();
|
||||
}
|
||||
@@ -7861,7 +7861,7 @@ LAB_006c930b:
|
||||
this = npc;
|
||||
tmpColor = &npc->_floorColor;
|
||||
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(tmpColor))))->KColor::FromRGBA255(0,0,0,0xff);
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(tmpColor))))->Font::SetLineHeightModifier(0.7);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(tmpColor),0.7);
|
||||
pEVar9 = GHIDRA_CAST<Entity_Effect *>((local_38._red * 0.9));
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(tmpColor))))->Color::SetOffset((float)pEVar9,local_38._green * 0.9,local_38._blue * 0.9);
|
||||
sprite = GHIDRA_CAST<Sprite *>(&this->_sprite);
|
||||
@@ -7882,7 +7882,7 @@ LAB_006c930b:
|
||||
FUN_0041c710();
|
||||
local_298.y = (GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(&this->_floorColor))))->Color::A();
|
||||
fVar20 = Math::lerp(local_298.y,0.7,0.3,0);
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(&this->_floorColor))))->Font::SetLineHeightModifier(fVar20);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(&this->_floorColor),fVar20);
|
||||
local_298.y = local_38._blue * 0.9;
|
||||
fVar19 = (long double)Color::BO();
|
||||
local_2b8.y = (float)fVar19;
|
||||
@@ -7901,7 +7901,7 @@ LAB_006c930b:
|
||||
Color::Lerp(GHIDRA_CAST<ColorMod *>(local_cc),GHIDRA_CAST<ColorMod *>(local_a0),&this->_floorColor,0.1);
|
||||
spriteColor = GHIDRA_CAST<Color *>((GHIDRA_CAST<Sprite *>((sprite)))->Sprite)::Color();
|
||||
fVar20 = (GHIDRA_CAST<Color *>((spriteColor)))->Color::A();
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_cc))))->Font::SetLineHeightModifier(fVar20);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_cc),fVar20);
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_cc))))->Color::SetTint(0.02,0.02,0.02,1.0);
|
||||
(GHIDRA_CAST<Sprite *>((sprite)))->Sprite::SetColor(GHIDRA_CAST<ColorMod *>(local_cc));
|
||||
}
|
||||
@@ -8077,7 +8077,7 @@ LAB_006ca09e:
|
||||
if (bVar2 == 0) {
|
||||
if ((this->_type == 0x322) && (this->_state == 8)) {
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::IsLoopingAnimation();
|
||||
bVar2 = AnimationState::IsLoopingAnimation(animState);
|
||||
if ((bVar2 != 0) && (bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::IsFrame(3,this->_index), bVar2 != 0))
|
||||
goto LAB_006ca297;
|
||||
}
|
||||
@@ -8181,7 +8181,7 @@ LAB_006ca2e9:
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::Stop();
|
||||
FUN_0040a9c0();
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::RemoveStatusEffects();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_statusEffectSprite);
|
||||
this->SetCollisionDamage(0);
|
||||
this->_entityCollisionClass = 4;
|
||||
if ((this->_entityGridCollisionClass < 3) || (this->_entityGridCollisionClass == 7)) {
|
||||
@@ -8346,7 +8346,7 @@ LAB_006ca9aa:
|
||||
*GHIDRA_CAST<int *>((effect[1]._sprite._filename._buf + 8)) = damageEvent;
|
||||
(effect->_posOffset).x = (this->_posOffset).x;
|
||||
(effect->_posOffset).y = (this->_posOffset).y;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&effect->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&effect->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
if (&layer->_color != GHIDRA_CAST<ColorMod *>(&sourceRef)) {
|
||||
(layer->_color)._tint[0] = 1.0;
|
||||
(layer->_color)._tint[1] = 1.0;
|
||||
@@ -8443,9 +8443,9 @@ void Entity_NPC::SetBossColorIdx(int bossColorIdx, int unused)
|
||||
if (0xf < (this->_sprite)._animDefaultName._capacity) {
|
||||
anim = *GHIDRA_CAST<std_string **>(anim->_buf);
|
||||
}
|
||||
isAnimSet = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(anim),1);
|
||||
isAnimSet = ANM2::SetAnimation(&this->_sprite,GHIDRA_CAST<uint8_t *>(anim),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;
|
||||
}
|
||||
@@ -9226,7 +9226,7 @@ LAB_006d301b:
|
||||
if (this->_type == 0x371) {
|
||||
NpcHelper::needle_render(this);
|
||||
LAB_006d3040:
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
isHidden = layer->_visible == 0;
|
||||
laterAnimState = extraout_ECX;
|
||||
}
|
||||
@@ -9241,7 +9241,7 @@ LAB_006d3040:
|
||||
}
|
||||
if ((statusTarget != GHIDRA_CAST<Entity_NPC *>(0x0)) && (this->_visible != 0)) {
|
||||
if ((statusTarget->_sprite)._animState._animData != (void *)0x0) {
|
||||
pfVar5 = (GHIDRA_CAST<AnimationState *>((&(statusTarget->_sprite)._animState)))->AnimationState::GetNullFrameById(0);
|
||||
pfVar5 = AnimationState::GetNullFrameById(&(statusTarget->_sprite)._animState,0);
|
||||
if (pfVar5 == GHIDRA_CAST<float *>(0x0)) {
|
||||
laterAnimState = extraout_ECX_00;
|
||||
statusTarget = minecart;
|
||||
@@ -9401,7 +9401,7 @@ LAB_006d3040:
|
||||
local_70 = (float)dVar11;
|
||||
local_84.x = baseOffset.x + local_88 / local_98;
|
||||
local_84.y = baseOffset.y + local_70 / local_98;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Render(&local_84,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_sprite,&local_84,&g_vectorZero,&g_vectorZero);
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::SetColor(GHIDRA_CAST<ColorMod *>(&local_48));
|
||||
iVar6 = this->_type;
|
||||
laterAnimState = extraout_ECX_05;
|
||||
@@ -9604,7 +9604,7 @@ LAB_006d3d39:
|
||||
if (((this->_type == 0x19b) || (this->_type == 0x330)) &&
|
||||
((this->_entityRef != 0 &&
|
||||
((((this->_sprite)._animState._animData != (void *)0x0 &&
|
||||
(pfVar5 = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::GetNullFrame(&DAT_00b67800),
|
||||
(pfVar5 = AnimationState::GetNullFrame(&(this->_sprite)._animState,&DAT_00b67800),
|
||||
pfVar5 != GHIDRA_CAST<float *>(0x0))) && (*GHIDRA_CAST<char *>((pfVar5 + 3)) != '\0')))))) {
|
||||
iVar6 = this->_entityRef;
|
||||
fVar9 = 0.0;
|
||||
@@ -9622,7 +9622,7 @@ LAB_006d3d39:
|
||||
fVar9 = pfVar5[5];
|
||||
*GHIDRA_CAST<float *>((iVar6 + 0xe4)) = (float)local_90 * pfVar5[4];
|
||||
*GHIDRA_CAST<float *>((iVar6 + 0xe8)) = local_88 * fVar9;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_entityRef + 0x48)))))->ANM2::Render(&this->_renderPosition,&g_vectorZero,
|
||||
ANM2::Render(GHIDRA_CAST<ANM2 *>((this->_entityRef + 0x48)),&this->_renderPosition,&g_vectorZero,
|
||||
&g_vectorZero);
|
||||
iVar6 = this->_entityRef;
|
||||
*GHIDRA_CAST<float *>((iVar6 + 0xdc)) = local_70;
|
||||
@@ -9655,7 +9655,7 @@ LAB_006d3d39:
|
||||
local_5c._green = 1.0;
|
||||
local_5c._blue = 1.0;
|
||||
local_5c._alpha = 1.0;
|
||||
(GHIDRA_CAST<Font *>((&g_manager->_font6_PFTempestaSevenCondensed)))->Font::DrawString(GHIDRA_CAST<uint8_t *>((local_48._tint + 3)),
|
||||
Font::DrawString(&g_manager->_font6_PFTempestaSevenCondensed,GHIDRA_CAST<uint8_t *>((local_48._tint + 3)),
|
||||
&local_5c,local_ec._colorize,(this->_renderPosition).x,
|
||||
(this->_renderPosition).y - 28.0);
|
||||
ehState = 0xffffffff;
|
||||
@@ -9664,7 +9664,7 @@ LAB_006d3d39:
|
||||
((this->_statusEffectSprite)._animState._animData != (void *)0x0)) &&
|
||||
((this->_statusEffectSprite)._animState._isPlaying != 0)) {
|
||||
local_68 = (float)(GHIDRA_UINT((this->_statusEffectSprite)._bitflags) >> 0x1f);
|
||||
iVar6 = (GHIDRA_CAST<AnimationData *>((GHIDRA_CAST<AnimationData *>(&this->_sprite))))->AnimationData::find_null_index(GHIDRA_CAST<uint8_t *>("OverlayEffect"));
|
||||
iVar6 = AnimationData::find_null_index(GHIDRA_CAST<AnimationData *>(&this->_sprite),GHIDRA_CAST<uint8_t *>("OverlayEffect"));
|
||||
if (iVar6 < 0) {
|
||||
if (this->_config == GHIDRA_CAST<EntityConfig_Entity *>(0x0)) {
|
||||
KAGE_LogMessage(1,GHIDRA_CAST<uint8_t *>("[warn] No OverlayEffect Null found for Entity (%d)\n"));
|
||||
@@ -9694,7 +9694,7 @@ LAB_006d3d39:
|
||||
}
|
||||
}
|
||||
else {
|
||||
local_9c = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayerFrame(iVar6);
|
||||
local_9c = ANM2::GetLayerFrame(&this->_sprite,iVar6);
|
||||
if (((local_9c != GHIDRA_CAST<float *>(0x0)) && (*GHIDRA_CAST<char *>((local_9c + 3)) != '\0')) &&
|
||||
(((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_68)) + 0x0))) == '\0' ||
|
||||
((this->_parent == 0 ||
|
||||
@@ -9713,7 +9713,7 @@ LAB_006d3d39:
|
||||
local_68 = (float)dVar11;
|
||||
local_84.x = baseOffset.x + local_a0 + *local_9c;
|
||||
local_84.y = baseOffset.y + local_68 / local_7c + local_9c[1];
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_statusEffectSprite)))->ANM2::Render(&local_84,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_statusEffectSprite,&local_84,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9760,7 +9760,7 @@ LAB_006d44a0:
|
||||
fVar9 = (this->_sprite)._scale.y;
|
||||
renderPos.y = (this->_renderPosition).y - fVar9 * 35.0;
|
||||
renderPos.x = fVar9 * 12.0 + (this->_renderPosition).x;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Render(&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_chargeBarSprite,&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
if (((this->_flags & 0x1000002000000000) != 0) && ((GHIDRA_UINT(g_game->_debugFlags) >> 6 & 1) != 0)) {
|
||||
sprintf(debugText,GHIDRA_CAST<uint8_t *>("%.02f"));
|
||||
@@ -9866,7 +9866,7 @@ uint8_t Entity_NPC::CanBeDamagedFromVelocity(Vector velocity)
|
||||
return 1;
|
||||
}
|
||||
ExceptionList = &local_10;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState))))->ANM2::GetAnimation(&animName);
|
||||
ANM2::GetAnimation(GHIDRA_CAST<ANM2 *>(&(this->_sprite)._animState),&animName);
|
||||
local_8 = 0;
|
||||
iVar2 = FUN_006da7d0(animName._size - 2,2,&DAT_00b1cde4);
|
||||
if (iVar2 == 0) {
|
||||
@@ -10076,7 +10076,7 @@ void Entity_NPC::PlayDeathEffects()
|
||||
splatOffset.y = g_vectorZero.y;
|
||||
if (((this->_sprite)._animState._animData != (void *)0x0) &&
|
||||
(((this->_type != 0x38d || (this->_variant != 10)) &&
|
||||
(layerFrame = (GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::GetLayerFrame(0),
|
||||
(layerFrame = AnimationState::GetLayerFrame(&(this->_sprite)._animState,0),
|
||||
layerFrame != (void *)0x0)))) {
|
||||
splatOffset.x =
|
||||
(*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(layerFrame) + 8)) * 0.5 - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(layerFrame) + 0x20))) +
|
||||
@@ -11144,7 +11144,7 @@ void Entity_NPC::update_blood_guide_gibs(float *nullFrame)
|
||||
return;
|
||||
}
|
||||
ExceptionList = &local_10;
|
||||
nullFrame = (GHIDRA_CAST<AnimationState *>((&(bloodEffect->_sprite)._animState)))->AnimationState::GetNullFrame(GHIDRA_CAST<uint8_t *>("BloodGuide"));
|
||||
nullFrame = AnimationState::GetNullFrame(&(bloodEffect->_sprite)._animState,GHIDRA_CAST<uint8_t *>("BloodGuide"));
|
||||
ppvVar1 = ExceptionList;
|
||||
if (nullFrame == GHIDRA_CAST<float *>(0x0)) {
|
||||
ExceptionList = local_10;
|
||||
@@ -11154,12 +11154,12 @@ void Entity_NPC::update_blood_guide_gibs(float *nullFrame)
|
||||
ExceptionList = ppvVar1;
|
||||
animState = &(bloodEffect->_sprite)._animState;
|
||||
if ((bloodEffect->_sprite)._animState._animData == (void *)0x0) goto LAB_006d7c3e;
|
||||
bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::WasEventTriggered(GHIDRA_CAST<uint8_t *>("BloodStart"));
|
||||
bVar2 = AnimationState::WasEventTriggered(animState,GHIDRA_CAST<uint8_t *>("BloodStart"));
|
||||
if ((bVar2 != 0) &&
|
||||
(((bloodEffect->_sprite)._animState._animData == (void *)0x0 ||
|
||||
((bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::WasEventTriggered(GHIDRA_CAST<uint8_t *>("BloodStop")), bVar2 == 0 &&
|
||||
((bVar2 = AnimationState::WasEventTriggered(animState,GHIDRA_CAST<uint8_t *>("BloodStop")), bVar2 == 0 &&
|
||||
(((bloodEffect->_sprite)._animState._animData == (void *)0x0 ||
|
||||
(bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::WasEventTriggered(GHIDRA_CAST<uint8_t *>("Explosion")), bVar2 == 0)))))))
|
||||
(bVar2 = AnimationState::WasEventTriggered(animState,GHIDRA_CAST<uint8_t *>("Explosion")), bVar2 == 0)))))))
|
||||
) {
|
||||
if (((bloodEffect->_type == 0x390) && (bloodEffect->_variant == 10)) ||
|
||||
((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(bloodEffect->_config) + 0x60)) >> 0xd & 1) != 0)) {
|
||||
@@ -11285,7 +11285,7 @@ LAB_006d7a90:
|
||||
}
|
||||
}
|
||||
if ((((bloodEffect->_sprite)._animState._animData != (void *)0x0) &&
|
||||
(bVar2 = (GHIDRA_CAST<AnimationState *>((&(bloodEffect->_sprite)._animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("BloodStart")),
|
||||
(bVar2 = AnimationState::IsEventTriggered(&(bloodEffect->_sprite)._animState,GHIDRA_CAST<uint8_t *>("BloodStart")),
|
||||
bVar2 != 0)) && (bloodEffect->_type == 0x54)) {
|
||||
local_1c = GHIDRA_CAST<uint8_t *>(0x4);
|
||||
do {
|
||||
@@ -11331,9 +11331,9 @@ LAB_006d7a90:
|
||||
LAB_006d7c3e:
|
||||
animState = &(bloodEffect->_sprite)._animState;
|
||||
if (((bloodEffect->_sprite)._animState._animData != (void *)0x0) &&
|
||||
((bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("BloodStop")), bVar2 != 0 ||
|
||||
((bVar2 = AnimationState::IsEventTriggered(animState,GHIDRA_CAST<uint8_t *>("BloodStop")), bVar2 != 0 ||
|
||||
(((bloodEffect->_sprite)._animState._animData != (void *)0x0 &&
|
||||
(bVar2 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::IsEventTriggered(GHIDRA_CAST<uint8_t *>("Explosion")), bVar2 != 0)))))) {
|
||||
(bVar2 = AnimationState::IsEventTriggered(animState,GHIDRA_CAST<uint8_t *>("Explosion")), bVar2 != 0)))))) {
|
||||
room = g_game->_room;
|
||||
iVar3 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(room) + 0x125c));
|
||||
local_30.x = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x1260));
|
||||
@@ -11883,7 +11883,7 @@ void Entity_NPC::UpdateChargeBar(float start, float end, float value, uint8_t is
|
||||
anm2Path._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/chargebar.anm2",0x13);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::Load(&anm2Path,1);
|
||||
ANM2::Load(&this->_chargeBarSprite,&anm2Path,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < anm2Path._capacity) {
|
||||
size = anm2Path._capacity + 1;
|
||||
@@ -11904,7 +11904,7 @@ void Entity_NPC::UpdateChargeBar(float start, float end, float value, uint8_t is
|
||||
puVar1 = puStack_20;
|
||||
}
|
||||
puStack_20 = puVar1;
|
||||
barLayer = (GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x2));
|
||||
barLayer = ANM2::GetLayer(&this->_chargeBarSprite,GHIDRA_CAST<uint8_t *>(0x2));
|
||||
barLayer->_visible = 0;
|
||||
if (start == end) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Start and End parameters cannot be the same!"));
|
||||
@@ -11918,10 +11918,10 @@ void Entity_NPC::UpdateChargeBar(float start, float end, float value, uint8_t is
|
||||
}
|
||||
chargeFrame = GHIDRA_INT((chargeFraction * 100.0 + 0.0));
|
||||
if ((isHideWhenFull == 0) || (chargeFrame < 100)) {
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((&this->_chargeBarSprite)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("Charging"),1);
|
||||
bVar2 = ANM2::SetAnimation(&this->_chargeBarSprite,GHIDRA_CAST<uint8_t *>("Charging"),1);
|
||||
if ((bVar2 != 0) &&
|
||||
(((this->_chargeBarSprite)._animState._animData != (void *)0x0 &&
|
||||
((GHIDRA_CAST<AnimationState *>((&(this->_chargeBarSprite)._animState)))->AnimationState::SetFrameFloat((float)chargeFrame),
|
||||
(AnimationState::SetFrameFloat(&(this->_chargeBarSprite)._animState,(float)chargeFrame),
|
||||
(this->_chargeBarSprite)._animState._animData != (void *)0x0)))) {
|
||||
(this->_chargeBarSprite)._animState._isPlaying = 0;
|
||||
}
|
||||
@@ -12319,9 +12319,9 @@ LAB_006d9e96:
|
||||
curAnimData = (half->_sprite)._animState._animData;
|
||||
if (curAnimData == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_006d9f46:
|
||||
bVar3 = (GHIDRA_CAST<ANM2 *>((&half->_sprite)))->ANM2::SetAnimation(&DAT_00b1cdf8,1);
|
||||
bVar3 = ANM2::SetAnimation(&half->_sprite,&DAT_00b1cdf8,1);
|
||||
if (bVar3 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(half->_sprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(half->_sprite)._animState);
|
||||
(half->_sprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -12389,9 +12389,9 @@ LAB_006d9f2d:
|
||||
}
|
||||
if (iVar6 == 0x44) {
|
||||
half->_i1 = this->_i1;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&half->_sprite))))->Sprite::ReplaceSpritesheet(0,&layer->_spriteSheetPath);
|
||||
(GHIDRA_CAST<ANM2 *>((&half->_sprite)))->ANM2::LoadGraphics(unk);
|
||||
ANM2::LoadGraphics(&half->_sprite,unk);
|
||||
EntityList::QuerySublist
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),GHIDRA_CAST<EntityList_EL *>(peeps),0x44,-1,-1
|
||||
,0,0);
|
||||
@@ -12503,7 +12503,7 @@ LAB_006da2c0:
|
||||
else if (iVar6 == 0x40) {
|
||||
if (this->_i1 != 0) {
|
||||
half->_i1 = 1;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&half->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&half->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer->_visible = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user