The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body. src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT, from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra). structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3908 lines
174 KiB
C++
3908 lines
174 KiB
C++
#include "classes.h"
|
|
|
|
// 007a23a0
|
|
void LuaEngine::RunScript(int param_2, char param_3)
|
|
{
|
|
Vector *position;
|
|
LuaEngine LVar1;
|
|
byte isHasBirthright;
|
|
ItemConfig_Item *item;
|
|
ColorMod *color;
|
|
ColorMod *color_00;
|
|
ColorMod *color_01;
|
|
ColorMod *color_02;
|
|
Entity *spawnedEffect;
|
|
LuaEngine *pLVar2;
|
|
LuaEngine *pLVar3;
|
|
Entity_Player *this_00;
|
|
Entity_Player *this_01;
|
|
void *pvVar4;
|
|
Entity_Player *this_02;
|
|
Color *this_03;
|
|
LuaEngine LVar5;
|
|
uint uVar6;
|
|
uint leaveDoor;
|
|
int iVar7;
|
|
float fVar8;
|
|
LuaEngine local_ac;
|
|
Color local_a8;
|
|
Color local_7c;
|
|
undefined1 local_50 [28];
|
|
float local_34;
|
|
float local_30;
|
|
float local_2c;
|
|
float local_28;
|
|
uint local_24;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
Game *game;
|
|
bool isSkipTransition;
|
|
Manager *manager;
|
|
int *roomData;
|
|
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00aff8fd;
|
|
local_1c = ExceptionList;
|
|
puStack_20 = local_50 + 0x4c;
|
|
local_24 = __security_cookie ^ GHIDRA_UINT((local_50 + 0x40));
|
|
ExceptionList = &local_1c;
|
|
local_ac = (LuaEngine)this;
|
|
if (-1 < GHIDRA_INT(this[0x587])) {
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::Revive();
|
|
}
|
|
roomData = *GHIDRA_CAST<int **>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10));
|
|
if (((roomData == GHIDRA_CAST<int *>(0x0)) || (roomData[2] != 0x10)) ||
|
|
(isSkipTransition = true, *roomData != 0x23)) {
|
|
isSkipTransition = false;
|
|
}
|
|
if (param_2 < 0x138) {
|
|
if (param_2 == 0x137) {
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::RemoveSkinCostume();
|
|
this[0x4d0] = (LuaEngine)0x0;
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
if (this[0x4f0] != (LuaEngine)0x18) {
|
|
this[0x4f0] = (LuaEngine)0xc;
|
|
}
|
|
this[0x4d3] = (LuaEngine)0x4;
|
|
this[0x4d4] = (LuaEngine)0xffffffff;
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::UpdateBlackHeartMask();
|
|
this[0x55d] = (LuaEngine)(GHIDRA_UINT(this[0x55d]) | 0xffff);
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::EvaluateItems();
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::update_player_skin();
|
|
if (param_3 != '\0') {
|
|
if (this[0xef] == (LuaEngine)0x0) {
|
|
if (!isSkipTransition) {
|
|
iVar7 = 9;
|
|
goto LAB_007a29c3;
|
|
}
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x78;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0x137,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
switch(param_2) {
|
|
case 0xb:
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 1) {
|
|
this[0x4d0] = (LuaEngine)0x0;
|
|
iVar7 = FUN_0069bd10();
|
|
*GHIDRA_CAST<LuaEngine *>((GHIDRA_CAST<char *>(local_ac) + 0x134c)) = *GHIDRA_CAST<LuaEngine *>((iVar7 + 0xb4));
|
|
iVar7 = FUN_0069bd10();
|
|
this = GHIDRA_CAST<LuaEngine *>(local_ac);
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(local_ac))))->Entity_Player::AddBlackHearts(*GHIDRA_CAST<int *>((iVar7 + 0xb8)));
|
|
}
|
|
else if (iVar7 == 4) {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
iVar7 = FUN_0069bd10();
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::AddBoneHearts(*GHIDRA_CAST<int *>((iVar7 + 0xb0)) / 2);
|
|
}
|
|
else if (this[0x4d0] == (LuaEngine)0x0) {
|
|
if (iVar7 == 3) {
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
}
|
|
else if (this[0x4f0] == (LuaEngine)0x12) {
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
this[0x4d1] = (LuaEngine)0x1;
|
|
}
|
|
else {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
this[0x4d3] = (LuaEngine)0x1;
|
|
}
|
|
}
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::SetFullHearts();
|
|
if (param_3 != '\0') {
|
|
if (*GHIDRA_CAST<EntityPtr *>((GHIDRA_CAST<char *>(this) + 0x3bc)) == (EntityPtr)0x0) {
|
|
if (!isSkipTransition) {
|
|
iVar7 = 7;
|
|
LAB_007a29c3:
|
|
game = g_game;
|
|
uVar6 = g_game->_enterDoor;
|
|
if (GHIDRA_INT(uVar6) < 0) {
|
|
leaveDoor = 0xffffffff;
|
|
}
|
|
else {
|
|
leaveDoor = uVar6;
|
|
if (6 < GHIDRA_INT(uVar6)) {
|
|
leaveDoor = 7;
|
|
}
|
|
}
|
|
g_game->_leaveDoor = leaveDoor;
|
|
uVar6 = uVar6 & 0x80000003;
|
|
if (GHIDRA_INT(uVar6) < 0) {
|
|
uVar6 = (uVar6 - 1 | 0xfffffffc) + 1;
|
|
}
|
|
Game::StartRoomTransition
|
|
(game,game->_lastRoomIdx,uVar6,iVar7,GHIDRA_CAST<Entity_Player *>(this),-1);
|
|
goto LAB_007a32b9;
|
|
}
|
|
}
|
|
else {
|
|
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x171)) = 1;
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x13bc)) = 0x78;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0xb,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
}
|
|
}
|
|
break;
|
|
default:
|
|
switchD_007a244f_caseD_c:
|
|
item = (GHIDRA_CAST<ItemConfig *>((&g_manager->_itemConfig)))->ItemConfig::GetCollectible(param_2);
|
|
(GHIDRA_CAST<ItemConfig_Item *>((item)))->ItemConfig_Item::GetLocalizedName(GHIDRA_CAST<std_string *>((local_50 + 0x14)),0);
|
|
local_14 = 0;
|
|
KAGE_LogMessage(4,GHIDRA_CAST<byte *>("No revival effect associated with collectible %d (%s)\n"));
|
|
local_14 = 0xffffffff;
|
|
if (0xf < GHIDRA_UINT(local_28)) {
|
|
uVar6 = GHIDRA_INT(local_28) + 1;
|
|
pvVar4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)local_50)) + 0x14)));
|
|
if (0xfff < uVar6) {
|
|
pvVar4 = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_50)) + 0x14))) + -4);
|
|
uVar6 = GHIDRA_INT(local_28) + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_50)) + 0x14))) + (-4 - GHIDRA_INT(pvVar4))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar4,uVar6);
|
|
}
|
|
break;
|
|
case 0x51:
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 1) {
|
|
this[0x4d0] = (LuaEngine)0x0;
|
|
this[0x4d3] = (LuaEngine)0x2;
|
|
}
|
|
else {
|
|
if (iVar7 == 4) {
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
(GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::AddBoneHearts(1);
|
|
}
|
|
else {
|
|
if (iVar7 == 2) {
|
|
this[0x4d3] = (LuaEngine)0x1;
|
|
goto LAB_007a267e;
|
|
}
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
}
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
}
|
|
LAB_007a267e:
|
|
if (this[0x766] != (LuaEngine)0x0) {
|
|
RunScript();
|
|
}
|
|
if (param_3 != '\0') {
|
|
if (this[0xef] == (LuaEngine)0x0) {
|
|
if (!isSkipTransition) {
|
|
iVar7 = 6;
|
|
goto LAB_007a29c3;
|
|
}
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x78;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0x51,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
}
|
|
}
|
|
break;
|
|
case 0xa1:
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::RemoveSkinCostume();
|
|
this[0x4d3] = (LuaEngine)0x6;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
this[0x4d0] = (LuaEngine)0x0;
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
if (this[0x4f0] != (LuaEngine)0x19) {
|
|
this[0x4f0] = (LuaEngine)0x4;
|
|
}
|
|
this[0x55d] = (LuaEngine)(GHIDRA_UINT(this[0x55d]) | 0xffff);
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::EvaluateItems();
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::update_player_skin();
|
|
if (param_3 != '\0') {
|
|
if (this[0xef] == (LuaEngine)0x0) {
|
|
if (!isSkipTransition) {
|
|
iVar7 = 5;
|
|
goto LAB_007a29c3;
|
|
}
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x78;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0xa1,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
}
|
|
}
|
|
break;
|
|
case 0xd4:
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
if (GHIDRA_INT(this[0x4d0]) < 1) {
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 4) {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
(GHIDRA_CAST<Entity_Player *>((this_01)))->Entity_Player::AddBoneHearts(1);
|
|
}
|
|
else {
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((this_01)))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 3) {
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
}
|
|
else if (this[0x4f0] == (LuaEngine)0x12) {
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
this[0x4d1] = (LuaEngine)0x1;
|
|
}
|
|
else {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
this[0x4d3] = (LuaEngine)0x1;
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
this[0x4d1] = (LuaEngine)0x1;
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 3) {
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
}
|
|
}
|
|
if (param_3 != '\0') {
|
|
if (this[0xef] == (LuaEngine)0x0) {
|
|
if (!isSkipTransition) {
|
|
iVar7 = 8;
|
|
goto LAB_007a29c3;
|
|
}
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x78;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0xd4,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else if (param_2 == 0x14c) {
|
|
if (this[0x4f0] != (LuaEngine)0x8) {
|
|
if (this[0x4f0] != (LuaEngine)0x23) {
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::RemoveSkinCostume();
|
|
}
|
|
pvVar4 = (g_manager->_itemConfig)._collectibles._begin;
|
|
if (GHIDRA_INT((GHIDRA_INT((g_manager->_itemConfig)._collectibles._end) - GHIDRA_INT(pvVar4) & 0xfffffffcU)) <
|
|
0x531) {
|
|
item = GHIDRA_CAST<ItemConfig_Item *>(0x0);
|
|
}
|
|
else {
|
|
item = *GHIDRA_CAST<ItemConfig_Item **>((GHIDRA_CAST<char *>(pvVar4) + 0x530));
|
|
}
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::AddCostume(item,0);
|
|
}
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
LVar5 = (LuaEngine)0x2;
|
|
if (2 < GHIDRA_INT(this[0x4d0]) + -2) {
|
|
LVar5 = (LuaEngine)(GHIDRA_INT(this[0x4d0]) + -2);
|
|
}
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x4d0] = LVar5;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
pLVar2 = &local_ac;
|
|
if (GHIDRA_INT(LVar5) < 3) {
|
|
pLVar2 = this + 0x4d0;
|
|
}
|
|
this[0x769] = (LuaEngine)0x0;
|
|
local_ac = (LuaEngine)0x2;
|
|
this[0x4d1] = *pLVar2;
|
|
isHasBirthright = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::HasCollectible(0x26b,0);
|
|
if ((isHasBirthright != 0) && (this[0x4f0] == (LuaEngine)0x8)) {
|
|
this[0x79d] = (LuaEngine)0x708;
|
|
}
|
|
if ((this[0x4f0] != (LuaEngine)0x1d) && (this[0x4f0] != (LuaEngine)0x26)) {
|
|
this[0x4f0] = (LuaEngine)0xb;
|
|
}
|
|
manager = g_manager;
|
|
this[0x55d] = (LuaEngine)(GHIDRA_UINT(this[0x55d]) | 0xffff);
|
|
pvVar4 = (manager->_itemConfig)._nullItems._begin;
|
|
if ((0xc4 < GHIDRA_INT((GHIDRA_INT((manager->_itemConfig)._nullItems._end) - GHIDRA_INT(pvVar4) & 0xfffffffcU))) &&
|
|
(fVar8 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar4) + 0xc4)), fVar8 != 0.0)) {
|
|
local_2c = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(fVar8) + 0x78));
|
|
local_30 = 0.0;
|
|
local_28 = 0.0;
|
|
local_34 = fVar8;
|
|
(GHIDRA_CAST<TemporaryEffects *>((GHIDRA_CAST<TemporaryEffects *>((this + 0x542)))))->TemporaryEffects::AddEffect(&local_34,1,1);
|
|
}
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::update_player_skin();
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::EvaluateItems();
|
|
LVar5 = this[0x767];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
if (LVar5 != (LuaEngine)0x0) {
|
|
LVar1 = *GHIDRA_CAST<LuaEngine *>((GHIDRA_CAST<char *>(LVar5) + 0x340));
|
|
this[0xcf] = *GHIDRA_CAST<LuaEngine *>((GHIDRA_CAST<char *>(LVar5) + 0x33c));
|
|
this[0xd0] = LVar1;
|
|
}
|
|
uVar6 = Random();
|
|
spawnedEffect =
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,GHIDRA_CAST<Vector *>((this + 0xcf)),&g_vectorZero,GHIDRA_CAST<Entity *>(this),3,uVar6);
|
|
iVar7 = __RTDynamicCast(spawnedEffect);
|
|
*GHIDRA_CAST<float *>((iVar7 + 0x358)) = (float)this[0xd4] + 1.0;
|
|
}
|
|
else if (param_2 == 0x26b) {
|
|
this[0x4d3] = (LuaEngine)0x1;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
this[0x4d0] = (LuaEngine)0x0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x5a;
|
|
Entity_Player::AnimateCollectible
|
|
(GHIDRA_CAST<Entity_Player *>(this),0x26b,GHIDRA_CAST<byte *>("Pickup"),GHIDRA_CAST<byte *>("PlayerPickupSparkle"));
|
|
uVar6 = Random();
|
|
spawnedEffect =
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x90,GHIDRA_CAST<Vector *>((this + 0xcf)),&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),2,uVar6);
|
|
uVar6 = Random();
|
|
(spawnedEffect->_sprite)._rotation =
|
|
(float)((double)GHIDRA_INT(uVar6) + __uint_to_double_fixup[-(GHIDRA_INT(uVar6) >> 0x1f)]) * 2.3283064e-10
|
|
* 360.0;
|
|
iVar7 = *GHIDRA_CAST<int *>(spawnedEffect);
|
|
fVar8 = g_vectorOne.x * 1.5;
|
|
(spawnedEffect->_sprite)._scale.y = g_vectorOne.y * 1.5;
|
|
(spawnedEffect->_sprite)._scale.x = fVar8;
|
|
(**(code **)(iVar7 + 0x40))();
|
|
spawnedEffect->Update();
|
|
manager = g_manager;
|
|
local_ac = (LuaEngine)0x50;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.0,2,0,1.0,0.0);
|
|
manager = g_manager;
|
|
local_ac = (LuaEngine)0x10a;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.0,2,0,1.0,0.0);
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0xe);
|
|
}
|
|
else {
|
|
if (param_2 != 0x2b0) goto switchD_007a244f_caseD_c;
|
|
(GHIDRA_CAST<TemporaryEffects *>((GHIDRA_CAST<TemporaryEffects *>((this + 0x542)))))->TemporaryEffects::AddCollectibleEffect(0x2b0,1,1);
|
|
this[0x4d3] = (LuaEngine)0x0;
|
|
this[0x4d4] = (LuaEngine)0x0;
|
|
this[0x4d2] = (LuaEngine)0x0;
|
|
this[0x763] = (LuaEngine)0x0;
|
|
this[0x762] = (LuaEngine)0x0;
|
|
this[0x769] = (LuaEngine)0x0;
|
|
if (GHIDRA_INT(this[0x4d0]) < 1) {
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 4) {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
(GHIDRA_CAST<Entity_Player *>((this_02)))->Entity_Player::AddBoneHearts(1);
|
|
}
|
|
else {
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((this_02)))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 3) {
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
}
|
|
else if (this[0x4f0] == (LuaEngine)0x12) {
|
|
this[0x4d0] = (LuaEngine)0x2;
|
|
this[0x4d1] = (LuaEngine)0x1;
|
|
}
|
|
else {
|
|
this[0x4d1] = (LuaEngine)0x0;
|
|
this[0x4d3] = (LuaEngine)0x1;
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
this[0x4d1] = (LuaEngine)0x1;
|
|
iVar7 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::GetHealthType();
|
|
if (iVar7 == 3) {
|
|
this[0x4d1] = (LuaEngine)0x2;
|
|
}
|
|
}
|
|
LVar5 = this[0x767];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x5c])) + 0x1))) = 1;
|
|
this[0x4ef] = (LuaEngine)0x5a;
|
|
if (LVar5 != (LuaEngine)0x0) {
|
|
LVar1 = *GHIDRA_CAST<LuaEngine *>((GHIDRA_CAST<char *>(LVar5) + 0x340));
|
|
this[0xcf] = *GHIDRA_CAST<LuaEngine *>((GHIDRA_CAST<char *>(LVar5) + 0x33c));
|
|
this[0xd0] = LVar1;
|
|
}
|
|
manager = g_manager;
|
|
LVar5 = this[0x4f0];
|
|
if ((LVar5 == (LuaEngine)0x10) || (LVar5 == (LuaEngine)0x23)) {
|
|
local_ac = (LuaEngine)0x1b;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.25,2,0,1.0,0.0);
|
|
manager = g_manager;
|
|
local_ac = (LuaEngine)0x50;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.0,2,0,1.0,0.0);
|
|
(GHIDRA_CAST<Color *>((&local_7c)))->Color::Color();
|
|
local_ac = (LuaEngine)0xf;
|
|
iVar7 = 0x7a2e79;
|
|
spawn_gibs(GHIDRA_CAST<Vector *>((this + 0xcf)),0xe,80.0,GHIDRA_CAST<uint *>(&local_ac),GHIDRA_CAST<Entity *>(this),color_01,
|
|
&g_vectorZero,1.0);
|
|
this_03 = &local_a8;
|
|
LAB_007a2e82:
|
|
(GHIDRA_CAST<Color *>((this_03)))->Color::Color();
|
|
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::MakeGroundPoof(GHIDRA_CAST<Vector *>((this + 0xcf)),color_02,1.0);
|
|
}
|
|
else {
|
|
if (((LVar5 == (LuaEngine)0xa) || (LVar5 == (LuaEngine)0x1f)) || (LVar5 == (LuaEngine)0x27)) {
|
|
local_ac = (LuaEngine)0x50;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.0,2,0,1.0,0.0);
|
|
uVar6 = Random();
|
|
iVar7 = 0xf;
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,GHIDRA_CAST<Vector *>((this + 0xcf)),&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar6);
|
|
this_03 = &local_7c;
|
|
goto LAB_007a2e82;
|
|
}
|
|
local_ac = (LuaEngine)0x1c;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.25,2,0,1.0,0.0);
|
|
manager = g_manager;
|
|
local_ac = (LuaEngine)0x50;
|
|
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_ac));
|
|
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_ac),1.0,2,0,1.0,0.0);
|
|
uVar6 = Random();
|
|
position = GHIDRA_CAST<Vector *>((this + 0xcf));
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,2,position,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),3,uVar6);
|
|
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_50))))->Color::Color();
|
|
local_ac = (LuaEngine)0x7;
|
|
iVar7 = 0x7a2d08;
|
|
spawn_gibs(position,0xe,80.0,GHIDRA_CAST<uint *>(&local_ac),GHIDRA_CAST<Entity *>(this),color,&g_vectorZero,1.0);
|
|
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_50))))->Color::Color();
|
|
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::MakeBloodPoof(position,color_00,1.0);
|
|
}
|
|
game = g_game;
|
|
this[0x7bf] = (LuaEngine)0x40c00000;
|
|
(GHIDRA_CAST<Game *>((game)))->Game::ShakeScreen(6);
|
|
Game::DamageRadius(GHIDRA_CAST<Vector *>((this + 0xcf)),GHIDRA_CAST<Entity *>(this),0,0,iVar7,50.0,g_tearFlagsNone,35.0,
|
|
60.0);
|
|
}
|
|
pLVar2 = GHIDRA_CAST<LuaEngine *>((GHIDRA_INT(this) + 0x13bc));
|
|
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x171)) = 1;
|
|
local_ac = (LuaEngine)0x5a;
|
|
pLVar3 = &local_ac;
|
|
if (0x59 < GHIDRA_INT(*pLVar2)) {
|
|
pLVar3 = pLVar2;
|
|
}
|
|
*pLVar2 = *pLVar3;
|
|
LAB_007a32b9:
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::UpdateHeartDependentEffects();
|
|
if (((*GHIDRA_CAST<int *>(&g_game->_deathmatchManager) < 2) && (*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x173)) == 0)) &&
|
|
(0 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x194c)))) {
|
|
iVar7 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1344));
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1340)) < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1344))) {
|
|
iVar7 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1340));
|
|
}
|
|
iVar7 = (iVar7 + 1) / 2 + (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x134c)) + 1) / 2 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1d88));
|
|
if (iVar7 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x194c))) {
|
|
(GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(this))))->Entity_Player::BreakGoldenHearts(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x194c)) - iVar7);
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x194c)) = iVar7;
|
|
}
|
|
}
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 008604c0
|
|
void LuaEngine::Init(byte Debug)
|
|
{
|
|
LuaEngine LVar1;
|
|
ulonglong uVar2;
|
|
longlong lVar3;
|
|
undefined *libOpenFn;
|
|
undefined4 *refBlock;
|
|
LuaEngine LVar4;
|
|
undefined4 luaRef;
|
|
uint uVar5;
|
|
uint timeNsHigh;
|
|
uint uVar6;
|
|
undefined **libEntry;
|
|
qword *allocatedBytes;
|
|
ulonglong uVar7;
|
|
void *newLuaState;
|
|
void *luaState;
|
|
qword allocatedBefore;
|
|
void *mainHeap;
|
|
|
|
uVar7 = GetTimeNs();
|
|
timeNsHigh = GHIDRA_UINT((uVar7 >> 0x20));
|
|
uVar2 = (ulonglong)timeNsHigh * 0xd7b634db + ((uVar7 & 0xffffffff) * 0xd7b634db >> 0x20);
|
|
uVar6 = GHIDRA_UINT((uVar2 >> 0x20));
|
|
uVar5 = GHIDRA_UINT(((uVar7 & 0xffffffff) * 0x431bde82 + (uVar2 & 0xffffffff) >> 0x20));
|
|
lVar3 = (ulonglong)timeNsHigh * 0x431bde82 +
|
|
(ulonglong)CONCAT14(CARRY4(uVar6,uVar5),uVar6 + uVar5);
|
|
uVar5 = GHIDRA_UINT(lVar3) >> 0x12 | GHIDRA_INT(((ulonglong)lVar3 >> 0x20)) * 0x4000;
|
|
uVar5 = uVar5 ^ uVar5 >> 4;
|
|
uVar5 = (uVar5 ^ 0xdeadbeef) + uVar5 * 0x20;
|
|
this[8] = (LuaEngine)(uVar5 >> 0xb ^ uVar5);
|
|
if (DAT_00c7168c == 0) {
|
|
newLuaState = (void *)luaL_newstate();
|
|
this[6] = (LuaEngine)newLuaState;
|
|
}
|
|
else {
|
|
newLuaState = (void *)lua_newstate(FUN_00860440,DAT_00c7168c);
|
|
this[6] = (LuaEngine)newLuaState;
|
|
if ((LuaEngine)newLuaState != (LuaEngine)0x0) {
|
|
lua_atpanic(newLuaState,FUN_00860470);
|
|
newLuaState = *(void **)(this + 6);
|
|
}
|
|
}
|
|
if (Debug == 0) {
|
|
libOpenFn = &DAT_00ae597d;
|
|
libEntry = &PTR_DAT_00b23eb0;
|
|
do {
|
|
luaL_requiref(newLuaState,*libEntry,libOpenFn,1);
|
|
lua_settop(newLuaState,0xfffffffe);
|
|
libOpenFn = libEntry[3];
|
|
libEntry = libEntry + 2;
|
|
} while (libOpenFn != GHIDRA_CAST<undefined *>(0x0));
|
|
}
|
|
else {
|
|
KAGE_LogMessage(4,GHIDRA_CAST<byte *>("Running Lua in debug mode...\n"));
|
|
luaL_openlibs(this[6]);
|
|
FUN_0085ef00(1);
|
|
FUN_0085ef00(0);
|
|
LVar4 = this[6];
|
|
lua_pushboolean(LVar4,1);
|
|
lua_setglobal(LVar4,"_LUADEBUG");
|
|
}
|
|
*GHIDRA_CAST<byte *>((this + 7)) = Debug;
|
|
RegisterAPI(this);
|
|
FUN_0086e5e0("resources/scripts/enums.lua");
|
|
FUN_0086e5e0("resources/scripts/main.lua");
|
|
if (g_mainHeap == (void *)0x0) {
|
|
allocatedBytes = &g_allocatedBytesNoHeap;
|
|
}
|
|
else {
|
|
allocatedBytes = GHIDRA_CAST<qword *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
|
}
|
|
refBlock = malloc(0xc);
|
|
if (refBlock == GHIDRA_CAST<undefined4 *>(0x0)) {
|
|
FUN_00a23200(0x7fcb9dd6);
|
|
LAB_00860699:
|
|
LVar4 = (LuaEngine)0x0;
|
|
}
|
|
else {
|
|
allocatedBefore = *allocatedBytes;
|
|
*GHIDRA_CAST<uint *>(allocatedBytes) = GHIDRA_UINT(*allocatedBytes) + 0xc;
|
|
*refBlock = 0xc;
|
|
*GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) =
|
|
*GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) + GHIDRA_UINT((0xfffffff3 < GHIDRA_UINT(allocatedBefore)));
|
|
LVar4 = (LuaEngine)(refBlock + 1);
|
|
if (LVar4 == (LuaEngine)0x0) goto LAB_00860699;
|
|
LVar1 = this[6];
|
|
lua_getglobal(LVar1,"_RunCallback");
|
|
*GHIDRA_CAST<LuaEngine *>(LVar4) = LVar1;
|
|
luaRef = luaL_ref(LVar1,0xfff0b9d8);
|
|
refBlock[2] = luaRef;
|
|
}
|
|
mainHeap = g_mainHeap;
|
|
this[4] = LVar4;
|
|
if (mainHeap == (void *)0x0) {
|
|
allocatedBytes = &g_allocatedBytesNoHeap;
|
|
}
|
|
else {
|
|
allocatedBytes = GHIDRA_CAST<qword *>((GHIDRA_INT(mainHeap) + 0x30));
|
|
}
|
|
refBlock = malloc(0xc);
|
|
if (refBlock == GHIDRA_CAST<undefined4 *>(0x0)) {
|
|
FUN_00a23200(0x7fcb9dd6);
|
|
}
|
|
else {
|
|
allocatedBefore = *allocatedBytes;
|
|
*GHIDRA_CAST<uint *>(allocatedBytes) = GHIDRA_UINT(*allocatedBytes) + 0xc;
|
|
*refBlock = 0xc;
|
|
*GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) =
|
|
*GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) + GHIDRA_UINT((0xfffffff3 < GHIDRA_UINT(allocatedBefore)));
|
|
LVar4 = (LuaEngine)(refBlock + 1);
|
|
if (LVar4 != (LuaEngine)0x0) {
|
|
LVar1 = this[6];
|
|
lua_getglobal(LVar1,"_UnloadMod");
|
|
*GHIDRA_CAST<LuaEngine *>(LVar4) = LVar1;
|
|
luaRef = luaL_ref(LVar1,0xfff0b9d8);
|
|
refBlock[2] = luaRef;
|
|
goto LAB_00860712;
|
|
}
|
|
}
|
|
LVar4 = (LuaEngine)0x0;
|
|
LAB_00860712:
|
|
luaState = *(void **)(this + 6);
|
|
this[5] = LVar4;
|
|
lua_pushnil(luaState);
|
|
lua_setglobal(luaState,"_RunCallback");
|
|
LVar4 = this[6];
|
|
lua_pushnil(LVar4);
|
|
lua_setglobal(LVar4,"_UnloadMod");
|
|
return;
|
|
}
|
|
|
|
// 00860d70
|
|
int LuaEngine::PreNPCCollision(Entity_NPC *npc, Entity *collider, byte low)
|
|
{
|
|
int iVar1;
|
|
undefined4 top;
|
|
undefined3 in_stack_0000000d;
|
|
uint uStack_3c;
|
|
void *resultState;
|
|
int resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03d40;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x40000000) != 0) {
|
|
local_8 = 0;
|
|
FUN_00872c60(&resultState,npc->_type,npc,collider,_low);
|
|
if (resultRef != -1) {
|
|
(GHIDRA_CAST<LuaRef *>((&resultState)))->LuaRef::push(resultState);
|
|
iVar1 = lua_type(resultState,0xffffffff);
|
|
lua_settop(resultState,0xfffffffe);
|
|
if (iVar1 != 0) {
|
|
(GHIDRA_CAST<LuaRef *>((&resultState)))->LuaRef::push(resultState);
|
|
top = lua_gettop(resultState);
|
|
iVar1 = lua_toboolean(resultState,top);
|
|
lua_settop(resultState,0xfffffffe);
|
|
luaL_unref(resultState,0xfff0b9d8,resultRef);
|
|
if (iVar1 == 0) {
|
|
ExceptionList = local_10;
|
|
return -1;
|
|
}
|
|
ExceptionList = local_10;
|
|
return 1;
|
|
}
|
|
}
|
|
luaL_unref(resultState,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return 0;
|
|
}
|
|
|
|
// 008610d0
|
|
undefined4 LuaEngine::PreFamiliarCollision(undefined4 param_2, int param_3)
|
|
{
|
|
undefined4 param_1 = this;
|
|
void *luaState;
|
|
undefined4 *userdata;
|
|
int callResult;
|
|
undefined4 result;
|
|
undefined1 errorMessage [4];
|
|
undefined4 uStack_5c;
|
|
void *pvStack_58;
|
|
undefined4 uStack_54;
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
byte *pbStack_44;
|
|
void *pvStack_40;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03da0;
|
|
local_10 = ExceptionList;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x4000000) == 0) {
|
|
return 0;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
pvStack_40 = (void *)0x861126;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861146);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntityFamiliar;
|
|
uStack_48 = 0xfff0b9d8;
|
|
userdata[1] = param_2;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
uStack_50 = 0x861162;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86116e);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
if (param_3 == 0) {
|
|
pvStack_40 = (void *)0x8611ad;
|
|
lua_pushnil();
|
|
}
|
|
else {
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86117c);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntity;
|
|
uStack_48 = 0xfff0b9d8;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
userdata[1] = param_3;
|
|
uStack_50 = 0x861195;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8611a1);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
}
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8611bc);
|
|
pvStack_40 = luaState;
|
|
lua_pushboolean();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x0);
|
|
uStack_48 = 0;
|
|
pvStack_4c = (void *)0x0;
|
|
uStack_50 = 1;
|
|
uStack_54 = 5;
|
|
uStack_5c = 0x8611cd;
|
|
pvStack_58 = luaState;
|
|
callResult = lua_pcallk();
|
|
if (callResult != 0) {
|
|
FUN_0085c080(luaState,errorMessage);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
result = FUN_00861225();
|
|
return result;
|
|
}
|
|
|
|
// 00861890
|
|
void LuaEngine::PostKnifeInit(Entity_Knife *knife)
|
|
{
|
|
uint uStack_3c;
|
|
undefined4 luaState;
|
|
undefined4 resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03e80;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x40000) != 0) {
|
|
local_8 = 0;
|
|
FUN_00873470(&luaState,knife->_subtype,knife);
|
|
luaL_unref(luaState,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00861c40
|
|
undefined4 LuaEngine::PreKnifeCollision(undefined4 param_2, int param_3)
|
|
{
|
|
undefined4 param_1 = this;
|
|
void *luaState;
|
|
undefined4 *userdata;
|
|
int pcallResult;
|
|
undefined4 result;
|
|
undefined1 auStack_60 [4];
|
|
undefined4 uStack_5c;
|
|
void *pvStack_58;
|
|
undefined4 uStack_54;
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
byte *pbStack_44;
|
|
void *pvStack_40;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03ee0;
|
|
local_10 = ExceptionList;
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x200000) == 0) {
|
|
return 0;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
pvStack_40 = (void *)0x861c97;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861cb7);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &DAT_00c829e0;
|
|
uStack_48 = 0xfff0b9d8;
|
|
userdata[1] = param_2;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
uStack_50 = 0x861cd3;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861cdf);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
if (param_3 == 0) {
|
|
pvStack_40 = (void *)0x861d1e;
|
|
lua_pushnil();
|
|
}
|
|
else {
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861ced);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntity;
|
|
uStack_48 = 0xfff0b9d8;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
userdata[1] = param_3;
|
|
uStack_50 = 0x861d06;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861d12);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
}
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x861d2d);
|
|
pvStack_40 = luaState;
|
|
lua_pushboolean();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x0);
|
|
uStack_48 = 0;
|
|
pvStack_4c = (void *)0x0;
|
|
uStack_50 = 1;
|
|
uStack_54 = 5;
|
|
uStack_5c = 0x861d3e;
|
|
pvStack_58 = luaState;
|
|
pcallResult = lua_pcallk();
|
|
if (pcallResult != 0) {
|
|
FUN_0085c080(luaState,auStack_60);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
result = FUN_00861d96();
|
|
return result;
|
|
}
|
|
|
|
// 00862250
|
|
undefined4 LuaEngine::PreBombCollision(undefined4 param_2, int param_3)
|
|
{
|
|
undefined4 param_1 = this;
|
|
void *luaState;
|
|
undefined4 *userdata;
|
|
int pcallResult;
|
|
undefined4 result;
|
|
undefined1 auStack_60 [4];
|
|
undefined4 uStack_5c;
|
|
void *pvStack_58;
|
|
undefined4 uStack_54;
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
byte *pbStack_44;
|
|
void *pvStack_40;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03f60;
|
|
local_10 = ExceptionList;
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x10000000) == 0) {
|
|
return 0;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
pvStack_40 = (void *)0x8622a7;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8622c7);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &DAT_00c829da;
|
|
uStack_48 = 0xfff0b9d8;
|
|
userdata[1] = param_2;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
uStack_50 = 0x8622e3;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8622ef);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
if (param_3 == 0) {
|
|
pvStack_40 = (void *)0x86232e;
|
|
lua_pushnil();
|
|
}
|
|
else {
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8622fd);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntity;
|
|
uStack_48 = 0xfff0b9d8;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
userdata[1] = param_3;
|
|
uStack_50 = 0x862316;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x862322);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
}
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86233d);
|
|
pvStack_40 = luaState;
|
|
lua_pushboolean();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x0);
|
|
uStack_48 = 0;
|
|
pvStack_4c = (void *)0x0;
|
|
uStack_50 = 1;
|
|
uStack_54 = 5;
|
|
uStack_5c = 0x86234e;
|
|
pvStack_58 = luaState;
|
|
pcallResult = lua_pcallk();
|
|
if (pcallResult != 0) {
|
|
FUN_0085c080(luaState,auStack_60);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
result = FUN_008623a6();
|
|
return result;
|
|
}
|
|
|
|
// 00862760
|
|
undefined4 LuaEngine::PreProjectileCollision(undefined4 param_2, int param_3)
|
|
{
|
|
undefined4 param_1 = this;
|
|
void *luaState;
|
|
undefined4 *userdata;
|
|
int pcallResult;
|
|
undefined4 result;
|
|
undefined1 auStack_60 [4];
|
|
undefined4 uStack_5c;
|
|
void *pvStack_58;
|
|
undefined4 uStack_54;
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
byte *pbStack_44;
|
|
void *pvStack_40;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b03fe0;
|
|
local_10 = ExceptionList;
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x4000) == 0) {
|
|
return 0;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
pvStack_40 = (void *)0x8627b7;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8627d7);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &DAT_00c829d4;
|
|
uStack_48 = 0xfff0b9d8;
|
|
userdata[1] = param_2;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
uStack_50 = 0x8627f3;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8627ff);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
if (param_3 == 0) {
|
|
pvStack_40 = (void *)0x86283e;
|
|
lua_pushnil();
|
|
}
|
|
else {
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86280d);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntity;
|
|
uStack_48 = 0xfff0b9d8;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
userdata[1] = param_3;
|
|
uStack_50 = 0x862826;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x862832);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
}
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86284d);
|
|
pvStack_40 = luaState;
|
|
lua_pushboolean();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x0);
|
|
uStack_48 = 0;
|
|
pvStack_4c = (void *)0x0;
|
|
uStack_50 = 1;
|
|
uStack_54 = 5;
|
|
uStack_5c = 0x86285e;
|
|
pvStack_58 = luaState;
|
|
pcallResult = lua_pcallk();
|
|
if (pcallResult != 0) {
|
|
FUN_0085c080(luaState,auStack_60);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
result = FUN_008628b6();
|
|
return result;
|
|
}
|
|
|
|
// 00862d70
|
|
int LuaEngine::PreTearCollision(Entity_Tear *tear, Entity *collider, byte low)
|
|
{
|
|
int iVar1;
|
|
undefined4 stackTop;
|
|
undefined3 in_stack_0000000d;
|
|
uint uStack_3c;
|
|
void *callResult;
|
|
int callResultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04060;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x400) != 0) {
|
|
local_8 = 0;
|
|
FUN_00873980(&callResult,tear->_variant,tear,collider,_low);
|
|
if (callResultRef != -1) {
|
|
(GHIDRA_CAST<LuaRef *>((&callResult)))->LuaRef::push(callResult);
|
|
iVar1 = lua_type(callResult,0xffffffff);
|
|
lua_settop(callResult,0xfffffffe);
|
|
if (iVar1 != 0) {
|
|
(GHIDRA_CAST<LuaRef *>((&callResult)))->LuaRef::push(callResult);
|
|
stackTop = lua_gettop(callResult);
|
|
iVar1 = lua_toboolean(callResult,stackTop);
|
|
lua_settop(callResult,0xfffffffe);
|
|
luaL_unref(callResult,0xfff0b9d8,callResultRef);
|
|
if (iVar1 == 0) {
|
|
ExceptionList = local_10;
|
|
return -1;
|
|
}
|
|
ExceptionList = local_10;
|
|
return 1;
|
|
}
|
|
}
|
|
luaL_unref(callResult,0xfff0b9d8,callResultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return 0;
|
|
}
|
|
|
|
// 008631b0
|
|
int LuaEngine::PrePickupCollision(Entity_Pickup *pickup, Entity *collider, byte low)
|
|
{
|
|
int iVar1;
|
|
undefined4 stackTop;
|
|
undefined3 in_stack_0000000d;
|
|
uint uStack_3c;
|
|
void *resultL;
|
|
int resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b040e0;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((*GHIDRA_CAST<byte *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 0x40) != 0) {
|
|
local_8 = 0;
|
|
FUN_00873d00(&resultL,pickup->_variant,pickup,collider,_low);
|
|
if (resultRef != -1) {
|
|
(GHIDRA_CAST<LuaRef *>((&resultL)))->LuaRef::push(resultL);
|
|
iVar1 = lua_type(resultL,0xffffffff);
|
|
lua_settop(resultL,0xfffffffe);
|
|
if (iVar1 != 0) {
|
|
(GHIDRA_CAST<LuaRef *>((&resultL)))->LuaRef::push(resultL);
|
|
stackTop = lua_gettop(resultL);
|
|
iVar1 = lua_toboolean(resultL,stackTop);
|
|
lua_settop(resultL,0xfffffffe);
|
|
luaL_unref(resultL,0xfff0b9d8,resultRef);
|
|
if (iVar1 == 0) {
|
|
ExceptionList = local_10;
|
|
return -1;
|
|
}
|
|
ExceptionList = local_10;
|
|
return 1;
|
|
}
|
|
}
|
|
luaL_unref(resultL,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return 0;
|
|
}
|
|
|
|
// 00863680
|
|
void LuaEngine::PostRender()
|
|
{
|
|
uint uStack_3c;
|
|
undefined4 callResult;
|
|
undefined4 callResultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04140;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<byte **>(g_luaEngine) & 4) != 0) {
|
|
local_8 = 0;
|
|
FUN_00872980(&callResult,g_luaEngine);
|
|
luaL_unref(callResult,0xfff0b9d8,callResultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 008638d0
|
|
byte LuaEngine::UseItem(int collectibleType, RNG *rng, Entity_Player *player, uint useFlags, int activeSlot, int customVarData, short *resultFlags)
|
|
{
|
|
char cVar1;
|
|
undefined1 flagValue;
|
|
int resultType;
|
|
undefined4 keyRef;
|
|
int iVar2;
|
|
uint uStack_4c;
|
|
void *callResult;
|
|
int callResultRef;
|
|
undefined1 local_16;
|
|
byte isShowAnim;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04180;
|
|
local_10 = ExceptionList;
|
|
uStack_4c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_4c);
|
|
ExceptionList = &local_10;
|
|
isShowAnim = 0;
|
|
local_16 = 0;
|
|
if ((**GHIDRA_CAST<byte **>(g_luaEngine) & 8) != 0) {
|
|
local_8 = 0;
|
|
LuaCallbackCaller::CallUseItem
|
|
(&callResult,g_luaEngine,collectibleType,rng,player,useFlags,activeSlot,customVarData)
|
|
;
|
|
iVar2 = callResultRef;
|
|
if (callResultRef != -1) {
|
|
(GHIDRA_CAST<LuaRef *>((&callResult)))->LuaRef::push(callResult);
|
|
resultType = lua_type(callResult,0xffffffff);
|
|
lua_settop(callResult,0xfffffffe);
|
|
if (resultType != 0) {
|
|
cVar1 = FUN_0085c340();
|
|
if (cVar1 == '\0') {
|
|
isShowAnim = FUN_00872820();
|
|
}
|
|
else {
|
|
lua_pushstring(callResult,"Discharge");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
cVar1 = FUN_0085c2d0();
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
if (cVar1 == '\0') {
|
|
lua_pushstring(callResult,"Discharge");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
flagValue = FUN_008bb130();
|
|
*GHIDRA_CAST<undefined1 *>(resultFlags) = flagValue;
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
}
|
|
lua_pushstring(callResult,"Remove");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
cVar1 = FUN_0085c2d0();
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
if (cVar1 == '\0') {
|
|
lua_pushstring(callResult,"Remove");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
flagValue = FUN_008bb130();
|
|
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(resultFlags) + 1)) = flagValue;
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
}
|
|
lua_pushstring(callResult,"ShowAnim");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
cVar1 = FUN_0085c2d0();
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
if (cVar1 == '\0') {
|
|
lua_pushstring(callResult,"ShowAnim");
|
|
keyRef = luaL_ref(callResult,0xfff0b9d8);
|
|
isShowAnim = FUN_008bb130();
|
|
luaL_unref(callResult,0xfff0b9d8,keyRef);
|
|
}
|
|
iVar2 = callResultRef;
|
|
}
|
|
}
|
|
}
|
|
luaL_unref(callResult,0xfff0b9d8,iVar2);
|
|
}
|
|
ExceptionList = local_10;
|
|
return isShowAnim;
|
|
}
|
|
|
|
// 00863da0
|
|
void LuaEngine::UsePill(int pillEffect, Entity_Player *player, uint useFlags)
|
|
{
|
|
uint uStack_40;
|
|
undefined4 resultState;
|
|
undefined4 resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b041e0;
|
|
local_10 = ExceptionList;
|
|
uStack_40 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_40);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x400) != 0) {
|
|
local_8 = 0;
|
|
FUN_00874210(&resultState,g_luaEngine,pillEffect,player,useFlags);
|
|
luaL_unref(resultState,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00863e90
|
|
void LuaEngine::EvaluateItems(Entity_Player *player, int cacheFlag)
|
|
{
|
|
uint uStack_3c;
|
|
undefined4 resultL;
|
|
undefined4 resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04200;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x100) != 0) {
|
|
local_8 = 0;
|
|
FUN_00874310(&resultL,g_luaEngine,player,cacheFlag);
|
|
luaL_unref(resultL,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00864050
|
|
void LuaEngine::PostPlayerInit(Entity_Player *player)
|
|
{
|
|
uint uStack_3c;
|
|
undefined4 luaState;
|
|
undefined4 resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04240;
|
|
local_10 = ExceptionList;
|
|
uStack_3c = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_3c);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x200) != 0) {
|
|
local_8 = 0;
|
|
FUN_00874120(&luaState,player->_variant,player);
|
|
luaL_unref(luaState,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00864300
|
|
undefined4 LuaEngine::PrePlayerCollide(undefined4 param_2, int param_3)
|
|
{
|
|
undefined4 param_1 = this;
|
|
void *luaState;
|
|
undefined4 *userdata;
|
|
int callResult;
|
|
undefined4 result;
|
|
undefined1 auStack_60 [4];
|
|
undefined4 uStack_5c;
|
|
void *pvStack_58;
|
|
undefined4 uStack_54;
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
byte *pbStack_44;
|
|
void *pvStack_40;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b042a0;
|
|
local_10 = ExceptionList;
|
|
if ((*GHIDRA_CAST<byte *>((*GHIDRA_CAST<int *>(g_luaEngine) + 4)) & 2) == 0) {
|
|
return 0;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
pvStack_40 = (void *)0x864354;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x864374);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntityPlayer;
|
|
uStack_48 = 0xfff0b9d8;
|
|
userdata[1] = param_2;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
uStack_50 = 0x864390;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x86439c);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
if (param_3 == 0) {
|
|
pvStack_40 = (void *)0x8643db;
|
|
lua_pushnil();
|
|
}
|
|
else {
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8643aa);
|
|
pvStack_40 = luaState;
|
|
userdata = GHIDRA_CAST<undefined4 *>(lua_newuserdata());
|
|
pbStack_44 = &g_luaClassKeyEntity;
|
|
uStack_48 = 0xfff0b9d8;
|
|
*userdata = luabridge::UserdataPtr::vftable;
|
|
userdata[1] = param_3;
|
|
uStack_50 = 0x8643c3;
|
|
pvStack_4c = luaState;
|
|
lua_rawgetp();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8643cf);
|
|
pvStack_40 = luaState;
|
|
lua_setmetatable();
|
|
}
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x8643ea);
|
|
pvStack_40 = luaState;
|
|
lua_pushboolean();
|
|
pbStack_44 = GHIDRA_CAST<byte *>(0x0);
|
|
uStack_48 = 0;
|
|
pvStack_4c = (void *)0x0;
|
|
uStack_50 = 1;
|
|
uStack_54 = 5;
|
|
uStack_5c = 0x8643fb;
|
|
pvStack_58 = luaState;
|
|
callResult = lua_pcallk();
|
|
if (callResult != 0) {
|
|
FUN_0085c080(luaState,auStack_60);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
result = FUN_00864453();
|
|
return result;
|
|
}
|
|
|
|
// 00864ee0
|
|
void LuaEngine::PostGameStart(uint state)
|
|
{
|
|
uint uStack_40;
|
|
undefined4 luaState;
|
|
undefined4 callbackRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04360;
|
|
local_10 = ExceptionList;
|
|
uStack_40 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_40);
|
|
ExceptionList = &local_10;
|
|
if ((**GHIDRA_CAST<uint **>(g_luaEngine) & 0x8000) != 0) {
|
|
local_8 = 0;
|
|
FUN_00874a10(&luaState,g_luaEngine,state);
|
|
luaL_unref(luaState,0xfff0b9d8,callbackRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00865ad0
|
|
undefined4 LuaEngine::GetPillEffect()
|
|
{
|
|
void *luaState;
|
|
int callResult;
|
|
undefined4 uVar1;
|
|
undefined1 auStack_5c [12];
|
|
undefined4 uStack_50;
|
|
void *pvStack_4c;
|
|
undefined4 uStack_48;
|
|
undefined4 uStack_44;
|
|
undefined4 uStack_40;
|
|
undefined4 uStack_3c;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b044b0;
|
|
local_10 = ExceptionList;
|
|
if ((*GHIDRA_CAST<byte *>((*GHIDRA_CAST<int *>(g_luaEngine) + 8)) & 2) == 0) {
|
|
return 0xffffffff;
|
|
}
|
|
local_8 = 0;
|
|
luaState = (void *)**GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
uStack_3c = 0x865b24;
|
|
ExceptionList = &local_10;
|
|
(GHIDRA_CAST<LuaRef *>((*GHIDRA_CAST<undefined4 **>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10)))))->LuaRef::push(luaState);
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
FUN_0085bfd0();
|
|
uStack_3c = 0;
|
|
uStack_40 = 0;
|
|
uStack_44 = 1;
|
|
uStack_48 = 4;
|
|
uStack_50 = 0x865b5c;
|
|
pvStack_4c = luaState;
|
|
callResult = lua_pcallk();
|
|
if (callResult != 0) {
|
|
FUN_0085c080(luaState,auStack_5c);
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_008727d0();
|
|
}
|
|
uVar1 = FUN_00865bbc();
|
|
return uVar1;
|
|
}
|
|
|
|
// 00866140
|
|
void LuaEngine::PostEntityKill(Entity *ent)
|
|
{
|
|
uint uStack_40;
|
|
undefined4 callbackLuaState;
|
|
undefined4 callbackId;
|
|
int entityType;
|
|
undefined4 resultL;
|
|
undefined4 resultRef;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
puStack_c = &LAB_00b04550;
|
|
local_10 = ExceptionList;
|
|
uStack_40 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
local_14 = GHIDRA_CAST<undefined1 *>(&uStack_40);
|
|
ExceptionList = &local_10;
|
|
callbackId = 0x44;
|
|
callbackLuaState = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(g_luaEngine) + 0x10));
|
|
entityType = ent->_type;
|
|
if ((*GHIDRA_CAST<byte *>((*GHIDRA_CAST<int *>(g_luaEngine) + 8)) & 0x10) != 0) {
|
|
local_8 = 0;
|
|
lua_callback_run_entity(&callbackLuaState,&resultL,entityType,ent);
|
|
luaL_unref(resultL,0xfff0b9d8,resultRef);
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00866960
|
|
void LuaEngine::RegisterAPI()
|
|
{
|
|
undefined4 luaBuilder;
|
|
undefined4 *puVar1;
|
|
undefined4 *fnSlot;
|
|
undefined1 local_150 [8];
|
|
undefined1 optionsNamespace [8];
|
|
undefined1 local_140 [8];
|
|
undefined1 local_138 [8];
|
|
undefined1 local_130 [8];
|
|
undefined1 local_128 [8];
|
|
undefined1 local_120 [8];
|
|
undefined1 local_118 [8];
|
|
undefined1 local_110 [8];
|
|
undefined1 local_108 [8];
|
|
undefined1 local_100 [8];
|
|
undefined1 local_f8 [8];
|
|
undefined1 local_f0 [8];
|
|
undefined1 local_e8 [8];
|
|
undefined1 local_e0 [8];
|
|
undefined1 local_d8 [8];
|
|
undefined1 local_d0 [8];
|
|
undefined1 local_c8 [8];
|
|
undefined1 local_c0 [8];
|
|
undefined1 local_b8 [8];
|
|
undefined1 local_b0 [8];
|
|
undefined1 local_a8 [8];
|
|
undefined1 local_a0 [8];
|
|
undefined1 local_98 [8];
|
|
undefined1 entityPlayerClass [4];
|
|
undefined4 local_8c;
|
|
undefined1 local_88 [8];
|
|
undefined1 local_80 [8];
|
|
undefined1 local_78 [8];
|
|
undefined1 local_70 [8];
|
|
undefined1 local_68 [8];
|
|
undefined1 local_60 [8];
|
|
undefined1 local_58 [8];
|
|
undefined1 local_50 [4];
|
|
undefined4 local_4c;
|
|
undefined1 local_48 [4];
|
|
undefined4 local_44;
|
|
undefined1 local_40 [8];
|
|
undefined1 local_38 [8];
|
|
undefined1 local_30 [4];
|
|
undefined4 local_2c;
|
|
undefined4 local_28;
|
|
undefined4 local_24;
|
|
undefined4 local_20;
|
|
undefined4 local_1c;
|
|
undefined4 local_18;
|
|
undefined4 local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b04a88;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
luaBuilder = FUN_0085dab0(__security_cookie ^ GHIDRA_UINT((local_30 + 0x2c)));
|
|
local_8 = 0;
|
|
luabridge::Namespace::Class<EntityPtr>::Class("EntityPtr",luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
lua_pushcclosure(local_20,FUN_008bb1c0,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_008a06a0(EntityPtr::SetReference);
|
|
luaBuilder = FUN_00875130(&DAT_00b701d8,EntityPtr::Ref);
|
|
FUN_0085d910(luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
|
|
FUN_0085cce0(local_4c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),3);
|
|
FUN_0085cce0(local_1c);
|
|
local_8 = 4;
|
|
FUN_0085cce0(local_44);
|
|
local_8 = 0xffffffff;
|
|
luaBuilder = FUN_0085dab0();
|
|
local_8 = 5;
|
|
luabridge::Namespace::Class<Vector>::Class("Vector",luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
|
|
lua_pushcclosure(local_18,FUN_008bb260,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_008a05a0(Vector::Normalize);
|
|
FUN_008a0500(Vector::Normalized);
|
|
FUN_008a0460(Vector::Dot);
|
|
FUN_008a0460(Vector::Cross);
|
|
FUN_008a0400(Vector::Lerp);
|
|
FUN_008a0460(Vector::Distance);
|
|
FUN_008a0460(Vector::DistanceSquared);
|
|
FUN_008a0360(Vector::Rotated);
|
|
puVar1 = GHIDRA_CAST<undefined4 *>(lua_newuserdata(local_18,4));
|
|
*puVar1 = Vector::FromAngle;
|
|
lua_pushcclosure(local_18,FUN_008a02c0,1);
|
|
FUN_0085bf90("FromAngle");
|
|
FUN_008a0220(Vector::GetAngleDegrees);
|
|
FUN_008a01c0(Vector::Resize);
|
|
FUN_008a0360(Vector::Resized);
|
|
FUN_008a0160(Vector::Clamp);
|
|
FUN_008a00c0(Vector::Clamped);
|
|
FUN_008a0220(Vector::Length);
|
|
FUN_008a0220(Vector::LengthSquared);
|
|
FUN_008a0020(Vector::__add);
|
|
FUN_008a0020(Vector::__sub);
|
|
FUN_0089ff80(Vector::__mul);
|
|
FUN_0089ff80(Vector::__div);
|
|
FUN_008a0500(Vector::__unm);
|
|
FUN_0089fee0(Vector::__tostring);
|
|
FUN_00875230(&DAT_00b6a748,0,1);
|
|
luaBuilder = FUN_00875230(&DAT_00b6d134,4,1);
|
|
FUN_0085d910(luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
|
FUN_0085cce0(local_4c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),8);
|
|
FUN_0085cce0(local_14);
|
|
local_8 = 9;
|
|
FUN_0085cce0(local_44);
|
|
local_8 = 0xffffffff;
|
|
luaBuilder = FUN_0085dab0();
|
|
local_8 = 10;
|
|
luabridge::Namespace::Class<KColor>::Class("KColor",luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
lua_pushcclosure(local_28,FUN_008bb3b0,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_008753a0("Alpha",0xc,1);
|
|
FUN_008753a0(&DAT_00b633c4,0,1);
|
|
FUN_008753a0("Green",4,1);
|
|
luaBuilder = FUN_008753a0(&DAT_00b634c0,8,1);
|
|
FUN_0085d910(luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xc;
|
|
luabridge::Namespace::Class<FontRenderSettings>::Class("FontRenderSettings",local_50);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xd;
|
|
lua_pushcclosure(local_18,FUN_008bb4f0,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_0089fe80(Font::SetAlignment);
|
|
FUN_0089fde0(EntityPtr::Ref);
|
|
FUN_0089fd80(Font::SetMaxCharacters);
|
|
FUN_0089fce0(Font::GetMaxCharacters);
|
|
FUN_0089fd80(Font::EnableAutoWrap);
|
|
FUN_0089fc40(Font::IsAutoWrapEnabled);
|
|
FUN_0089fd80(Font::EnableTruncation);
|
|
FUN_0089fc40(Font::IsTruncationEnabled);
|
|
FUN_0089fbe0(Font::SetLineHeightModifier);
|
|
FUN_0089fb40(Color::A);
|
|
FUN_0089fae0(Font::SetMissingCharacterOverride);
|
|
FUN_0089fa40(Room::GetGridHeight);
|
|
FUN_0085d910(&local_18);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xe;
|
|
luabridge::Namespace::Class<Font>::Class(&DAT_00b70424,local_48);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xf;
|
|
lua_pushcclosure(local_20,FUN_008bb570,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_0089f9e0(Font::Load);
|
|
FUN_0089f980(Font::Unload);
|
|
FUN_0089f8e0(Room::IsInitialized);
|
|
FUN_0089f840(Font::GetCharacterWidth);
|
|
FUN_0089f7a0(Font::GetStringWidth);
|
|
FUN_0089f700(Font::GetLineHeight);
|
|
FUN_0089f700(Font::GetBaselineHeight);
|
|
FUN_0089f660(Font::DrawString);
|
|
FUN_0089f600(Font::SetMissingCharacter);
|
|
FUN_0085d910(&local_20);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x10;
|
|
FUN_0085cce0(local_8c);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x11;
|
|
FUN_0085cce0(local_1c);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x12;
|
|
FUN_0085cce0(local_44);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x13;
|
|
FUN_0085cce0(local_14);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x14;
|
|
FUN_0085cce0(local_4c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x15);
|
|
FUN_0085cce0(local_24);
|
|
local_8 = 0x16;
|
|
FUN_0085cce0(local_2c);
|
|
local_8 = 0xffffffff;
|
|
luaBuilder = FUN_0085dab0();
|
|
local_8 = 0x17;
|
|
luabridge::Namespace::Class<Color>::Class("Color",luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x18;
|
|
lua_pushcclosure(local_28,FUN_008bb5c0,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_00875510(&DAT_00b70450,Color::R,FUN_005cd370);
|
|
FUN_00875510(&DAT_00b70434,Color::G,FUN_005cd380);
|
|
FUN_00875510(&DAT_00b6d178,Color::B,FUN_005cd3a0);
|
|
FUN_00875510(&DAT_00b6d17c,Color::A,Font::SetLineHeightModifier);
|
|
FUN_00875510(&DAT_00b70438,Color::RO,FUN_005cd3d0);
|
|
FUN_00875510(&DAT_00b7042c,Color::GO,FUN_005cd3f0);
|
|
puVar1 = GHIDRA_CAST<undefined4 *>(FUN_00875510(&DAT_00b70430,Color::BO,FUN_005cd410));
|
|
FUN_0089f4a0(Color::Reset);
|
|
FUN_0089f440(Color::SetTint);
|
|
FUN_0089f440(Color::SetColorize);
|
|
FUN_0089f3e0(Color::SetOffset);
|
|
fnSlot = GHIDRA_CAST<undefined4 *>(lua_newuserdata(*puVar1,4));
|
|
*fnSlot = Color::Lerp;
|
|
lua_pushcclosure(*puVar1,FUN_0089f2b0,1);
|
|
FUN_0085bf90(&DAT_00b70244);
|
|
FUN_0089f250(Color::__mul);
|
|
FUN_0085d910(puVar1);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x19;
|
|
FUN_0085cce0(local_2c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x1a);
|
|
FUN_0085cce0(local_24);
|
|
local_8 = 0x1b;
|
|
FUN_0085cce0(local_8c);
|
|
local_8 = 0xffffffff;
|
|
luaBuilder = FUN_0085dab0();
|
|
local_8 = 0x1c;
|
|
luabridge::Namespace::Class<Sprite>::Class("Sprite",luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1d;
|
|
lua_pushcclosure(local_18,FUN_008bb720,0);
|
|
FUN_0085bf90("__call");
|
|
FUN_0089f1b0(Sprite::IsFinished);
|
|
FUN_0089f150(Sprite::Play);
|
|
FUN_0089f0f0(ANM2::SetFrame);
|
|
FUN_0089f090(Sprite::SetFrame_1);
|
|
FUN_0089f030(ANM2::Reset);
|
|
FUN_0089f030(ANM2::Update);
|
|
FUN_0089efd0(ANM2::Render);
|
|
FUN_0089ef70(Sprite::RenderLayer);
|
|
FUN_0089f150(ANM2::Load);
|
|
FUN_0089f030(ANM2::Reload);
|
|
FUN_0089ef10(Sprite::ReplaceSpritesheet);
|
|
FUN_0089f030(Sprite::LoadGraphics);
|
|
FUN_0089ee70(Sprite::IsLoaded);
|
|
FUN_0089edd0(Sprite::GetFilename);
|
|
FUN_0089ed70(Sprite::PlayRandom);
|
|
FUN_0089f030(Sprite::Stop);
|
|
FUN_0089ed10(Sprite::SetAnimation);
|
|
FUN_0089ec70(ANM2::GetFrame);
|
|
FUN_0089f030(Sprite::SetLastFrame);
|
|
FUN_0089f1b0(Sprite::IsPlaying);
|
|
FUN_0089ec10(ANM2::SetLayerFrame);
|
|
FUN_0089f150(Sprite::PlayOverlay);
|
|
FUN_0089ed10(Sprite::SetOverlayAnimation);
|
|
FUN_0089ebb0(Sprite::SetOverlayRenderPriority);
|
|
FUN_0089f0f0(Sprite::SetOverlayFrame);
|
|
FUN_0089eb50(Sprite::GetOverlayFrame);
|
|
FUN_0089f030(Sprite::RemoveOverlay);
|
|
FUN_0089f1b0(Sprite::IsOverlayPlaying);
|
|
FUN_0089f1b0(Sprite::IsOverlayFinished);
|
|
FUN_0089f1b0(Sprite::IsEventTriggered);
|
|
FUN_0089f1b0(Sprite::WasEventTriggered);
|
|
FUN_0089eab0(Sprite::GetLayerCount);
|
|
FUN_0089ea10(Sprite::GetDefaultAnimationName);
|
|
FUN_00875680("Offset",Sprite::Offset,Sprite::set_offset);
|
|
FUN_00875680("Scale",Sprite::Scale,Sprite::SetScale);
|
|
FUN_008757f0("Rotation",Sprite::Rotation,Sprite::SetRotation);
|
|
luabridge::Namespace::Class<Sprite>::addProperty_Color("Color",Sprite::Color,Sprite::SetColor);
|
|
FUN_0089e610(Sprite::GetTexel);
|
|
FUN_00875ae0("FlipX",Sprite::FlipX,Sprite::set_flip_x);
|
|
FUN_00875ae0("FlipY",Sprite::FlipY,set_byte_0x101);
|
|
luaBuilder = FUN_008757f0("PlaybackSpeed",Sprite::PlaybackSpeed,set_PlaybackSpeed);
|
|
FUN_0089ea10(Sprite::GetDefaultAnimationName);
|
|
FUN_0089edd0(Sprite::GetAnimation);
|
|
FUN_0089edd0(Sprite::GetOverlayAnimation);
|
|
FUN_0085d910(luaBuilder);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x1e;
|
|
FUN_0085cce0(local_2c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x1f);
|
|
FUN_0085cce0(local_14);
|
|
local_8 = 0x20;
|
|
FUN_0085cce0(local_8c);
|
|
local_8 = 0xffffffff;
|
|
luaBuilder = FUN_0085dab0();
|
|
local_8 = 0x21;
|
|
luabridge::Namespace::Class<EntityRef>::Class("EntityRef",luaBuilder);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x22);
|
|
lua_pushcclosure(local_28,FUN_008bb770,0);
|
|
FUN_0085bf90("__call");
|
|
luabridge::Namespace::Class<EntityRef>::addData_Type(&DAT_00b6d1a4,0,1);
|
|
FUN_00875dd0("Variant",4,1);
|
|
luabridge::Namespace::Class<EntityRef>::addData_SpawnerType("SpawnerType",8,1);
|
|
FUN_00875dd0("SpawnerVariant",0xc,1);
|
|
luabridge::Namespace::Class<EntityRef>::addData_Position("Position",0x10,1);
|
|
FUN_00876240("IsCharmed",EntityRef::IsCharmed,FUN_0085dc10);
|
|
FUN_00876240("IsFriendly",EntityRef::IsFriendly,FUN_0085dbf0);
|
|
luabridge::Namespace::Class<EntityRef>::addData_Entity("Entity",0x24,1);
|
|
FUN_00872510(local_30);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_30)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_c0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x23;
|
|
FUN_00876530(local_30,&DAT_00b70764);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x24);
|
|
FUN_00876550();
|
|
FUN_008765a0("GetSeed",EntityPtr::Ref);
|
|
FUN_00876650("SetSeed",RNG::SetSeed);
|
|
FUN_008766b0("RandomInt",RNG::RandomInt);
|
|
FUN_00876710("RandomFloat",RNG::RandomFloat);
|
|
FUN_00876770(&DAT_00b61210,RNG::Next);
|
|
FUN_00872510(local_c0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_c0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_c8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x25;
|
|
FUN_008767d0(local_c0,"ProjectileParams");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x26);
|
|
FUN_008767f0();
|
|
luabridge::Namespace::Class<ProjectileParams>::addData_GridCollision("GridCollision",0,1);
|
|
FUN_008769c0("HeightModifier",4,1);
|
|
FUN_008769c0("FallingSpeedModifier",8,1);
|
|
FUN_008769c0("FallingAccelModifier",0xc,1);
|
|
FUN_008769c0("VelocityMulti",0x10,1);
|
|
FUN_008769c0("Scale",0x14,1);
|
|
FUN_008769c0("CircleAngle",0x18,1);
|
|
FUN_008769c0("HomingStrength",0x1c,1);
|
|
FUN_008769c0("CurvingStrength",0x20,1);
|
|
FUN_008769c0("Acceleration",0x24,1);
|
|
FUN_008769c0("Spread",0x28,1);
|
|
luabridge::Namespace::Class<ProjectileParams>::addData_Color("Color",0x2c,1);
|
|
FUN_00876cb0("BulletFlags",0x58,1);
|
|
FUN_00876e20("PositionOffset",0x60,1);
|
|
FUN_00876e20("TargetPosition",0x68,1);
|
|
FUN_00876e20("FireDirectionLimit",0x70,1);
|
|
FUN_008769c0("DotProductLimit",0x78,1);
|
|
FUN_00876f90("WiggleFrameOffset",0x7c,1);
|
|
FUN_00876cb0("ChangeFlags",0x80,1);
|
|
FUN_008769c0("ChangeVelocity",0x88,1);
|
|
FUN_00876f90("ChangeTimeout",0x8c,1);
|
|
FUN_008769c0("DepthOffset",0x90,1);
|
|
FUN_00876f90("Variant",0x94,1);
|
|
FUN_00872510(local_c8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_c8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_70)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x27;
|
|
FUN_00877100(local_c8,"BitSet128");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x28);
|
|
FUN_00877120();
|
|
FUN_00877170("__band",BitSet128::__band);
|
|
FUN_00877170("__bor",BitSet128::__bor);
|
|
FUN_00877170("__bxor",BitSet128::__bxor);
|
|
FUN_008771d0("__bnot",BitSet128::__bnot);
|
|
FUN_00877280(&DAT_00b7087c,BitSet128::__eq);
|
|
FUN_00877330("__tostring",BitSet128::__tostring);
|
|
FUN_008773e0(s_Get,BitSet128::Get);
|
|
FUN_00877490(&DAT_00b70924,BitSet128::Set);
|
|
FUN_008774f0(&DAT_00b669b4,0,1);
|
|
FUN_008774f0(&DAT_00b70910,8,1);
|
|
FUN_00872510(local_70);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_70)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_78)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x29;
|
|
FUN_00877660(local_70,"PathFinder");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x2a);
|
|
FUN_00877680("Reset",PathFinder::Reset);
|
|
FUN_008776e0("MoveRandomly",PathFinder::MoveRandomly);
|
|
FUN_00877740("MoveRandomlyBoss",PathFinder::MoveRandomlyBoss);
|
|
FUN_008777a0("MoveRandomlyAxisAligned",PathFinder::MoveRandomlyAxisAligned);
|
|
FUN_00877800("FindGridPath",PathFinder::FindGridPath);
|
|
FUN_00877860("HasPathToPos",NPCAI_Pathfinder::HasPathToPos);
|
|
FUN_00877910("HasDirectPath",PathFinder::HasDirectPath);
|
|
FUN_00877970("EvadeTarget",PathFinder::EvadeTarget);
|
|
FUN_008779d0("GetEvadeMovementCountdown",PathFinder::GetEvadeMovementCountdown);
|
|
FUN_00877680("ResetMovementTarget",NPCAI_Pathfinder::ResetMovementTarget);
|
|
FUN_00877680("UpdateGridIndex",PathFinder::UpdateGridIndex);
|
|
FUN_00877a30("GetGridIndex",PathFinder::GetGridIndex);
|
|
FUN_00877740("SetCanCrushRocks",PathFinder::SetCanCrushRocks);
|
|
FUN_00872510(local_78);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_78)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_80)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x2b;
|
|
FUN_0085da00(local_70,"ItemConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2c;
|
|
FUN_00877ae0(local_78,&DAT_00b70a1c);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x2d);
|
|
FUN_00877b00(&DAT_00b6d1bc,0,1);
|
|
FUN_00877b00("AchievementID",4,1);
|
|
FUN_00877c70(&DAT_00b1b350,8,1);
|
|
FUN_00877c70("Description",0x20,1);
|
|
FUN_00877c70("HudAnim",0x38,1);
|
|
luabridge::Namespace::Class<ItemConfig_Card>::addData_GreedModeAllowed("GreedModeAllowed",0x50,1);
|
|
luabridge::Namespace::Class<ItemConfig_Card>::addData_PickupSubtype("PickupSubtype",0x54,1);
|
|
luabridge::Namespace::Class<ItemConfig_Card>::addData_CardType("CardType",0x58,1);
|
|
luabridge::Namespace::Class<ItemConfig_Card>::addData_AnnouncerVoice("AnnouncerVoice",0x5c,1);
|
|
FUN_00877b00("AnnouncerDelay",0x60,1);
|
|
FUN_00877b00("MimicCharge",100,1);
|
|
FUN_008783f0("IsCard",Card::IsCard);
|
|
FUN_008783f0("IsRune",Card::IsRune);
|
|
FUN_008783f0("IsAvailable",Card::IsAvailable);
|
|
FUN_00872510(local_80);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_80)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_70)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_88)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x2e;
|
|
FUN_0085da00(local_78,"ItemConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x2f;
|
|
FUN_00878490(local_80,"PillEffect");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x30);
|
|
FUN_008784b0(&DAT_00b6d1bc,0,1);
|
|
FUN_008784b0("AchievementID",4,1);
|
|
luabridge::Namespace::Class<ItemConfig_Pill>::addData_Name(&DAT_00b1b350,8,1);
|
|
luabridge::Namespace::Class<ItemConfig_Pill>::addData_GreedModeAllowed("GreedModeAllowed",0x38,1);
|
|
FUN_00878920("AnnouncerVoice",0x3c,1);
|
|
FUN_00878920("AnnouncerVoiceSuper",0x40,1);
|
|
FUN_008784b0("AnnouncerDelay",0x44,1);
|
|
FUN_008784b0("MimicCharge",0x48,1);
|
|
FUN_00878a90("EffectClass",0x4c,1);
|
|
FUN_00878a90("EffectSubClass",0x4d,1);
|
|
FUN_00878c00("IsAvailable",PillEffect::IsAvailable);
|
|
FUN_00872510(local_88);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_88)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_78)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_58)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x31;
|
|
FUN_0085da00(local_80,"ItemConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x32;
|
|
FUN_00878cb0(local_88,&DAT_00b67800);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x33);
|
|
FUN_00878cd0("IsCollectible",Item::IsCollectible);
|
|
FUN_00878cd0("IsTrinket",Item::IsTrinket);
|
|
FUN_00878cd0("IsNull",Item::IsNull);
|
|
FUN_00878d70(&DAT_00b6d1a4,0,1);
|
|
FUN_00878d70(&DAT_00b6d1bc,4,1);
|
|
FUN_00878ee0(&DAT_00b1b350,8,1);
|
|
FUN_00878ee0("Description",0x20,1);
|
|
FUN_00878ee0("GfxFileName",0x38,1);
|
|
FUN_00878d70("AchievementID",0x50,1);
|
|
luabridge::Namespace::Class<ItemConfig_Item>::addData_CacheFlags("CacheFlags",0x54,1);
|
|
FUN_00878d70("AddMaxHearts",0x58,1);
|
|
FUN_00878d70("AddHearts",0x5c,1);
|
|
FUN_00878d70("AddSoulHearts",0x60,1);
|
|
FUN_00878d70("AddBlackHearts",100,1);
|
|
FUN_00878d70("AddBombs",0x68,1);
|
|
FUN_00878d70("AddKeys",0x6c,1);
|
|
FUN_00878d70("AddCoins",0x70,1);
|
|
FUN_00878d70("MaxCharges",0x74,1);
|
|
FUN_00878d70("MaxCooldown",0x78,1);
|
|
FUN_008791d0("Special",0xb0,1);
|
|
FUN_00879340("DevilPrice",0x7c,1);
|
|
FUN_008794b0("Costume",Item::Costume);
|
|
FUN_00878d70("InitCharge",200,1);
|
|
luabridge::Namespace::Class<ItemConfig_Item>::addData_ChargeType("ChargeType",0xac,1);
|
|
FUN_00879340("ShopPrice",0x7e,1);
|
|
FUN_008791d0("PassiveCache",0xb1,1);
|
|
FUN_008791d0("AddCostumeOnPickup",0xb2,1);
|
|
FUN_008791d0("Hidden",0xb3,1);
|
|
FUN_008791d0("PersistentEffect",0xb4,1);
|
|
FUN_008791d0("ClearEffectsOnRemove",0xb5,1);
|
|
luabridge::Namespace::Class<ItemConfig_Item>::addData_Tags(&DAT_00b70c1c,0xb8,1);
|
|
FUN_00878d70("Quality",0xc0,1);
|
|
FUN_00878d70("CraftingQuality",0xc4,1);
|
|
FUN_008798b0("HasTags",Item::HasTags);
|
|
FUN_00879960("IsAvailable",Item::IsAvailable);
|
|
FUN_00872510(local_58);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_58)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_80)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_98)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x34;
|
|
FUN_0085da00(local_88,"ItemConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x35;
|
|
FUN_00879a10(local_58,"Costume");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x36);
|
|
FUN_00879a30(&DAT_00b6d1bc,0,1);
|
|
luabridge::Namespace::Class<ItemConfig_Costume>::addData_Anm2Path("Anm2Path",4,1);
|
|
FUN_00879a30("Priority",0x1c,1);
|
|
FUN_00879d20("HasOverlay",0x20,1);
|
|
FUN_00879d20("IsFlying",0x21,1);
|
|
FUN_00879d20("HasSkinAlt",0x22,1);
|
|
luabridge::Namespace::Class<ItemConfig_Costume>::addData_SkinColor("SkinColor",0x24,1);
|
|
FUN_00879d20("OverwriteColor",0x28,1);
|
|
FUN_00872510(local_98);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_98)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_88)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a0)))->luabridge::Namespace::~Namespace();
|
|
lua_register_CardConfigList("CardConfigList");
|
|
lua_register_PillConfigList("PillConfigList");
|
|
lua_register_ItemConfigList("ItemConfigList");
|
|
lua_register_CostumeConfigList("CostumeConfigList");
|
|
FUN_0085dab0();
|
|
local_8 = 0x37;
|
|
FUN_0085da00(local_58,"ItemConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x38;
|
|
FUN_0087ac50(local_98,"Config");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x39);
|
|
FUN_0087ac70("IsValidCollectible",ItemConfig::IsValidCollectible);
|
|
FUN_0087acd0("GetCollectible",ItemConfig::GetCollectible);
|
|
FUN_0087acd0("GetTrinket",ItemConfig::GetTrinket);
|
|
FUN_0087acd0("GetNullItem",Config::GetNullItem);
|
|
FUN_0087ad70("ShouldAddCostumeOnPickup",Config::ShouldAddCostumeOnPickup);
|
|
FUN_0087add0("GetCard",ItemConfig::GetCard);
|
|
FUN_0087ae80("GetPillEffect",Config::GetPillEffect);
|
|
FUN_0087af30("GetCollectibles",Config::GetCollectibles);
|
|
FUN_0087af30("GetTrinkets",Config::GetTrinkets);
|
|
FUN_0087af30("GetNullItems",Sprite::GetDefaultAnimationName);
|
|
FUN_0087afd0("GetCards",Config::GetCards);
|
|
FUN_0087b080("GetPillEffects",Config::GetPillEffects);
|
|
FUN_00872510(local_a0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_58)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x3a;
|
|
FUN_0087b130(local_a0,"TearParams");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x3b);
|
|
FUN_0087b150("TearVariant",0,1);
|
|
FUN_0087b150("BombVariant",4,1);
|
|
luabridge::Namespace::Class<TearParams>::addData_TearColor("TearColor",8,1);
|
|
luabridge::Namespace::Class<TearParams>::addData_TearFlags("TearFlags",0x38,1);
|
|
FUN_0087b5c0("TearDamage",0x48,1);
|
|
FUN_0087b5c0("TearScale",0x4c,1);
|
|
FUN_0087b5c0("TearHeight",0x50,1);
|
|
FUN_00872510(local_a8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_68)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x3c;
|
|
FUN_0087b730(local_a8,"QueueItemData");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x3d);
|
|
luabridge::Namespace::Class<QueueItemData>::addData_Item(&DAT_00b67800,0,1);
|
|
luabridge::Namespace::Class<QueueItemData>::addData_Charge("Charge",4,1);
|
|
luabridge::Namespace::Class<QueueItemData>::addProperty_Touched
|
|
("Touched",QueueItemData::Touched,FUN_0085e1d0);
|
|
FUN_00872510(local_68);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_68)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_40)))->luabridge::Namespace::~Namespace();
|
|
lua_register_VectorList("VectorList");
|
|
FUN_0085dab0();
|
|
local_8 = 0x3e;
|
|
FUN_0087bee0(local_68,"TemporaryEffect");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x3f);
|
|
luabridge::Namespace::Class<TemporaryEffect>::addData_Item(&DAT_00b67800,0,1);
|
|
FUN_0087c090("Count",4,1);
|
|
FUN_0087c090("Cooldown",8,1);
|
|
FUN_00872510(local_40);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_40)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_38)))->luabridge::Namespace::~Namespace();
|
|
lua_register_EffectList("EffectList");
|
|
FUN_0085dab0();
|
|
local_8 = 0x40;
|
|
FUN_0087c510(local_40,"TemporaryEffects");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x41);
|
|
FUN_0087c530("AddCollectibleEffect",TemporaryEffects::AddCollectibleEffect);
|
|
FUN_0087c590("AddTrinketEffect",TemporaryEffects::AddTrinketEffect);
|
|
FUN_0087c5f0("AddNullEffect",TemporaryEffects::AddNullEffect);
|
|
FUN_0087c650("RemoveCollectibleEffect",TemporaryEffects::RemoveCollectibleEffect);
|
|
FUN_0087c6b0("RemoveTrinketEffect",TemporaryEffects::RemoveTrinketEffect);
|
|
FUN_0087c710("RemoveNullEffect",TemporaryEffects::RemoveNullEffect);
|
|
FUN_0087c770("HasCollectibleEffect",TemporaryEffects::HasCollectibleEffect);
|
|
FUN_0087c820("HasTrinketEffect",TemporaryEffects::HasTrinketEffect);
|
|
FUN_0087c8d0("HasNullEffect",TemporaryEffects::HasNullEffect);
|
|
FUN_0087c980("GetCollectibleEffect",TemporaryEffects::GetCollectibleEffect);
|
|
FUN_0087ca30("GetTrinketEffect",TemporaryEffects::GetTrinketEffect);
|
|
FUN_0087cae0("GetNullEffect",TemporaryEffects::GetNullEffect);
|
|
FUN_0087cb90("GetCollectibleEffectNum",TemporaryEffects::GetCollectibleEffectNum);
|
|
FUN_0087cc40("GetTrinketEffectNum",TemporaryEffects::GetTrinketEffectNum);
|
|
FUN_0087ccf0("GetNullEffectNum",TemporaryEffects::GetNullEffectNum);
|
|
FUN_0087cda0("ClearEffects",TemporaryEffects::ClearEffects);
|
|
FUN_0087ce00("GetEffectsList",TemporaryEffects::GetEffectsList);
|
|
FUN_00872510(local_38);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_38)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_60)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x42;
|
|
FUN_0085da00(local_40,"CppContainer");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x43;
|
|
FUN_0087ce60(local_38,"EntityList");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x44);
|
|
FUN_0087ce80(s_Size,EntityList::Size);
|
|
FUN_0087cfb0("__len",EntityList::Size);
|
|
FUN_0087d060(s_Get,EntityList::Get);
|
|
FUN_00872510(local_60);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_60)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_40)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x45;
|
|
FUN_0085da00(local_68,"PlayerTypes");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x46;
|
|
FUN_0087d110(local_40,"PosVel");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x47;
|
|
FUN_0087d130("Position",0,1);
|
|
FUN_0087d130("Velocity",8,1);
|
|
FUN_00872510(local_38);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x48;
|
|
FUN_0087d2a0(local_60,"ActiveItemDesc");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x49);
|
|
FUN_0087d2c0(&DAT_00b67800,0,1);
|
|
FUN_0087d2c0("Charge",8,1);
|
|
FUN_0087d2c0("BatteryCharge",0xc,1);
|
|
FUN_0087d2c0("SubCharge",0x10,1);
|
|
FUN_0087d2c0("TimedRechargeCooldown",0x14,1);
|
|
luabridge::Namespace::Class<ActiveItemDesc>::addData_PartialCharge("PartialCharge",0x18,1);
|
|
FUN_0087d2c0("VarData",0x1c,1);
|
|
FUN_00872510(local_b0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_38)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_68)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x4a;
|
|
FUN_0087d5b0(&local_20,"Entity");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x4b;
|
|
luabridge::Namespace::Class<Entity>::addData_Friction("Friction",0x36c,1);
|
|
FUN_0087d750("GetData",Entity::GetData);
|
|
FUN_0087d7b0("Position",Entity::Position,Entity::SetPosition);
|
|
FUN_0087d7b0("Velocity",Entity::Velocity,Entity::SetVelocity);
|
|
luabridge::Namespace::Class<Entity>::addProperty_Color("Color",Entity::Color,FUN_00871f70);
|
|
FUN_0087daa0("Update",Entity::Update);
|
|
FUN_0087db00("Render",Entity::Render);
|
|
FUN_0087db60("RenderShadowLayer",Entity::RenderShadowLayer);
|
|
FUN_0087daa0("PostRender",Entity::PostRender);
|
|
FUN_0087dbc0("TakeDamage",Entity::TakeDamage);
|
|
FUN_0087dc20("HasMortalDamage",Entity::HasMortalDamage);
|
|
FUN_0087daa0(&DAT_00b71018,Entity::Kill);
|
|
FUN_0087dc80("KillWithSource",Entity::KillWithSource);
|
|
FUN_0087daa0(&DAT_00b60f6c,Entity::Die);
|
|
FUN_0087daa0("Remove",Entity::Remove);
|
|
FUN_0087daa0("BloodExplode",Entity::BloodExplode);
|
|
FUN_0087dce0(&DAT_00b6d1a4,Entity::Type);
|
|
FUN_0087ddd0("Variant",Entity::Variant,FUN_006a8180);
|
|
FUN_0087ddd0("SubType",Entity::SubType,FUN_00435cd0);
|
|
FUN_0087df50("SpawnerType",Entity::SpawnerType,FUN_004316b0);
|
|
FUN_0087ddd0("SpawnerVariant",Entity::SpawnerVariant,FUN_004b7070);
|
|
FUN_0087e0c0("AddVelocity",Entity::AddVelocity_divided);
|
|
FUN_0087e120("MultiplyFriction",Entity::MultiplyFriction);
|
|
FUN_0087e180("SetColor",GridEntity::Destroy);
|
|
FUN_0087e1e0("GetColor",Entity::GetColor);
|
|
luabridge::Namespace::Class<Entity>::addProperty_SplatColor
|
|
("SplatColor",Entity::SplatColor,Color::assign);
|
|
FUN_0087e410("Visible",Entity::Visible,FUN_0044bf90);
|
|
FUN_0087e580("PositionOffset",Entity::PositionOffset,Entity::SetPositionOffset);
|
|
FUN_0087df50("RenderZOffset",Entity::RenderZOffset,FUN_00440e90);
|
|
luabridge::Namespace::Class<Entity>::addProperty_SortingLayer
|
|
("SortingLayer",Entity::SortingLayer,FUN_00565dd0);
|
|
FUN_0087e410("FlipX",Entity::FlipX,FUN_00440ea0);
|
|
FUN_0087e580("SpriteOffset",Entity::SpriteOffset,FUN_004563c0);
|
|
FUN_0087e580("SpriteScale",Entity::SpriteScale,Entity::SetSpriteScale);
|
|
FUN_0087e870("SetSpriteFrame",Entity::SetSpriteFrame);
|
|
FUN_0087e8d0("SpriteRotation",Entity::SpriteRotation,FUN_0043eea0);
|
|
FUN_0087e870("SetSpriteOverlayFrame",Entity::SetSpriteOverlayFrame);
|
|
luabridge::Namespace::Class<Entity>::addProperty_Size(s_Size,Entity::Size,FUN_00871fa0);
|
|
FUN_0087ebc0("SetSize",Entity::SetSize);
|
|
FUN_0087d7b0("SizeMulti",Entity::SizeMulti,FUN_004563e0);
|
|
FUN_0087e8d0(&DAT_00b711bc,Entity::Mass,set_field_0x37c);
|
|
FUN_0087e8d0("MaxHitPoints",Entity::MaxHitPoints,FUN_00435d40);
|
|
FUN_0087e8d0("HitPoints",Entity::HitPoints,Entity::SetField380);
|
|
FUN_0087ec20("Index",PathFinder::GetGridIndex);
|
|
luabridge::Namespace::Class<Entity>::addProperty_TargetPosition
|
|
("TargetPosition",Entity::TargetPosition,Entity::SetTargetPosition);
|
|
FUN_0087df50("GridCollisionClass",Entity::GridCollisionClass,FUN_0044bfa0);
|
|
FUN_0087df50("EntityCollisionClass",Entity::EntityCollisionClass,FUN_00435d90);
|
|
FUN_0087e8d0("CollisionDamage",Entity::CollisionDamage,&LAB_008c5ce3);
|
|
FUN_0087ee90("CollidesWithGrid",Entity::CollidesWithGrid);
|
|
FUN_0087dce0("SpawnGridIndex",Entity::SpawnGridIndex);
|
|
FUN_0087ee90("IsEnemy",Entity::IsEnemy);
|
|
FUN_0087ef30("IsActiveEnemy",Entity::IsActiveEnemy);
|
|
FUN_00872590("IsVulnerableEnemy",Entity::IsVulnerableEnemy_lua);
|
|
FUN_0087ee90("IsFlying",Entity::IsFlying);
|
|
FUN_0087efe0("AddEntityFlags",Entity::AddEntityFlags);
|
|
FUN_0087efe0("ClearEntityFlags",Entity::ClearEntityFlags);
|
|
FUN_0087f040("GetEntityFlags",Entity::GetEntityFlags);
|
|
FUN_0087f0f0("HasEntityFlags",Entity::HasEntityFlags);
|
|
FUN_0087dc20("HasFullHealth",Entity::HasFullHealth);
|
|
FUN_0087e120("AddHealth",Entity::AddHealth);
|
|
FUN_0087f1a0("AddPoison",Entity::AddPoison);
|
|
FUN_0087f200("AddFreeze",Entity::AddFreeze);
|
|
FUN_0087f260("AddSlowing",Entity::AddSlowing);
|
|
FUN_0087f2c0("AddCharmed",Entity::AddCharmed);
|
|
FUN_0087f200("AddConfusion",Entity::AddConfusion);
|
|
FUN_0087f200("AddMidasFreeze",Entity::AddMidasFreeze);
|
|
FUN_0087f200("AddFear",Entity::AddFear);
|
|
FUN_0087f1a0("AddBurn",Entity::AddBurn);
|
|
FUN_0087f2c0("AddShrink",Entity::AddShrink);
|
|
FUN_0087daa0("RemoveStatusEffects",Entity::RemoveStatusEffects);
|
|
FUN_0087ee90("Exists",Entity::Exists);
|
|
FUN_0087ee90("IsDead",Entity::IsDead);
|
|
FUN_0087ee90("IsVisible",Entity::Visible);
|
|
FUN_0087ee90("IsInvincible",Entity::IsInvincible);
|
|
FUN_0087ee90("CanShutDoors",Entity::CanShutDoors);
|
|
FUN_0087ee90("IsBoss",Entity::IsBoss);
|
|
FUN_0087f320("GetBossID",Entity::GetBossID);
|
|
FUN_0087f3d0("Parent",Entity::Parent,Entity::SetParent);
|
|
FUN_0087f3d0("Child",Entity::Child,Entity::SetChild);
|
|
FUN_0087f3d0("Target",Entity::Target,Entity::SetTarget);
|
|
FUN_0087f3d0("SpawnerEntity",Entity::SpawnerEntity,Entity::SetSpawnerEntity);
|
|
FUN_0087f540("GetLastParent",Entity::GetLastParent);
|
|
FUN_0087f540("GetLastChild",Entity::GetLastChild);
|
|
FUN_0087f5a0("HasCommonParentWithEntity",Entity::HasCommonParentWithEntity);
|
|
FUN_0087dce0("FrameCount",Entity::FrameCount);
|
|
FUN_0087f600("IsFrame",Entity::IsFrame);
|
|
FUN_0087ec20("InitSeed",Entity::InitSeed);
|
|
FUN_0087ec20("DropSeed",Entity::DropSeed);
|
|
FUN_0087f6b0("GetDropRNG",Entity::GetDropRNG);
|
|
FUN_0087f710("GetSprite",Entity::GetSprite);
|
|
FUN_0087e8d0("DepthOffset",Entity::DepthOffset,set_field_358);
|
|
FUN_0087f770("ToPlayer");
|
|
FUN_0087f810("ToEffect");
|
|
FUN_0087f8b0("ToNPC");
|
|
FUN_0087f950("ToPickup");
|
|
FUN_0087f9f0("ToFamiliar");
|
|
FUN_0087fa90("ToBomb");
|
|
FUN_0087fb30("ToKnife");
|
|
FUN_0087fbd0("ToLaser");
|
|
FUN_0087fc70("ToTear");
|
|
FUN_0087fd10("ToProjectile");
|
|
FUN_00872510(&local_28);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x4c;
|
|
FUN_0087fdb0(local_48,"EntityTear");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x4d;
|
|
FUN_0087fdd0("Height",Entity_Tear::Height,Entity_Projectile::SetHeight);
|
|
FUN_0087fdd0("FallingSpeed",Entity_Tear::FallingSpeed,FUN_00444c70);
|
|
FUN_0087fdd0("FallingAcceleration",Entity_Tear::FallingAcceleration,
|
|
Entity_Projectile::set_falling_accel);
|
|
FUN_0087fdd0("Scale",Entity_Tear::Scale,Entity_Tear::SetScale);
|
|
luabridge::Namespace::Class<Entity_Tear>::addProperty_TearFlags
|
|
("TearFlags",Entity_Tear::TearFlags,Entity_Tear::SetTearFlags);
|
|
FUN_008800c0("TearIndex",Entity_Tear::TearIndex);
|
|
FUN_0087fdd0("Rotation",Entity_Tear::Rotation,FUN_004aadb0);
|
|
FUN_008801c0("SetKnockbackMultiplier",Entity_Tear::SetKnockbackMultiplier);
|
|
FUN_00880220("SetWaitFrames",Entity_Tear::SetWaitFrames);
|
|
FUN_008801c0("SetDeadEyeIntensity",Entity_Tear::SetDeadEyeIntensity);
|
|
FUN_00880220("ChangeVariant",Entity_Tear::ChangeVariant);
|
|
FUN_00880280("SetParentOffset",Entity_Tear::SetParentOffset);
|
|
FUN_008802e0("ResetSpriteScale",Entity_Tear::ResetSpriteScale);
|
|
FUN_00880340("HomingFriction",0x41c,1);
|
|
FUN_008804b0("BaseScale",Entity_Tear::BaseScale);
|
|
FUN_008805a0("WaitFrames",0x438,1);
|
|
FUN_00880710("ContinueVelocity",0x43c,1);
|
|
FUN_008804b0("BaseDamage",Entity_Tear::BaseDamage);
|
|
FUN_00880340("KnockbackMultiplier",0x460,1);
|
|
luabridge::Namespace::Class<Entity_Tear>::addData_StickTarget("StickTarget",0x478,1);
|
|
FUN_00880710("StickDiff",0x47c,1);
|
|
FUN_008805a0("StickTimer",0x484,1);
|
|
luabridge::Namespace::Class<Entity_Tear>::addData_CanTriggerStreakEnd
|
|
("CanTriggerStreakEnd",0x7e8,1);
|
|
FUN_00880b80("PosDisplacement",Entity_Tear::PosDisplacement);
|
|
FUN_00880710("ParentOffset",0x7f4,1);
|
|
FUN_00872510(local_50);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x4e;
|
|
FUN_00880c80(entityPlayerClass,"EntityPlayer");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x4f;
|
|
FUN_00880ca0("RenderGlow",Entity_Player::RenderGlow);
|
|
FUN_00880ca0("RenderBody",Entity_Player::RenderBody);
|
|
FUN_00880ca0("RenderHead",Entity_Player::RenderHead);
|
|
FUN_00880ca0("RenderTop",Entity_Player::RenderTop);
|
|
FUN_00880d00("GetName",Entity_Player::GetName);
|
|
FUN_00880db0("AddMaxHearts",Entity_Player::AddMaxHearts);
|
|
FUN_00880e10("HasFullHearts",Entity_Player::HasFullHearts);
|
|
FUN_00880e10("HasFullHeartsAndSoulHearts",Entity_Player::HasFullHeartsAndSoulHearts);
|
|
FUN_00880e70("AddHearts",Entity_Player::AddHearts);
|
|
FUN_00880ed0("AddEternalHearts",Entity_Player::AddEternalHearts);
|
|
FUN_00880db0("AddSoulHearts",Entity_Player::AddSoulHearts);
|
|
FUN_00880ed0("AddBlackHearts",Entity_Player::AddBlackHearts);
|
|
FUN_00880ed0("RemoveBlackHeart",Entity_Player::RemoveBlackHeart);
|
|
FUN_00880f30("IsBlackHeart",Entity_Player::IsBlackHeart);
|
|
FUN_00880ed0("AddJarHearts",Entity_Player::AddJarHearts);
|
|
FUN_00880f90("GetJarHearts",Entity_Player::GetJarHearts);
|
|
FUN_00880ed0("AddJarFlies",Entity_Player::AddJarFlies);
|
|
FUN_00880ff0("GetJarFlies",Entity_Player::GetJarFlies);
|
|
FUN_00880ed0("AddCoins",Entity_Player::AddCoins);
|
|
FUN_00880ed0("AddBombs",Entity_Player::AddBombs);
|
|
FUN_00880ed0("AddKeys",Entity_Player::AddKeys);
|
|
FUN_00881090("AddGoldenKey",Entity_Player::AddGoldenKey);
|
|
FUN_00881090("RemoveGoldenKey",Entity_Player::RemoveGoldenKey);
|
|
FUN_00881090("AddGoldenBomb",Entity_Player::AddGoldenBomb);
|
|
FUN_00881090("RemoveGoldenBomb",Entity_Player::RemoveGoldenBomb);
|
|
FUN_00880db0("AddGoldenHearts",Entity_Player::AddGoldenHearts);
|
|
FUN_008810f0("AddBlueSpider",Entity_Player::AddBlueSpider);
|
|
FUN_00881150("ThrowBlueSpider",Entity_Player::ThrowBlueSpider);
|
|
FUN_00881090("RemoveBlueSpider",Entity_Player::RemoveBlueSpider);
|
|
FUN_008811b0("AddBlueFlies",Entity_Player::AddBlueFlies);
|
|
FUN_00881090("RemoveBlueFly",Entity_Player::RemoveBlueFly);
|
|
FUN_00881090("AddPrettyFly",Entity_Player::AddPrettyFly);
|
|
FUN_00880e10("TryUseKey",Entity_Player::TryUseKey);
|
|
FUN_00881210("AddCostume",Entity_Player::AddCostume);
|
|
FUN_00880ed0("AddNullCostume",Entity_Player::AddNullCostume);
|
|
FUN_00881270("RemoveCostume",Entity_Player::RemoveCostume);
|
|
FUN_00881090("RemoveSkinCostume",Entity_Player::RemoveSkinCostume);
|
|
FUN_00881090("ClearCostumes",Entity_Player::ClearCostumes);
|
|
FUN_008812d0("QueueItem",Entity_Player::QueueItem);
|
|
FUN_00880e10("FlushQueueItem",Entity_Player::FlushQueueItem);
|
|
FUN_00880e10("IsItemQueueEmpty",Entity_Player::IsItemQueueEmpty);
|
|
FUN_00881330("AddCollectible",Entity_Player::AddCollectible);
|
|
FUN_00881390("GetCollectibleCount",Entity_Player::GetCollectibleCount);
|
|
FUN_00880db0("AddTrinket",Entity_Player::AddTrinket);
|
|
FUN_00880f30("TryRemoveTrinket",Entity_Player::TryRemoveTrinket);
|
|
FUN_00881430("DropTrinket",Entity_Player::DropTrinket);
|
|
FUN_00881390("GetMaxTrinkets",Entity_Player::GetMaxTrinkets);
|
|
FUN_00881390("GetMaxPocketItems",Entity_Player::GetMaxPocketItems);
|
|
FUN_00881490("DropPocketItem",Entity_Player::DropPocketItem);
|
|
FUN_008814f0("RemoveCollectible",Entity_Player::RemoveCollectible);
|
|
FUN_00881090("ClearTemporaryEffects",Entity_Player::ClearTemporaryEffects);
|
|
FUN_00880ed0("DonateLuck",Entity_Player::DonateLuck);
|
|
FUN_00880e10("CanPickBlackHearts",Entity_Player::CanPickBlackHearts);
|
|
FUN_00880e10("CanPickGoldenHearts",Entity_Player::CanPickGoldenHearts);
|
|
FUN_00881550("GetActiveItem",Entity_Player::GetBatteryCharge);
|
|
FUN_00881550("GetActiveCharge",Entity_Player::GetActiveItem);
|
|
FUN_00881550("GetBatteryCharge",Entity_Player::GetBatteryCharge);
|
|
FUN_00881550("GetActiveSubCharge",Entity_Player::GetActiveSubCharge);
|
|
FUN_008815f0("SetActiveCharge",Entity_Player::SetActiveCharge);
|
|
FUN_00880db0("DischargeActiveItem",Entity_Player::DischargeActiveItem);
|
|
FUN_00881650("NeedsCharge",Entity_Player::NeedsCharge);
|
|
FUN_008816f0("FullCharge",Entity_Player::FullCharge);
|
|
FUN_00881750("GetPocketItem",Entity_Player::GetPocketItem);
|
|
FUN_00880ed0("AddCard",Entity_Player::AddCard);
|
|
FUN_00880ed0("AddPill",Entity_Player::AddPill);
|
|
FUN_00881550("GetCard",Entity_Player::GetCard);
|
|
FUN_00881550("GetPill",Entity_Player::GetPill);
|
|
FUN_008815f0("SetCard",Entity_Player::SetCard);
|
|
FUN_008815f0("SetPill",Entity_Player::SetPill);
|
|
FUN_00881800("HasCollectible",Entity_Player::HasCollectible);
|
|
FUN_008818a0("GetCollectibleNum",Entity_Player::GetCollectibleNum);
|
|
FUN_00881800("HasTrinket",Entity_Player::HasTrinket);
|
|
FUN_00881650("HasPlayerForm",Entity_Player::HasPlayerForm);
|
|
FUN_00881650("CanAddCollectible",Entity_Player::CanAddCollectible);
|
|
FUN_00880f30("TryHoldTrinket",Entity_Player::TryHoldTrinket);
|
|
FUN_00881090("SetFullHearts",Entity_Player::SetFullHearts);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_TearsOffset
|
|
("TearsOffset",Entity_Player::TearsOffset,FUN_007792f0);
|
|
FUN_00880ed0("AddCacheFlags",Entity_Player::AddCacheFlags);
|
|
FUN_00881090("EvaluateItems",Entity_Player::EvaluateItems);
|
|
FUN_00881090("RespawnFamiliars",Entity_Player::RespawnFamiliars);
|
|
FUN_00881ad0("GetNPCTarget",Entity_Player::GetNPCTarget);
|
|
FUN_00880ff0("GetMovementDirection",Entity_Player::GetMovementDirection);
|
|
FUN_00880ff0("GetFireDirection",Entity_Player::GetFireDirection);
|
|
FUN_00880ff0("GetHeadDirection",Entity_Player::GetHeadDirection);
|
|
FUN_00881b30("GetAimDirection",Entity_Player::GetAimDirection);
|
|
FUN_00881b30("GetMovementVector",Entity_Player::GetMovementVector);
|
|
FUN_00881b30("GetRecentMovementVector",Entity_Player::GetRecentMovementVector);
|
|
FUN_00881bd0("GetMovementJoystick",Entity_Player::GetMovementJoystick);
|
|
FUN_00881bd0("GetShootingJoystick",Entity_Player::GetShootingJoystick);
|
|
FUN_00881c30("AreOpposingShootDirectionsPressed",Entity_Player::AreOpposingShootDirectionsPressed)
|
|
;
|
|
FUN_00881b30("GetLastDirection",Entity_Player::GetLastDirection);
|
|
FUN_00881b30("GetVelocityBeforeUpdate",Entity_Player::GetVelocityBeforeUpdate);
|
|
FUN_00881cd0("GetSmoothBodyRotation",Entity_Player::GetSmoothBodyRotation);
|
|
FUN_00881cd0("GetTearPoisonDamage",Entity_Player::GetTearPoisonDamage);
|
|
FUN_00881d70("GetBombFlags",Entity_Player::GetBombFlags);
|
|
FUN_00881e20("GetBombVariant",Entity_Player::GetBombVariant);
|
|
FUN_00881ed0("GetTearHitParams",Entity_Player::GetTearHitParams);
|
|
FUN_00880ff0("GetHearts",Entity_Player::GetHearts);
|
|
FUN_00880ff0("GetMaxHearts",Entity_Player::GetMaxHearts);
|
|
FUN_00880ff0("GetSoulHearts",Entity_Player::GetSoulHearts);
|
|
FUN_00880ff0("GetBlackHearts",Entity_Player::GetBlackHearts);
|
|
FUN_00880ff0("GetEternalHearts",Entity_Player::GetEternalHearts);
|
|
FUN_00880ff0("GetExtraLives",Entity_Player::GetExtraLives);
|
|
FUN_00880ff0("GetNumBombs",Entity_Player::GetNumBombs);
|
|
FUN_00880ff0("GetNumKeys",Entity_Player::GetNumKeys);
|
|
FUN_00881c30("HasGoldenKey",Entity_Player::HasGoldenKey);
|
|
FUN_00881c30("HasGoldenBomb",Entity_Player::HasGoldenBomb);
|
|
FUN_00880ff0("GetGoldenHearts",Entity_Player::GetGoldenHearts);
|
|
FUN_00880ff0("GetNumCoins",Entity_Player::GetNumCoins);
|
|
FUN_00880ff0("GetPlayerType",Entity_Player::GetPlayerType);
|
|
FUN_00881550("GetTrinket",Entity_Player::GetTrinket);
|
|
FUN_00880ff0("GetNumBlueFlies",Entity_Player::GetNumBlueFlies);
|
|
FUN_00880ff0("GetNumBlueSpiders",Entity_Player::GetNumBlueSpiders);
|
|
FUN_00880ff0("GetItemState",Entity_Player::GetItemState);
|
|
FUN_00881f30("UseActiveItem",Entity_Player::UseActiveItem);
|
|
FUN_00880ff0("GetTearRangeModifier",Entity_Player::GetTearRangeModifier);
|
|
FUN_00881fb0("GetTrinketMultiplier",Entity_Player::GetTrinketMultiplier);
|
|
FUN_00882060("GetEffects",Entity_Player::GetEffects);
|
|
FUN_00881650("HasWeaponType",Entity_Player::HasWeaponType);
|
|
FUN_00881ad0("GetActiveWeaponEntity",Entity_Player::GetActiveWeaponEntity);
|
|
FUN_008820c0("GetTractorBeam",Entity_Player::GetTractorBeam);
|
|
FUN_00881c30("CanPickupItem",Entity_Player::CanPickupItem);
|
|
FUN_00881c30("IsHoldingItem",Entity_Player::IsHoldingItem);
|
|
FUN_00881c30("IsHeldItemVisible",Entity_Player::IsHeldItemVisible);
|
|
FUN_00881090("Revive",Entity_Player::Revive);
|
|
FUN_00882170("TryRemoveCollectibleCostume",Entity_Player::TryRemoveCollectibleCostume);
|
|
FUN_008821d0("TryRemoveTrinketCostume",Entity_Player::TryRemoveTrinketCostume);
|
|
FUN_00882230("TryRemoveNullCostume",Entity_Player::TryRemoveNullCostume);
|
|
FUN_00882290("AnimateCollectible",Entity_Player::AnimateCollectible);
|
|
FUN_008822f0("AnimateTrinket",Entity_Player::AnimateTrinket);
|
|
FUN_00882350("AnimateCard",Entity_Player::AnimateCard);
|
|
FUN_008823b0("AnimatePill",Entity_Player::AnimatePill);
|
|
FUN_00882410("AnimatePickup",Entity_Player::AnimatePickup);
|
|
FUN_00881090("AnimateTrapdoor",Entity_Player::AnimateTrapdoor);
|
|
FUN_00881090("AnimateLightTravel",Entity_Player::AnimateLightTravel);
|
|
FUN_00881090("AnimateAppear",Entity_Player::AnimateAppear);
|
|
FUN_00882470("AnimateTeleport",Entity_Player::AnimateTeleport);
|
|
FUN_00881090("AnimateHappy",Entity_Player::AnimateHappy);
|
|
FUN_00881090("AnimateSad",Entity_Player::AnimateSad);
|
|
FUN_00882470("AnimatePitfallIn",Entity_Player::AnimatePitfallIn);
|
|
FUN_00881090("AnimatePitfallOut",Entity_Player::AnimatePitfallOut);
|
|
FUN_00881c30("IsExtraAnimationFinished",Entity_Player::IsExtraAnimationFinished);
|
|
FUN_00881090("StopExtraAnimation",Entity_Player::StopExtraAnimation);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_ControlsEnabled
|
|
("ControlsEnabled",Entity_Player::ControlsEnabled,FUN_005b17a0);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_ControlsCooldown
|
|
("ControlsCooldown",Entity_Player::ControlsCooldown,FUN_005b17b0);
|
|
FUN_00880ed0("AddControlsCooldown",Entity_Player::AddControlsCooldown);
|
|
FUN_008827d0("PlayExtraAnimation",Entity_Player::PlayExtraAnimation);
|
|
FUN_008827d0("QueueExtraAnimation",Entity_Player::QueueExtraAnimation);
|
|
FUN_00880ff0("GetDamageCooldown",Entity_Player::GetDamageCooldown);
|
|
FUN_00881090("ResetDamageCooldown",Entity_Player::ResetDamageCooldown);
|
|
FUN_00880ed0("SetMinDamageCooldown",Entity_Player::SetMinDamageCooldown);
|
|
FUN_00880e10("AreControlsEnabled",Entity_Player::AreControlsEnabled);
|
|
FUN_008815f0("UseCard",Entity_Player::UseCard);
|
|
FUN_00882830("UsePill",Entity_Player::UsePill);
|
|
FUN_00882890("HasInvincibility",Entity_Player::HasInvincibility);
|
|
FUN_00880ed0("SetShootingCooldown",Entity_Player::SetShootingCooldown);
|
|
FUN_008828f0("FireDelayedBrimstone",Entity_Player::FireDelayedBrimstone);
|
|
FUN_00882950("GetLastDamageSource",Entity_Player::GetLastDamageSource);
|
|
FUN_00882a00("GetLastDamageFlags",Entity_Player::GetLastDamageFlags);
|
|
FUN_00881390("GetTotalDamageTaken",Entity_Player::GetTotalDamageTaken);
|
|
FUN_00882ab0("FireTear",Entity_Player::FireTear);
|
|
FUN_00882b10("FireBomb",Entity_Player::FireBomb);
|
|
FUN_00882b70("FireBrimstone",Entity_Player::FireBrimstone);
|
|
FUN_00882bd0("FireTechLaser",Entity_Player::FireTechLaser);
|
|
FUN_00882c30("FireTechXLaser",Entity_Player::FireTechXLaser);
|
|
FUN_00882c90("FireKnife",Entity_Player::FireKnife);
|
|
FUN_00880ff0("GetBabySkin",Entity_Player::GetBabySkin);
|
|
FUN_00881c30("CanShoot",Entity_Player::CanShoot);
|
|
FUN_00881c30("IsP2Appearing",Entity_Player::IsP2Appearing);
|
|
FUN_00880e10("IsFullSpriteRendering",Entity_Player::IsFullSpriteRendering);
|
|
FUN_00882cf0("GetCollectibleRNG",Entity_Player::GetCollectibleRNG);
|
|
FUN_00882cf0("GetTrinketRNG",Entity_Player::GetTrinketRNG);
|
|
FUN_00882cf0("GetPillRNG",Entity_Player::GetPillRNG);
|
|
FUN_00882cf0("GetCardRNG",Entity_Player::GetCardRNG);
|
|
FUN_00881090("AddDeadEyeCharge",Entity_Player::AddDeadEyeCharge);
|
|
FUN_00881090("ClearDeadEyeCharge",Entity_Player::ClearDeadEyeCharge);
|
|
FUN_00880ff0("GetZodiacEffect",Entity_Player::GetZodiacEffect);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_FriendBallEnemy
|
|
("FriendBallEnemy",Entity_Player::FriendBallEnemy,FUN_005cd7a0);
|
|
FUN_00882ed0("IsPosInSpotLight",Entity_Player::IsPosInSpotLight);
|
|
FUN_00882f30("GetMultiShotParams",Entity_Player::GetMultiShotParams);
|
|
FUN_00882f90("GetMultiShotPositionVelocity",Entity_Player::GetMultiShotPositionVelocity);
|
|
FUN_00882ff0("GetFlyingOffset",Entity_Player::GetFlyingOffset);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_SpriteScale
|
|
("SpriteScale",Entity_Player::SpriteScale,FUN_0085e2a0);
|
|
FUN_00880e10("WillPlayerRevive",Entity_Player::WillPlayerRevive);
|
|
FUN_00880ff0("GetLastActionTriggers",Entity_Player::GetLastActionTriggers);
|
|
FUN_00881cd0("GetGreedDonationBreakChance",Entity_Player::GetGreedDonationBreakChance);
|
|
FUN_00883220("ControllerIndex",Entity_Player::ControllerIndex);
|
|
FUN_00881bd0("GetMovementInput",Entity_Player::GetMovementJoystick);
|
|
FUN_00881bd0("GetShootingInput",Entity_Player::GetShootingJoystick);
|
|
FUN_00880e10("HasTimedItem",Entity_Player::HasTimedItem);
|
|
FUN_00881090("InitBabySkin",Entity_Player::InitBabySkin);
|
|
FUN_00880e10("CanTurnHead",Entity_Player::CanTurnHead);
|
|
FUN_00883320("CheckFamiliar",Entity_Player::CheckFamiliar);
|
|
FUN_00881090("UpdateCanShoot",Entity_Player::UpdateCanShoot);
|
|
FUN_00883380("GetLaserOffset",Entity_Player::GetLaserOffset);
|
|
FUN_00883430("GetTearMovementInheritance",Entity_Player::GetTearMovementInheritance);
|
|
FUN_008834e0("GetCostumeNullPos",Entity_Player::GetCostumeNullPos);
|
|
FUN_00883590("ReplaceCostumeSprite",Entity_Player::ReplaceCostumeSprite);
|
|
FUN_00880ed0("AddPlayerFormCostume",Entity_Player::AddPlayerFormCostume);
|
|
FUN_00881090("ResetItemState",Entity_Player::ResetItemState);
|
|
FUN_008835f0("SpawnMawOfVoid",Entity_Player::SpawnMawOfVoid);
|
|
FUN_00881090("AddDollarBillEffect",Entity_Player::AddDollarBillEffect);
|
|
FUN_00883650("ShootRedCandle",Entity_Player::ShootRedCandle);
|
|
FUN_00880ca0("DoZitEffect",Entity_Player::DoZitEffect);
|
|
FUN_00881090("SwapActiveItems",Entity_Player::SwapActiveItems);
|
|
FUN_00880ed0("AddBoneHearts",Entity_Player::AddBoneHearts);
|
|
FUN_00880ff0("GetBoneHearts",Entity_Player::GetBoneHearts);
|
|
FUN_00881650("IsBoneHeart",Entity_Player::IsBoneHeart);
|
|
FUN_00880ff0("GetEffectiveMaxHearts",Entity_Player::GetEffectiveMaxHearts);
|
|
FUN_008836b0("GetHeartLimit",Entity_Player::GetHeartLimit);
|
|
FUN_00880e10("CanPickRedHearts",Entity_Player::CanPickRedHearts);
|
|
FUN_00880e10("CanPickSoulHearts",Entity_Player::CanPickSoulHearts);
|
|
FUN_00880e10("CanPickBoneHearts",Entity_Player::CanPickBoneHearts);
|
|
FUN_00881c30("IsSubPlayer",Entity_Player::IsSubPlayer);
|
|
FUN_00883760("GetSubPlayer",Entity_Player::GetSubPlayer);
|
|
luabridge::Namespace::Class<Entity_Player>::addProperty_FireDelay
|
|
("FireDelay",Entity_Player::FireDelay,FUN_00782ab0);
|
|
FUN_00883940("MaxFireDelay",0x1460,1);
|
|
FUN_00883940("ShotSpeed",0x1464,1);
|
|
FUN_00883940("Damage",0x1470,1);
|
|
FUN_00883940("TearHeight",0x1474,1);
|
|
FUN_00883940("TearFallingSpeed",0x1478,1);
|
|
FUN_00883940("TearFallingAcceleration",0x147c,1);
|
|
FUN_00883940("TearRange",0x1480,1);
|
|
FUN_00883940("MoveSpeed",0x1568,1);
|
|
luabridge::Namespace::Class<Entity_Player>::addData_TearFlags("TearFlags",0x1488,1);
|
|
FUN_00883c30("TearColor",0x1498,1);
|
|
FUN_00883c30("LaserColor",0x14c4,1);
|
|
luabridge::Namespace::Class<Entity_Player>::addData_CanFly("CanFly",0x1570,1);
|
|
FUN_00883940(&DAT_00b723ac,0x156c,1);
|
|
luabridge::Namespace::Class<Entity_Player>::addData_BabySkin("BabySkin",0x1aec,1);
|
|
luabridge::Namespace::Class<Entity_Player>::addData_QueuedItem("QueuedItem",0x17c4,1);
|
|
FUN_00884240("ItemHoldCooldown",0x1884,1);
|
|
FUN_00884240("HeadFrameDelay",0x1338,1);
|
|
FUN_008843b0("ChangePlayerType",Entity_Player::ChangePlayerType);
|
|
FUN_00880ed0("AddBrokenHearts",Entity_Player::AddBrokenHearts);
|
|
FUN_00880ff0("GetBrokenHearts",Entity_Player::GetBrokenHearts);
|
|
FUN_00880db0("AddRottenHearts",Entity_Player::AddRottenHearts);
|
|
FUN_00880ff0("GetRottenHearts",Entity_Player::GetRottenHearts);
|
|
FUN_00880ed0("AddSoulCharge",Entity_Player::AddSoulCharge);
|
|
FUN_00880ff0("GetSoulCharge",Entity_Player::GetSoulCharge);
|
|
FUN_00880ff0("GetEffectiveSoulCharge",Entity_Player::GetEffectiveSoulCharge);
|
|
FUN_00880ed0("SetSoulCharge",Entity_Player::SetSoulCharge);
|
|
FUN_00880ed0("AddBloodCharge",Entity_Player::AddBloodCharge);
|
|
FUN_00880ff0("GetBloodCharge",Entity_Player::GetBloodCharge);
|
|
FUN_00880ff0("GetEffectiveBloodCharge",Entity_Player::GetEffectiveBloodCharge);
|
|
FUN_00880ed0("SetBloodCharge",Entity_Player::SetBloodCharge);
|
|
FUN_00880e10("CanPickRottenHearts",Entity_Player::CanPickRottenHearts);
|
|
FUN_00883760("GetMainTwin",Entity_Player::GetMainTwin);
|
|
FUN_00883760("GetOtherTwin",Entity_Player::GetOtherTwin);
|
|
FUN_00884410("TryHoldEntity",Entity_Player::TryHoldEntity);
|
|
FUN_008810f0("ThrowHeldEntity",Entity_Player::ThrowHeldEntity);
|
|
FUN_00884470("AddMinisaac",Entity_Player::AddMinisaac);
|
|
FUN_008844d0("AddFriendlyDip",Entity_Player::AddFriendlyDip);
|
|
FUN_00884530("ThrowFriendlyDip",Entity_Player::ThrowFriendlyDip);
|
|
FUN_00884590("AddWisp",Entity_Player::AddWisp);
|
|
FUN_008845f0("AddItemWisp",Entity_Player::AddItemWisp);
|
|
FUN_00884650("AddSwarmFlyOrbital",Entity_Player::AddSwarmFlyOrbital);
|
|
FUN_008846b0("TriggerBookOfVirtues",Entity_Player::TriggerBookOfVirtues);
|
|
FUN_00880ff0("GetNumGigaBombs",Entity_Player::GetNumGigaBombs);
|
|
FUN_00880ed0("AddGigaBombs",Entity_Player::AddGigaBombs);
|
|
FUN_00884710("SetPocketActiveItem",Entity_Player::SetPocketActiveItem);
|
|
FUN_00884770("GetModelingClayEffect",Entity_Player::GetModelingClayEffect);
|
|
FUN_00881090("AddCurseMistEffect",Entity_Player::AddCurseMistEffect);
|
|
FUN_00881090("RemoveCurseMistEffect",Entity_Player::RemoveCurseMistEffect);
|
|
FUN_00881c30("HasCurseMistEffect",Entity_Player::HasCurseMistEffect);
|
|
FUN_00881c30("IsCoopGhost",Entity_Player::IsCoopGhost);
|
|
FUN_00884820("UsePoopSpell",Entity_Player::UsePoopSpell);
|
|
FUN_00880ff0("GetMaxPoopMana",Entity_Player::GetMaxPoopMana);
|
|
FUN_00880ed0("AddPoopMana",Entity_Player::AddPoopMana);
|
|
FUN_00880ff0("GetPoopMana",Entity_Player::GetPoopMana);
|
|
FUN_00884880("GetPoopSpell",Entity_Player::GetPoopSpell);
|
|
FUN_00880f90("GetBodyColor",Entity_Player::GetBodyColor);
|
|
FUN_00880f90("GetHeadColor",Entity_Player::GetHeadColor);
|
|
FUN_00884240("SamsonBerserkCharge",0x209c,1);
|
|
FUN_00883940("IBSCharge",0x20a0,1);
|
|
FUN_00872510(local_30);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x50;
|
|
FUN_00884930(local_c0,"EntityPickup");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x51;
|
|
FUN_00884950("Morph",Entity_Pickup::Morph);
|
|
FUN_008849b0("Charge",Entity_Pickup::Charge,FUN_005b1920);
|
|
FUN_00884b20("IsShopItem",Entity_Pickup::IsShopItem);
|
|
FUN_008849b0("Price",Entity_Pickup::Price,Entity_Pickup::update_price_sprite);
|
|
FUN_00884bc0("GetCoinValue",Entity_Pickup::GetCoinValue);
|
|
FUN_008849b0("Timeout",Entity_Pickup::Timeout,FUN_0060d1f0);
|
|
FUN_00884c70("Touched",Entity_Pickup::Touched,FUN_005b1950);
|
|
FUN_008849b0("ShopItemId",Entity_Pickup::ShopItemId,FUN_007e93d0);
|
|
FUN_008849b0("OptionsPickupIndex",Entity_Pickup::OptionsPickupIndex,FUN_005b1970);
|
|
FUN_008849b0(&DAT_00b72764,Entity_Pickup::Wait,FUN_00436210);
|
|
FUN_00884de0("PlayDropSound",Entity_Pickup::PlayDropSound);
|
|
FUN_00884de0("PlayPickupSound",Entity_Pickup::PlayPickupSound);
|
|
FUN_00884b20("CanReroll",Entity_Pickup::CanReroll);
|
|
FUN_00884de0("AppearFast",Entity_Pickup::AppearFast);
|
|
FUN_00884e40("TryOpenChest",Entity_Pickup::TryOpenChest);
|
|
FUN_00884c70("AutoUpdatePrice",Entity_Pickup::AutoUpdatePrice,FUN_0071df70);
|
|
luabridge::Namespace::Class<Entity_Pickup>::addData_State("State",0x584,1);
|
|
FUN_00872510(local_c8);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x52;
|
|
FUN_00885020(local_70,"EntityEffect");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x53;
|
|
FUN_00885040("SetTimeout",Entity_Effect::SetTimeout);
|
|
FUN_008850a0("Rotation",Entity_Effect::Rotation,Entity_Effect::set_rotation);
|
|
FUN_00885210("FollowParent",Entity_Effect::FollowParent);
|
|
FUN_00885040("SetDamageSource",Entity_Effect::SetDamageSource);
|
|
FUN_008850a0("Scale",Entity_Effect::Scale,FUN_00435ed0);
|
|
FUN_00885270("SetRadii",Entity_Effect::SetRadii);
|
|
FUN_008850a0("FallingSpeed",Entity_Tear::FallingSpeed,FUN_00444c70);
|
|
FUN_008850a0("FallingAcceleration",Entity_Tear::FallingAcceleration,
|
|
Entity_Projectile::set_falling_accel);
|
|
FUN_008852d0("IsPlayerCreep",Entity_Effect::IsPlayerCreep);
|
|
FUN_00885330("m_Height",0x410,1);
|
|
FUN_008854a0("State",0x450,1);
|
|
FUN_00885330("MinRadius",0x454,1);
|
|
FUN_00885330("MaxRadius",0x458,1);
|
|
FUN_008854a0("Timeout",0x45c,1);
|
|
FUN_008854a0("LifeSpan",0x460,1);
|
|
luabridge::Namespace::Class<Entity_Effect>::addData_IsFollowing("IsFollowing",0x464,1);
|
|
luabridge::Namespace::Class<Entity_Effect>::addData_ParentOffset("ParentOffset",0x468,1);
|
|
FUN_008854a0("DamageSource",0x470,1);
|
|
FUN_00872510(local_78);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x54;
|
|
FUN_00885910(local_80,"EntityFamiliar");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x55;
|
|
FUN_00885930("AddCoins",Entity_Familiar::AddCoins);
|
|
FUN_00885930("AddHearts",Entity_Familiar::AddHearts);
|
|
FUN_00885930("AddKeys",Entity_Familiar::AddKeys);
|
|
luabridge::Namespace::Class<Entity_Familiar>::addProperty_Player
|
|
("Player",Entity_Familiar::Player,Entity_Familiar::set_player);
|
|
FUN_00885b10("Coins",Entity_Familiar::Coins,FUN_0060d0d0);
|
|
FUN_00885b10("Hearts",Entity_Familiar::Hearts,FUN_0060d0f0);
|
|
FUN_00885b10(&DAT_00b728bc,Entity_Familiar::Keys,FUN_005b18d0);
|
|
FUN_00885c80("PickEnemyTarget",Entity_Familiar::PickEnemyTarget);
|
|
FUN_00885ce0("FollowParent",Entity_Familiar::FollowParent);
|
|
FUN_00885d40("FollowPosition",Entity_Familiar::FollowPosition);
|
|
FUN_00885da0("GetOrbitPosition",Entity_Familiar::GetOrbitPosition);
|
|
FUN_00885ce0("Shoot",Entity_Familiar::Shoot);
|
|
FUN_00885e00("FireProjectile",Entity_Familiar::FireProjectile);
|
|
FUN_00885930("PlayChargeAnim",Entity_Familiar::PlayChargeAnim);
|
|
FUN_00885930("PlayShootAnim",Entity_Familiar::PlayShootAnim);
|
|
FUN_00885930("PlayFloatAnim",Entity_Familiar::PlayFloatAnim);
|
|
FUN_00885930("MoveDelayed",Entity_Familiar::MoveDelayed);
|
|
FUN_00885e60("MoveDiagonally",Entity_Familiar::MoveDiagonally);
|
|
FUN_00885ec0("RecalculateOrbitOffset",Entity_Familiar::RecalculateOrbitOffset);
|
|
FUN_00885ce0("AddToFollowers",Entity_Familiar::AddToFollowers);
|
|
FUN_00885ce0("AddToDelayed",Entity_Familiar::AddToDelayed);
|
|
FUN_00885930("AddToOrbit",Entity_Familiar::AddToOrbit);
|
|
FUN_00885ce0("RemoveFromFollowers",Entity_Familiar::RemoveFromFollowers);
|
|
FUN_00885ce0("RemoveFromDelayed",Entity_Familiar::RemoveFromDelayed);
|
|
FUN_00885ce0("RemoveFromOrbit",Entity_Familiar::RemoveFromOrbit);
|
|
FUN_00885f20("GetOrbitDistance",Entity_Familiar::GetOrbitDistance);
|
|
FUN_00885f80("FireCooldown",0xd4c,1);
|
|
FUN_00885f80("HeadFrameDelay",0xd50,1);
|
|
FUN_00885f80("MoveDirection",0xd54,1);
|
|
FUN_00885f80("ShootDirection",0xd58,1);
|
|
FUN_00885f80("LastDirection",0xd5c,1);
|
|
FUN_008860f0("OrbitAngleOffset",0xd60,1);
|
|
luabridge::Namespace::Class<Entity_Familiar>::addData_OrbitDistance("OrbitDistance",0xd64,1);
|
|
FUN_008860f0("OrbitSpeed",0xd6c,1);
|
|
FUN_00885f80("OrbitLayer",0xd70,1);
|
|
FUN_00885f80("State",0xd88,1);
|
|
FUN_00885f80("RoomClearCount",0xd8c,1);
|
|
FUN_008863e0("IsDelayed",0xd75,1);
|
|
FUN_008863e0("IsFollower",0xd74,1);
|
|
FUN_00872510(local_88);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x56;
|
|
FUN_00886550(local_58,"EntityProjectile");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x57;
|
|
FUN_00886570("Height",Entity_Tear::Height,FUN_00450880);
|
|
FUN_008866e0("AddHeight",Entity_Projectile::AddHeight);
|
|
FUN_00886570("FallingSpeed",Entity_Tear::FallingSpeed,FUN_00444c70);
|
|
FUN_008866e0("AddFallingSpeed",Entity_Projectile::AddFallingSpeed);
|
|
FUN_00886570("FallingAccel",Entity_Tear::FallingAcceleration,Entity_Projectile::set_falling_accel)
|
|
;
|
|
FUN_008866e0("AddFallingAccel",Entity_Projectile::AddFallingAccel);
|
|
FUN_00886570("HomingStrength",Entity_Tear::BaseScale,FUN_00565de0);
|
|
FUN_00886570("CurvingStrength",Entity_Projectile::CurvingStrength,FUN_004aad50);
|
|
FUN_00886570("Acceleration",Entity_Projectile::Acceleration,FUN_004aad70);
|
|
FUN_00886740("WiggleFrameOffset",Entity_Projectile::WiggleFrameOffset,FUN_00444cb0);
|
|
FUN_008868b0("AddChangeFlags",Entity_Projectile::AddChangeFlags);
|
|
FUN_00886910("ChangeFlags",Entity_Projectile::ChangeFlags,FUN_004aad90);
|
|
FUN_00886570("ChangeVelocity",Entity_Tear::Rotation,FUN_004aadb0);
|
|
FUN_00886740("ChangeTimeout",Entity_Projectile::ChangeTimeout,FUN_004aadd0);
|
|
FUN_00886570("Scale",Entity_Tear::Scale,FUN_004508a0);
|
|
FUN_008866e0("AddScale",Entity_Projectile::AddScale);
|
|
FUN_008868b0("AddProjectileFlags",Entity_Projectile::AddProjectileFlags);
|
|
FUN_00886910("ProjectileFlags",Entity_Projectile::ProjectileFlags,
|
|
Entity_Projectile::set_projectile_flags);
|
|
FUN_00886570("DepthOffset",Entity::DepthOffset,set_field_358);
|
|
FUN_00886570("Damage",Entity_Projectile::Damage,FUN_0085e340);
|
|
FUN_00872510(local_98);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x58;
|
|
FUN_00886a80(local_a0,"EntityNPC");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x59;
|
|
FUN_00886aa0("Morph",Entity_NPC::Morph);
|
|
FUN_00886b00("KillUnique",Entity_NPC::KillUnique);
|
|
luabridge::Namespace::Class<Entity_NPC>::addProperty_CanShutDoors
|
|
("CanShutDoors",Entity::CanShutDoors,Entity::SetVisibleFlag);
|
|
FUN_00886ce0("IsBoss",Entity::IsBoss);
|
|
FUN_00886d80("ThrowSpider",Entity_NPC::ThrowSpider);
|
|
FUN_00886de0("GetPlayerTarget",Entity_NPC::GetPlayerTarget);
|
|
FUN_00886e40("CalcTargetPosition",Entity_NPC::CalcTargetPosition);
|
|
FUN_00886ea0("GetBossColorIdx",Entity_NPC::GetBossColorIdx);
|
|
FUN_00886ea0("GetChampionColorIdx",Entity_NPC::GetChampionColorIdx);
|
|
FUN_00886b00("ResetPathFinderTarget",Entity_NPC::ResetPathFinderTarget);
|
|
FUN_00886f40("CanBeDamagedFromVelocity",Entity_NPC::CanBeDamagedFromVelocity);
|
|
FUN_00886ce0("CanReroll",Entity_NPC::CanReroll);
|
|
luabridge::Namespace::Class<Entity_NPC>::addProperty_Scale
|
|
("Scale",Entity_NPC::Scale,Entity_NPC::SetScale);
|
|
FUN_00886ce0("IsChampion",Entity_NPC::IsChampion);
|
|
FUN_00887170("MakeChampion",Entity_NPC::MakeChampion);
|
|
FUN_008871d0("PlaySound",Entity_NPC::PlaySound);
|
|
FUN_00887230("MakeSplat",Entity_NPC::MakeSplat);
|
|
FUN_00886ea0("GetAliveEnemyCount",Entity_NPC::GetAliveEnemyCount);
|
|
FUN_00887290("FireProjectiles",Entity_NPC::FireProjectiles);
|
|
FUN_008872f0("FireBossProjectiles",Entity_NPC::FireBossProjectiles);
|
|
FUN_00887350("AnimWalkFrame",Entity_NPC::AnimWalkFrame);
|
|
FUN_008873b0("QueryNPCsType",Entity_NPC::QueryNPCsType);
|
|
FUN_00887460("QueryNPCsSpawnerType",Entity_NPC::QueryNPCsSpawnerType);
|
|
FUN_00887510("QueryNPCsGroup",Entity_NPC::QueryNPCsGroup);
|
|
FUN_00887570("ParentNPC",Entity_NPC::ParentNPC);
|
|
FUN_00887570("ChildNPC",Entity_NPC::ChildNPC);
|
|
luabridge::Namespace::Class<Entity_NPC>::addProperty_EntityRef
|
|
("EntityRef",Entity_NPC::EntityRef,Entity_NPC::SetRef_bec);
|
|
FUN_008877e0("StateFrame",0x410,1);
|
|
luabridge::Namespace::Class<Entity_NPC>::addData_Pathfinder("Pathfinder",0x414,1);
|
|
luabridge::Namespace::Class<Entity_NPC>::addData_State("State",0xb64,1);
|
|
FUN_008877e0("ProjectileCooldown",0xba0,1);
|
|
FUN_008877e0("ProjectileDelay",0xba4,1);
|
|
FUN_00887c50(&DAT_00b72c8c,0xbb0,1);
|
|
FUN_00887c50(&DAT_00b72c74,3000,1);
|
|
FUN_008877e0(&DAT_00b72c78,0xbc0,1);
|
|
FUN_008877e0(&DAT_00b72c64,0xbc4,1);
|
|
FUN_008877e0("GroupIdx",0xc7c,1);
|
|
FUN_00872510(local_a8);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x5a;
|
|
FUN_00887dc0(local_68,"EntityBomb");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x5b;
|
|
luabridge::Namespace::Class<Entity_Bomb>::addProperty_Flags
|
|
("Flags",Entity_Bomb::Flags,FUN_006a6910);
|
|
luabridge::Namespace::Class<Entity_Bomb>::addProperty_IsFetus
|
|
("IsFetus",Entity_Bomb::IsFetus,FUN_0060cdb0);
|
|
FUN_008880f0("ExplosionDamage",Entity_Tear::FallingAcceleration,
|
|
Entity_Projectile::set_falling_accel);
|
|
FUN_00888260("SetExplosionCountdown",Entity_Bomb::SetExplosionCountdown);
|
|
FUN_008880f0("RadiusMultiplier",Entity_Bomb::RadiusMultiplier,FUN_00435e70);
|
|
FUN_00872510(local_40);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x5c;
|
|
FUN_008882c0(local_38,"EntityLaser");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x5d;
|
|
FUN_008882e0("ShootAngle",Entity_Laser::ShootAngle);
|
|
luabridge::Namespace::Class<Entity_Laser>::addProperty_TearFlags
|
|
("TearFlags",Entity_Tear::TearFlags,FUN_00456830);
|
|
FUN_008884c0("Angle",Entity_Projectile::Damage,Entity_NPC::SetAimAngle);
|
|
FUN_00888630("SetTimeout",Entity_Laser::SetTimeout);
|
|
FUN_00888690("SetActiveRotation",Entity_Laser::SetActiveRotation);
|
|
FUN_008886f0("GetRenderZ",Entity_Laser::GetRenderZ);
|
|
FUN_008887a0("GetEndPoint",Entity_Laser::GetEndPoint);
|
|
FUN_00888850("IsSampleLaser",Entity_Laser::IsSampleLaser);
|
|
FUN_008888f0("GetSamples",Entity_Laser::GetSamples);
|
|
FUN_008888f0("GetNonOptimizedSamples",Entity_Laser::GetNonOptimizedSamples);
|
|
FUN_00888950("SetOneHit",Entity_Laser::SetOneHit);
|
|
FUN_00888630("SetHomingType",Entity_Laser::SetHomingType);
|
|
FUN_008889b0("SetMaxDistance",Entity_Laser::SetMaxDistance);
|
|
FUN_008884c0("Radius",Entity_Laser::Radius,FUN_0060ce80);
|
|
FUN_00888850("IsCircleLaser",Entity_Laser::IsCircleLaser);
|
|
FUN_008889b0("SetBlackHpDropChance",Entity_Laser::SetBlackHpDropChance);
|
|
FUN_00888950("SetMultidimensionalTouched",Entity_Laser::SetMultidimensionalTouched);
|
|
FUN_00888a10("CalculateEndPoint",Entity_Laser::CalculateEndPoint);
|
|
FUN_00888a70("ParentOffset",0x410,1);
|
|
FUN_00888be0("StartAngleDegrees",0x418,1);
|
|
FUN_00888be0("AngleDegrees",0x41c,1);
|
|
FUN_00888be0("LastAngleDegrees",0x420,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_TearFlags("TearFlags",0x428,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_Timeout("Timeout",0x458,1);
|
|
FUN_00889050("FirstUpdate",0x45c,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_SampleLaser("SampleLaser",0x45d,1);
|
|
FUN_00889050("Shrink",0x45e,1);
|
|
FUN_00888be0("LaserLength",0x460,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_HomingLaser("HomingLaser",0x464,1);
|
|
FUN_00888be0("CurveStrength",0x4b8,1);
|
|
FUN_00888be0("Radius",0x4bc,1);
|
|
FUN_00889050("IsActiveRotating",0x4c0,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_RotationDelay("RotationDelay",0x4c4,1);
|
|
FUN_00888be0("RotationDegrees",0x4c8,1);
|
|
FUN_00888be0("RotationSpd",0x4cc,1);
|
|
FUN_00888be0("MaxDistance",0x4d0,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_HomingType("HomingType",0x4d4,1);
|
|
FUN_00888a70("EndPoint",0x4d8,1);
|
|
FUN_00889050("DisableFollowParent",0x4e4,1);
|
|
luabridge::Namespace::Class<Entity_Laser>::addData_BounceLaser("BounceLaser",0x4e8,1);
|
|
FUN_00888be0("BlackHpDropChance",0x4f4,1);
|
|
FUN_00889050("OneHit",0x515,1);
|
|
FUN_00889050("GridHit",0x516,1);
|
|
FUN_00872510(local_60);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x5e;
|
|
FUN_00889940(local_b0,"EntityKnife");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x5f);
|
|
luabridge::Namespace::Class<Entity_Knife>::addProperty_TearFlags
|
|
("TearFlags",Entity_Knife::TearFlags,FUN_005cd5c0);
|
|
FUN_00889ae0("Rotation",Entity_Knife::Rotation,FUN_005b15d0);
|
|
FUN_00889c50("GetRenderZ",Entity_Laser::GetRenderZ);
|
|
FUN_00889d00("Shoot",Entity_Knife::Shoot);
|
|
FUN_00889d60("IsFlying",Entity_Knife::IsFlying);
|
|
FUN_00889e10("GetKnifeDistance",Entity_Knife::GetKnifeDistance);
|
|
FUN_00889e10("GetKnifeVelocity",Entity_Knife::GetKnifeVelocity);
|
|
FUN_00889ae0("RotationOffset",Entity_Knife::RotationOffset,FUN_0060cf20);
|
|
FUN_00889eb0("SetPathFollowSpeed",Entity_Knife::SetPathFollowSpeed);
|
|
FUN_00889f10("Reset",Entity_Knife::Reset);
|
|
FUN_00889f70("Scale",0x430,1);
|
|
FUN_00889f70("RotationOffset",0x43c,1);
|
|
FUN_00889f70("MaxDistance",0x45c,1);
|
|
FUN_00889f70("Charge",0x460,1);
|
|
FUN_00889f70("PathOffset",0x4c4,1);
|
|
FUN_00889f70("PathFollowSpeed",0x4c8,1);
|
|
FUN_00872510(local_b8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_60)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_40)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_98)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_88)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_78)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_c8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_30)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_50)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((&local_28)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_d0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x60;
|
|
FUN_0088a0e0(local_b8,"GridEntityDesc");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x61);
|
|
FUN_0088a100(&DAT_00b6d1a4,0,1);
|
|
FUN_0088a270("Variant",4,1);
|
|
FUN_0088a100("State",8,1);
|
|
FUN_0088a100("SpawnCount",0xc,1);
|
|
FUN_0088a270("SpawnSeed",0x10,1);
|
|
FUN_0088a100("VarData",0x14,1);
|
|
luabridge::Namespace::Class<GridEntityDesc>::addData_Initialized("Initialized",0x18,1);
|
|
FUN_0088a270("VariableSeed",0x1c,1);
|
|
FUN_00872510(local_d0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_d0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_d8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x62;
|
|
FUN_0088a560(local_70,"GridEntity");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 99;
|
|
FUN_0088a580("Position",GridEntity::Position);
|
|
FUN_0088a680("SetType",GridEntity::SetType);
|
|
FUN_0088a6e0("SetVariant",GridEntity::SetVariant);
|
|
luabridge::Namespace::Class<GridEntity>::addProperty_State("State",EntityList::Size,FUN_00665b70);
|
|
FUN_0088a6e0(&DAT_00b63a04,GridEntity::Init);
|
|
FUN_0088a8c0("PostInit",GridEntity::PostInit);
|
|
FUN_0088a8c0("Update",GridEntity::Update);
|
|
FUN_0088a920("Render",Entity::Update);
|
|
FUN_0088a980(&DAT_00b73098,GridEntity::Hurt);
|
|
FUN_0088a9e0("HurtWithSource",GridEntity::HurtWithSource);
|
|
FUN_0088aa40("Destroy",GridEntity::Destroy);
|
|
FUN_0088aaa0("DestroyWithSource",Entity::Render);
|
|
FUN_0088ab00("GetType",GridEntity::GetType);
|
|
FUN_0088ab60("GetVariant",GridEntity::GetVariant);
|
|
FUN_0088ab60("GetGridIndex",GridEntity::GetGridIndex);
|
|
FUN_0088abc0("GetSaveState",TemporaryEffects::GetEffectsList);
|
|
luabridge::Namespace::Class<GridEntity>::addProperty_VarData
|
|
("VarData",GridEntity::VarData,FUN_00718ed0);
|
|
luabridge::Namespace::Class<GridEntity>::addData_Desc(&DAT_00b730d4,4,1);
|
|
luabridge::Namespace::Class<GridEntity>::addData_CollisionClass("CollisionClass",0x3c,1);
|
|
FUN_0088b0c0("GetRNG",GridEntity::GetRNG);
|
|
FUN_0088b120("GetSprite",GridEntity::GetSprite);
|
|
FUN_0088b180("ToDoor");
|
|
FUN_0088b220("ToPit");
|
|
FUN_0088b2c0("ToPoop");
|
|
FUN_0088b360("ToRock");
|
|
FUN_0088b400("ToPressurePlate");
|
|
FUN_0088b4a0("ToSpikes");
|
|
FUN_0088b540("ToTNT");
|
|
FUN_00872510(local_78);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 100;
|
|
FUN_0088b5e0(local_80,"GridEntityDoor");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x65;
|
|
FUN_0088b600("Direction",GridEntity_Door::Direction,FUN_00711530);
|
|
FUN_0088b600("TargetRoomIndex",GridEntity_Door::TargetRoomIndex,FUN_00738150);
|
|
FUN_0088b770("SetRoomTypes",GridEntity_Door::SetRoomTypes);
|
|
FUN_0088b600(&DAT_00b731c4,GridEntity_Door::Slot,FUN_00738160);
|
|
FUN_0088b7d0(s_Open,GridEntity_Door::Open);
|
|
FUN_0088b830("Close",GridEntity_Door::Close);
|
|
FUN_0088b7d0(&DAT_00b731cc,GridEntity_Door::Bar);
|
|
FUN_0088b7d0("SpawnDust",GridEntity_Door::SpawnDust);
|
|
FUN_0088b890("CanBlowOpen",GridEntity_Door::CanBlowOpen);
|
|
FUN_0088b8f0("TryBlowOpen",GridEntity_Door::TryBlowOpen);
|
|
FUN_0088b950("TryUnlock",GridEntity_Door::TryUnlock);
|
|
FUN_0088b9b0("IsOpen",GridEntity_Door::IsOpen);
|
|
FUN_0088b9b0("IsKeyFamiliarTarget",GridEntity_Door::IsKeyFamiliarTarget);
|
|
FUN_0088b830("SetLocked",GridEntity_Door::SetLocked);
|
|
FUN_0088b9b0("IsLocked",GridEntity_Door::IsLocked);
|
|
FUN_0088b9b0("IsBusted",GridEntity_Door::IsBusted);
|
|
FUN_0088ba50("IsRoomType",GridEntity_Door::IsRoomType);
|
|
FUN_0088b9b0("IsTargetRoomArcade",GridEntity_Door::IsTargetRoomArcade);
|
|
FUN_0088bb00("GetSpriteOffset",GridEntity_Door::GetSpriteOffset);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<int>("CurrentRoomType",0x15c,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<int>("TargetRoomType",0x160,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<int>("Direction",0x164,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData_ExtraSprite("ExtraSprite",0x27c,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<bool>("ExtraVisible",0x390,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<bool>("Busted",0x391,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<int>("TargetRoomIndex",0x394,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData_PreviousState("PreviousState",0x398,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData_PreviousVariant("PreviousVariant",0x39c,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<std::string>("OpenAnimation",0x3a4,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<std::string>("CloseAnimation",0x3bc,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<std::string>("LockedAnimation",0x3d4,1);
|
|
luabridge::Namespace::Class<GridEntity_Door>::addData<std::string>("OpenLockedAnimation",0x3ec,1);
|
|
FUN_00872510(local_88);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x66;
|
|
FUN_0088c440(local_58,"GridEntityPoop");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x67;
|
|
FUN_0088c460("RespawnRedPoop",GridEntity_Poop::RespawnRedPoop);
|
|
FUN_0088c460("ReduceSpawnRate",GridEntity_Poop::ReduceSpawnRate);
|
|
luabridge::Namespace::Class<GridEntity_Poop>::addData_ReviveTimer("ReviveTimer",0x154,1);
|
|
luabridge::Namespace::Class<GridEntity_Poop>::addData_StateAnimation("StateAnimation",0x158,1);
|
|
luabridge::Namespace::Class<GridEntity_Poop>::addData_UnderPlayer("UnderPlayer",0x170,1);
|
|
FUN_00872510(local_98);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x68;
|
|
FUN_0088c940(local_a0,"GridEntityPit");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x69;
|
|
FUN_0088c960("MakeBridge",GridEntity_Pit::MakeBridge);
|
|
FUN_0088c9c0("SetLadder",GridEntity_Pit::SetLadder);
|
|
FUN_0088ca20("UpdateCollision",GridEntity_Pit::UpdateCollision);
|
|
luabridge::Class<GridEntity_Pit>::addData_HasLadder("HasLadder",0x154,1);
|
|
FUN_00872510(local_a8);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6a;
|
|
FUN_0088cc00(local_68,"GridEntityRock");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6b;
|
|
FUN_0088cc20("GetRubbleAnim",GridEntity_Rock::GetRubbleAnim);
|
|
FUN_0088ccd0("SetBigRockFrame",GridEntity_Rock::SetBigRockFrame);
|
|
FUN_0088cd30("GetBigRockFrame",GridEntity_Rock::GetBigRockFrame);
|
|
FUN_0088cde0("UpdateAnimFrame",GridEntity_Rock::UpdateAnimFrame);
|
|
luabridge::Namespace::Class<GridEntity_Rock>::addData<std::string>(&DAT_00b7343c,0x154,1);
|
|
luabridge::Namespace::Class<GridEntity_Rock>::addData<std::string>("RubbleAnim",0x16c,1);
|
|
luabridge::Class<GridEntity_Rock>::addData_FrameCnt("FrameCnt",400,1);
|
|
FUN_00872510(local_40);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6c;
|
|
FUN_0088d130(local_38,"GridEntityTNT");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6d;
|
|
luabridge::Class<GridEntity_TNT>::addData_FrameCnt("FrameCnt",0x154,1);
|
|
FUN_00872510(local_60);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6e;
|
|
FUN_0088d2d0(local_b0,"GridEntityPressurePlate");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x6f;
|
|
FUN_0088d2f0("Reward",GridEntity_PressurePlate::Reward);
|
|
luabridge::Class<GridEntity_PressurePlate>::addData_TimerPlate("TimerPlate",0x154,1);
|
|
luabridge::Class<GridEntity_PressurePlate>::addData_NextGreedAnimation
|
|
("NextGreedAnimation",0x268,1);
|
|
luabridge::Class<GridEntity_PressurePlate>::addData_GreedModeRNG("GreedModeRNG",0x26c,1);
|
|
FUN_00872510(local_b8);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x70;
|
|
FUN_0088d7d0(local_d0,"GridEntitySpikes");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x71);
|
|
luabridge::Class<GridEntity_Spikes>::addData_Timeout("Timeout",0x154,1);
|
|
FUN_00872510(local_d8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_d8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_60)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_40)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_a8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_98)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_88)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_78)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_e0)))->luabridge::Namespace::~Namespace();
|
|
lua_register_RoomConfigEntries("RoomConfigEntries");
|
|
lua_register_RoomConfigSpawns("RoomConfigSpawns");
|
|
FUN_0085dab0();
|
|
local_8 = 0x72;
|
|
FUN_0085da00(local_38,"RoomConfig");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x73;
|
|
FUN_0088def0(local_60,"Entry");
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x74;
|
|
luabridge::Class<RoomEntry>::addData_Type(&DAT_00b6d1a4,0,1);
|
|
luabridge::Namespace::Class<RoomEntry>::addData<unsigned_short>("Variant",4,1);
|
|
luabridge::Namespace::Class<RoomEntry>::addData<unsigned_short>("Subtype",6,1);
|
|
luabridge::Class<RoomEntry>::addData_Weight("Weight",8,1);
|
|
FUN_00872510(local_b0);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x75;
|
|
FUN_0088e380(local_b8,s_Spawn);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x76;
|
|
FUN_0088e3a0("PickEntry",Spawn::PickEntry);
|
|
luabridge::Namespace::Class<RoomSpawn>::addData<short>(&DAT_00b6a748,0,1);
|
|
luabridge::Namespace::Class<RoomSpawn>::addData<short>(&DAT_00b6d134,2,1);
|
|
FUN_0088e5c0("Entries",Spawn::Entries);
|
|
luabridge::Class<RoomSpawn>::addData_EntryCount("EntryCount",8,1);
|
|
luabridge::Class<RoomSpawn>::addData_SumWeights("SumWeights",0xc,1);
|
|
FUN_00872510(local_d0);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x77;
|
|
FUN_0088e9c0(local_d8,&DAT_00b734f0);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x78);
|
|
FUN_0088e9e0("StageID",0,0);
|
|
FUN_0088e9e0(&DAT_00b6d1a4,8,0);
|
|
FUN_0088ead0("Variant",0xc,0);
|
|
FUN_0088ead0("OriginalVariant",0x58,0);
|
|
FUN_0088ebc0(&DAT_00b734e0,4,0);
|
|
FUN_0088ead0("Subtype",0x10,0);
|
|
FUN_0088ecc0(&DAT_00b1b350,0x14,0);
|
|
FUN_0088e9e0("Difficulty",0x2c,0);
|
|
FUN_0088edc0("InitialWeight",0x30,0);
|
|
FUN_0088edc0("Weight",0x34,0);
|
|
FUN_0088eeb0("Doors",Room::Doors);
|
|
FUN_0088efb0("Spawns",Room::Spawns);
|
|
FUN_0088f0b0("SpawnCount",0x44,0);
|
|
FUN_0088f1b0("Width",0x46,0);
|
|
FUN_0088f1b0("Height",0x47,0);
|
|
FUN_0088e9e0("Shape",0x48,0);
|
|
FUN_00872510(local_e0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_e0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_d0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_b0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_38)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_e8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x79;
|
|
FUN_0088f2a0(local_e0,"RoomDescriptor");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x7a);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<int>("GridIndex",0,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<int>("SafeGridIndex",4,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<int>("ListIndex",8,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<RoomConfigRoom_ptr>(&DAT_00b7365c,0x10,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<RoomConfigRoom_ptr>("OverrideData",0x14,1);
|
|
luabridge::Class<RoomDescriptor>::addData_AllowedDoors("AllowedDoors",0x18,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("DisplayFlags",0x3c,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("Flags",0x44,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("VisitedCount",0x40,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("Clear",RoomDescriptor::Clear,FUN_004aae30);
|
|
luabridge::Class<RoomDescriptor>::addData_ClearCount("ClearCount",0x4a,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("PressurePlatesTriggered",RoomDescriptor::PressurePlatesTriggered,FUN_007e9150);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("SacrificeDone",RoomDescriptor::SacrificeDone,FUN_004aae50);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("ChallengeDone",RoomDescriptor::ChallengeDone,FUN_008332a0);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("SurpriseMiniboss",RoomDescriptor::SurpriseMiniboss,FUN_00738190);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("HasWater",RoomDescriptor::HasWater,FUN_007e9170);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addProperty<bool>
|
|
("NoReward",RoomDescriptor::NoReward,FUN_005b1690);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<short>("PoopCount",0x50,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<int>("PitsCount",0x54,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("DecorationSeed",0x58,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("SpawnSeed",0x5c,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<unsigned_int>("AwardSeed",0x60,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<short>("ShopItemIdx",0xac,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<short>("ShopItemDiscountIdx",0xae,1);
|
|
luabridge::Namespace::Class<RoomDescriptor>::addData<int>("DeliriumDistance",0xb0,1);
|
|
FUN_00872510(local_e8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_e8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_f0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x7b;
|
|
FUN_0088fcf0(local_e8,&DAT_00b734f0);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x7c);
|
|
FUN_0088fd10("GetBackdropType",Room::GetBackdropType);
|
|
FUN_0088fdb0("Update",Room::Update);
|
|
FUN_0088fdb0("Render",Room::Render);
|
|
FUN_0088fe10("IsInitialized",Room::IsInitialized);
|
|
FUN_0088fe70("GetGridCollision",Room::GetGridCollision);
|
|
FUN_0088feb0("GetGridCollisionAtPos",Room::GetGridCollisionAtPos);
|
|
FUN_0088ff60("GetDoor",Room::GetDoor);
|
|
FUN_0088ffc0("GetDoorSlotPosition",Room::GetDoorSlotPosition);
|
|
FUN_00890060("IsDoorSlotAllowed",Room::IsDoorSlotAllowed);
|
|
FUN_00890110("RemoveDoor",Room::RemoveDoor);
|
|
FUN_0088fdb0("KeepDoorsClosed",Room::KeepDoorsClosed);
|
|
FUN_0088fd10("GetType",GridEntity::GetVariant);
|
|
FUN_00890170("GetDecorationSeed",Room::GetDecorationSeed);
|
|
FUN_00890170("GetSpawnSeed",Room::GetSpawnSeed);
|
|
FUN_00890170("GetAwardSeed",Room::GetAwardSeed);
|
|
FUN_0088fd10("GetRoomShape",Room::GetRoomShape);
|
|
FUN_0088fd10("GetRoomConfigStage",Room::GetRoomConfigStage);
|
|
FUN_0088fe90("GetGridPath",Room::GetGridPath);
|
|
FUN_00890210("GetGridPathFromPos",Room::GetGridPathFromPos);
|
|
FUN_008902b0("SetGridPath",Room::SetGridPath);
|
|
FUN_008902b0("DamageGrid",Room::DamageGrid);
|
|
FUN_00890310("DamageGridWithSource",Room::DamageGridWithSource);
|
|
FUN_00890370("DestroyGrid",Room::DestroyGrid);
|
|
FUN_008903d0("DestroyGridWithSource",Room::DestroyGridWithSource);
|
|
FUN_00890430("CheckLine",Room::CheckLine);
|
|
FUN_008904e0("GetLaserTarget",Room::GetLaserTarget);
|
|
FUN_00890590("GetGridEntity",Room::GetGridEntity);
|
|
FUN_00890640("GetGridEntityFromPos",Room::GetGridEntityFromPos);
|
|
FUN_0088fd10("GetGridWidth",EntityList::Size);
|
|
FUN_0088fd10("GetGridHeight",Room::GetGridHeight);
|
|
FUN_0088fd10("GetGridSize",Room::GetGridSize);
|
|
FUN_008906f0("IsClear",Room::IsClear);
|
|
FUN_00890790("SetClear",Room::SetClear);
|
|
FUN_008907f0("FindFreePickupSpawnPosition",Room::FindFreePickupSpawnPosition);
|
|
FUN_008908a0("FindFreeTilePosition",Room::FindFreeTilePosition);
|
|
FUN_00890210("GetGridIndex",Room::GetGridIndex);
|
|
FUN_00890210("GetClampedGridIndex",Room::GetClampedGridIndex);
|
|
FUN_0088ffc0("GetGridPosition",Room::GetGridPosition);
|
|
FUN_008908a0("GetClampedPosition",Room::GetClampedPosition);
|
|
FUN_00890940("IsPositionInRoom",Room::IsPositionInRoom);
|
|
FUN_008908a0("ScreenWrapPosition",Room::ScreenWrapPosition);
|
|
FUN_008906f0("IsLShapedRoom",Room::IsLShapedRoom);
|
|
FUN_008909f0("GetLRoomAreaDesc",Room::GetLRoomAreaDesc);
|
|
FUN_00890aa0("GetLRoomTileDesc",Room::GetLRoomTileDesc);
|
|
FUN_00890b50("GetTopLeftPos",Room::GetTopLeftPos);
|
|
FUN_00890b50("GetBottomRightPos",Room::GetBottomRightPos);
|
|
FUN_00890bf0("GetCenterPos",Room::GetCenterPos);
|
|
FUN_00890c90("SpawnGridEntity",Room::SpawnGridEntity);
|
|
FUN_00890cf0("RemoveGridEntity",Room::RemoveGridEntity);
|
|
FUN_00890d50("GetFrameCount",Room::GetFrameCount);
|
|
FUN_00890db0("GetEntities",Room::GetEntities);
|
|
FUN_00890d50("GetAliveEnemiesCount",Room::GetAliveEnemiesCount);
|
|
FUN_00890d50("GetAliveBossesCount",Room::GetAliveBossesCount);
|
|
FUN_0088fd10("GetBossID",Room::GetBossID);
|
|
FUN_0088fd10("GetSecondBossID",Room::GetSecondBossID);
|
|
FUN_00890790("SetSacrificeDone",Room::SetSacrificeDone);
|
|
FUN_008906f0("IsSacrificeDone",Room::IsSacrificeDone);
|
|
FUN_008906f0("IsAmbushDone",Room::IsAmbushDone);
|
|
FUN_00890790("SetAmbushDone",Room::SetAmbushDone);
|
|
FUN_008906f0("IsAmbushActive",Room::IsAmbushActive);
|
|
FUN_0088fdb0("ShopRestockPartial",Room::ShopRestockPartial);
|
|
FUN_0088fdb0("ShopRestockFull",Room::ShopRestockFull);
|
|
FUN_00890e10("ShopReshuffle",Room::ShopReshuffle);
|
|
FUN_00890e70("TrySpawnDevilRoomDoor",Room::TrySpawnDevilRoomDoor);
|
|
FUN_00890ed0("GetDevilRoomChance",Room::GetDevilRoomChance);
|
|
FUN_00890e70("TrySpawnBossRushDoor",Room::TrySpawnBossRushDoor);
|
|
FUN_00890f30("TrySpawnMegaSatanRoomDoor",Room::TrySpawnMegaSatanRoomDoor);
|
|
FUN_00890f90("TrySpawnBlueWombDoor",Room::TrySpawnBlueWombDoor);
|
|
FUN_00890f30("TrySpawnTheVoidDoor",Room::TrySpawnTheVoidDoor);
|
|
FUN_0088fdb0("PlayMusic",Room::PlayMusic);
|
|
FUN_0088fdb0("SetRedHeartDamage",Room::SetRedHeartDamage);
|
|
FUN_008906f0("GetRedHeartDamage",Room::GetRedHeartDamage);
|
|
FUN_0088fd10("GetBrokenWatchState",Room::GetBrokenWatchState);
|
|
FUN_00890110("SetBrokenWatchState",Room::SetBrokenWatchState);
|
|
FUN_008906f0("IsFirstVisit",Room::IsFirstVisit);
|
|
FUN_00890b50("GetRenderSurfaceTopLeft",Room::GetRenderSurfaceTopLeft);
|
|
FUN_00890b50("GetRenderScrollOffset",Room::GetRenderScrollOffset);
|
|
FUN_008906f0("HasWaterPits",Room::HasWaterPits);
|
|
FUN_00890ff0("GetSeededCollectible",Room::GetSeededCollectible);
|
|
FUN_0088fd10("GetShopLevel",Room::GetShopLevel);
|
|
FUN_0088fdb0("SetCardAgainstHumanity",Room::SetCardAgainstHumanity);
|
|
FUN_00891050("EmitBloodFromWalls",Room::EmitBloodFromWalls);
|
|
FUN_0088fdb0("SpawnClearAward",Room::SpawnClearAward);
|
|
FUN_00890ed0("GetLightingAlpha",Room::GetLightingAlpha);
|
|
FUN_008910b0("TryMakeBridge",Room::TryMakeBridge);
|
|
FUN_0088fd10("GetDungeonRockIdx",Room::GetDungeonRockIdx);
|
|
FUN_0088fd10("GetTintedRockIdx",Room::GetTintedRockIdx);
|
|
FUN_0088fe10("HasSlowDown",Room::HasSlowDown);
|
|
FUN_00890110("SetSlowDown",Room::SetSlowDown);
|
|
FUN_00891110("GetRandomPosition",Room::GetRandomPosition);
|
|
FUN_00891170("GetRandomTileIndex",Room::GetRandomTileIndex);
|
|
FUN_0088fdb0("RespawnEnemies",Room::RespawnEnemies);
|
|
FUN_0088fe10("HasWater",Room::HasWater);
|
|
FUN_008906f0("HasTriggerPressurePlates",Room::HasTriggerPressurePlates);
|
|
FUN_008906f0("IsCurrentRoomLastBoss",Room::IsCurrentRoomLastBoss);
|
|
FUN_008906f0("IsFirstEnemyDead",Room::IsFirstEnemyDead);
|
|
FUN_00890790("SetFirstEnemyDead",Room::SetFirstEnemyDead);
|
|
FUN_008911d0("MamaMegaExplosion",Room::MamaMegaExplosion);
|
|
FUN_0088fd10("GetDeliriumDistance",Room::GetDeliriumDistance);
|
|
FUN_0088fdb0("TurnGold",Room::TurnGold);
|
|
FUN_00891230("SetFloorColor",Room::SetFloorColor);
|
|
FUN_00891230("SetWallColor",Room::SetWallColor);
|
|
FUN_00891290("WorldToScreenPosition",Room::WorldToScreenPosition);
|
|
FUN_00890e70("TrySpawnSecretExit",Room::TrySpawnSecretExit);
|
|
FUN_00890f30("TrySpawnSecretShop",Room::TrySpawnSecretShop);
|
|
FUN_0088fe10("TrySpawnSpecialQuestDoor",Room::TrySpawnSpecialQuestDoor);
|
|
FUN_00890790("TriggerClear",Room::TriggerClear);
|
|
FUN_008906f0("HasLava",Room::HasLava);
|
|
FUN_00891340("GetLavaIntensity",Room::GetLavaIntensity);
|
|
FUN_0088fdb0("StopRain",Room::StopRain);
|
|
FUN_00890bf0("GetWaterCurrent",Room::GetWaterCurrent);
|
|
FUN_0088fdb0("InvalidatePickupVision",Room::InvalidatePickupVision);
|
|
FUN_008906f0("IsMirrorWorld",Room::IsMirrorWorld);
|
|
FUN_008906f0("HasCurseMist",Room::HasCurseMist);
|
|
FUN_008913e0("GetRenderMode",Room::GetRenderMode);
|
|
FUN_00891340("GetEnemyDamageInflicted",Room::GetEnemyDamageInflicted);
|
|
FUN_00872510(local_f0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_f0)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_f8)))->luabridge::Namespace::~Namespace();
|
|
lua_register_RoomDescriptor_array("RoomDescriptor");
|
|
lua_register_intValues("intValues");
|
|
FUN_0085dab0();
|
|
local_8 = 0x7d;
|
|
FUN_00891a10(local_f0,"Level");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x7e);
|
|
FUN_00891a30("Update",Level::Update);
|
|
FUN_00891a90("SetStage",Level::SetStage);
|
|
FUN_00891a30("SetNextStage",Level::SetNextStage);
|
|
FUN_00891af0("GetName",Level::GetName);
|
|
FUN_00891b50("CanStageHaveCurseOfLabyrinth",Level::CanStageHaveCurseOfLabyrinth);
|
|
FUN_00891af0("GetCurseName",Level::GetCurseName);
|
|
FUN_00891bb0("ShowName",Level::ShowName);
|
|
FUN_00891c10("GetStateFlag",Level::GetStateFlag);
|
|
FUN_00891cb0("SetStateFlag",Level::SetStateFlag);
|
|
FUN_00891d10("GetCurrentRoom",Level::GetCurrentRoom);
|
|
FUN_00891d70("GetPreviousRoomIndex",Level::GetPreviousRoomIndex);
|
|
FUN_00891d70("GetCurrentRoomIndex",Level::GetCurrentRoomIndex);
|
|
FUN_00891d70("GetRoomCount",Level::GetRoomCount);
|
|
FUN_00891e10("GetRandomRoomIndex",Level::GetRandomRoomIndex);
|
|
FUN_00891d70("GetNonCompleteRoomIndex",Level::GetNonCompleteRoomIndex);
|
|
FUN_00891ec0("GetRoomByIdx",Level::GetRoomByIdx);
|
|
FUN_00891f20("GetCurrentRoomDesc",Game::GetCurrentRoomDesc);
|
|
FUN_00891f20("GetLastRoomDesc",Level::GetLastRoomDesc);
|
|
FUN_00891fb0("GetRooms",Level::GetRooms);
|
|
FUN_00891d70("GetStartingRoomIndex",Level::GetStartingRoomIndex);
|
|
FUN_00892060("QueryRoomTypeIndex",Level::QueryRoomTypeIndex);
|
|
FUN_00891d70("GetLastBossRoomListIndex",Level::GetLastBossRoomListIndex);
|
|
FUN_00891c10("CanOpenChallengeRoom",Level::CanOpenChallengeRoom);
|
|
luabridge::Namespace::Class<Level>::addProperty<int>("EnterDoor",Level::EnterDoor,FUN_0057be30);
|
|
luabridge::Namespace::Class<Level>::addProperty<int>("LeaveDoor",Level::LeaveDoor,FUN_00428ae0);
|
|
FUN_00892230("GetEnterPosition",Level::GetEnterPosition);
|
|
luabridge::Class<Level>::addProperty_DungeonReturnPosition
|
|
("DungeonReturnPosition",Level::DungeonReturnPosition,FUN_0057be60);
|
|
luabridge::Namespace::Class<Level>::addProperty<int>
|
|
("DungeonReturnRoomIndex",Level::DungeonReturnRoomIndex,FUN_0057be90);
|
|
FUN_00891a90("ChangeRoom",Level::ChangeRoom);
|
|
FUN_00892460("ForceHorsemanBoss",Level::ForceHorsemanBoss);
|
|
FUN_008924c0("GetStage",EntityPtr::Ref);
|
|
FUN_00891d70("GetCurses",Level::GetCurses);
|
|
FUN_00892520("IsAltStage",Level::IsAltStage);
|
|
FUN_00891d70("GetStageType",GridEntity::GetType);
|
|
FUN_00892520("HasBossChallenge",Level::HasBossChallenge);
|
|
FUN_00892520("IsDevilRoomDisabled",Level::IsDevilRoomDisabled);
|
|
FUN_00891a30("DisableDevilRoom",Level::DisableDevilRoom);
|
|
FUN_00891a30("UpdateVisibility",Game::UpdateVisibility);
|
|
FUN_00891a30("ApplyMapEffect",Level::ApplyMapEffect);
|
|
FUN_00891a30("ApplyBlueMapEffect",Level::ApplyBlueMapEffect);
|
|
FUN_00891bb0("ApplyCompassEffect",Level::ApplyCompassEffect);
|
|
FUN_00891a30("RemoveCompassEffect",Level::RemoveCompassEffect);
|
|
FUN_00891a30("ShowMap",Level::ShowMap);
|
|
FUN_00891a30("SetHeartPicked",Level::SetHeartPicked);
|
|
FUN_00892520("GetHeartPicked",Level::GetHeartPicked);
|
|
FUN_00892520("GetCanSeeEverything",Level::GetCanSeeEverything);
|
|
FUN_00891bb0("SetCanSeeEverything",Level::SetCanSeeEverything);
|
|
FUN_00891cb0("AddCurse",Level::AddCurse);
|
|
FUN_008925c0("RemoveCurses",Level::RemoveCurses);
|
|
FUN_00892620("GetDungeonPlacementSeed",Level::GetDungeonPlacementSeed);
|
|
FUN_008926d0("GetDevilAngelRoomRNG",Level::GetDevilAngelRoomRNG);
|
|
FUN_00892730("CanSpawnDevilRoom",Level::CanSpawnDevilRoom);
|
|
FUN_00892790("InitializeDevilAngelRoom",Level::InitializeDevilAngelRoom);
|
|
FUN_00891a90("UncoverHiddenDoor",Level::UncoverHiddenDoor);
|
|
luabridge::Class<Level>::addProperty_GreedModeWave
|
|
("GreedModeWave",Level::GreedModeWave,FUN_00753800);
|
|
FUN_00891a30("SetRedHeartDamage",Level::SetRedHeartDamage);
|
|
FUN_00892520("IsNextStageAvailable",Level::IsNextStageAvailable);
|
|
FUN_00891d70("GetAbsoluteStage",Level::GetAbsoluteStage);
|
|
FUN_00892970("AddAngelRoomChance",Level::AddAngelRoomChance);
|
|
FUN_008929d0("GetAngelRoomChance",Level::GetAngelRoomChance);
|
|
FUN_00892a80("MakeRedRoomDoor",Level::MakeRedRoomDoor);
|
|
FUN_00892ae0("GetPlanetariumChance",Game::GetPlanetariumChance);
|
|
FUN_00892520("IsAscent",Level::IsAscent);
|
|
FUN_00892520("IsPreAscent",Level::IsPreAscent);
|
|
FUN_00872510(local_f8);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_f8)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_100)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x7f;
|
|
FUN_00892b40(local_f8,"Seeds");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x80);
|
|
FUN_00892b60("SetStartSeed",Seeds::SetStartSeed);
|
|
FUN_00892bc0("ClearStartSeed",Seeds::ClearStartSeed);
|
|
FUN_00892c20("IsCustomRun",Room::IsInitialized);
|
|
FUN_00892cc0("Restart",Seeds::Restart);
|
|
FUN_00892bc0("Reset",Seeds::Reset);
|
|
FUN_00892c20("IsInitialized",Level::IsAltStage);
|
|
FUN_00892d20("GetStartSeed",Seeds::GetStartSeed);
|
|
FUN_00892dc0("GetStartSeedString",Seeds::GetStartSeedString);
|
|
FUN_00892e70("GetNextSeed",Seeds::GetNextSeed);
|
|
FUN_00892ed0("GetStageSeed",Seeds::GetStageSeed);
|
|
FUN_00892d20("GetPlayerInitSeed",Seeds::GetPlayerInitSeed);
|
|
FUN_00892cc0("ForgetStageSeed",Seeds::ForgetStageSeed);
|
|
FUN_00892f80("String2Seed",Seeds::String2Seed);
|
|
FUN_00892fe0("Seed2String",Seeds::Seed2String);
|
|
FUN_00893040("IsStringValidSeed",Seeds::IsStringValidSeed);
|
|
FUN_008930a0("GetSeedEffect",Seeds::GetSeedEffect);
|
|
FUN_00893100("HasSeedEffect",Seeds::HasSeedEffect);
|
|
FUN_00892cc0("AddSeedEffect",Seeds::AddSeedEffect);
|
|
FUN_00892cc0("RemoveSeedEffect",Seeds::RemoveSeedEffect);
|
|
FUN_00892cc0("RemoveBlockingSeedEffects",Seeds::RemoveBlockingSeedEffects);
|
|
FUN_00892bc0("ClearSeedEffects",Seeds::ClearSeedEffects);
|
|
FUN_00893040("IsSpecialSeed",Seeds::IsSpecialSeed);
|
|
FUN_008931b0("CanAddSeedEffect",Seeds::CanAddSeedEffect);
|
|
FUN_00892d20("CountSeedEffects",Seeds::CountSeedEffects);
|
|
FUN_00893210("IsSeedComboBanned",Seeds::IsSeedComboBanned);
|
|
FUN_00893270("InitSeedInfo",Seeds::InitSeedInfo);
|
|
FUN_008932d0("CountUnlockedSeedEffects",Seeds::CountUnlockedSeedEffects);
|
|
FUN_00872510(local_100);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_100)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_108)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x81;
|
|
FUN_00893330(local_100,"ItemPool");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x82);
|
|
FUN_00893350("GetCollectible",ItemPool::GetCollectible);
|
|
FUN_008933b0("RemoveCollectible",ItemPool::RemoveCollectible);
|
|
FUN_00893410("RemoveTrinket",ItemPool::RemoveTrinket);
|
|
FUN_00893470("ResetTrinkets",ItemPool::ResetTrinkets);
|
|
FUN_008934d0("GetTrinket",ItemPool::GetTrinket);
|
|
FUN_00893530("GetCard",ItemPool::GetCard);
|
|
FUN_008935e0("GetPill",ItemPool::GetPill);
|
|
FUN_00893690("GetPillEffect",ItemPool::GetPillEffect);
|
|
FUN_008936f0("IdentifyPill",ItemPool::IdentifyPill);
|
|
FUN_00893750("IsPillIdentified",ItemPool::IsPillIdentified);
|
|
FUN_00893800("ForceAddPillEffect",ItemPool::ForceAddPillEffect);
|
|
FUN_00893860("GetLastPool",ItemPool::GetLastPool);
|
|
FUN_00893910("GetPoolForRoom",ItemPool::GetPoolForRoom);
|
|
FUN_00893470("ResetRoomBlacklist",ItemPool::ResetRoomBlacklist);
|
|
FUN_008936f0("AddRoomBlacklist",ItemPool::AddRoomBlacklist);
|
|
FUN_008939c0("AddBibleUpgrade",ItemPool::AddBibleUpgrade);
|
|
FUN_00872510(local_108);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_108)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_110)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x83;
|
|
FUN_00893a20(local_108,&DAT_00b6b338);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x84);
|
|
FUN_00893a40("FlashChargeBar",HUD::FlashChargeBar);
|
|
FUN_00893a40("InvalidateActiveItem",HUD::InvalidateActiveItem);
|
|
FUN_00893aa0("InvalidateCraftingItem",HUD::InvalidateCraftingItem);
|
|
FUN_00893b00("IsVisible",HUD::IsVisible);
|
|
FUN_00893bb0("SetVisible",HUD::SetVisible);
|
|
FUN_00872530("ShowItemText",HUD::ShowItemText);
|
|
FUN_00872530("ShowFortuneText",HUD::ShowFortuneText);
|
|
FUN_00893c10("AssignPlayerHUDs",HUD::AssignPlayerHUDs);
|
|
FUN_00893c10("Update",HUD::Update);
|
|
FUN_00893c10("PostUpdate",HUD::PostUpdate);
|
|
FUN_00893c10("Render",HUD::Render);
|
|
FUN_00872510(local_110);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_110)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_118)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x85;
|
|
FUN_00893c70(local_110,&DAT_00b74634);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x86);
|
|
FUN_00893c90("Update",Game::Update);
|
|
FUN_00893c90("Render",Game::Render);
|
|
FUN_00893cf0("IsPaused",Game::IsPaused);
|
|
FUN_00893d90(s_Spawn,Game::Spawn);
|
|
FUN_00893df0("SpawnEntityDesc",Game::SpawnEntityDesc);
|
|
FUN_00893e50("BombDamage",Game::BombDamage);
|
|
FUN_00893eb0("BombExplosionEffects",Game::BombExplosionEffects);
|
|
FUN_00893f10("BombTearflagEffects",Game::BombTearflagEffects);
|
|
FUN_00893f70(&DAT_00b1deb4,Game::Fart);
|
|
FUN_00893fe0("CharmFart",Game::CharmFart);
|
|
FUN_00894040("ButterBeanFart",Game::ButterBeanFart);
|
|
FUN_008940a0("RerollEnemy",Game::RerollEnemy);
|
|
FUN_00894100("SpawnParticles",Game::SpawnParticles);
|
|
FUN_00894160("GetFont",Game::GetFont);
|
|
FUN_008941c0("GetLevel",Config::GetCollectibles);
|
|
FUN_00894220("GetRoom",Level::GetCurrentRoom);
|
|
FUN_00894280("GetPlayer",Game::GetPlayer);
|
|
FUN_008942e0("GetNearestPlayer",Game::GetNearestPlayer);
|
|
FUN_00894340("GetRandomPlayer",Game::GetRandomPlayer);
|
|
FUN_008943a0("GetNumPlayers",Game::GetNumPlayers);
|
|
FUN_00894440("GetItemPool",Game::GetItemPool);
|
|
FUN_008944a0("GetItemOverlay",Game::GetItemOverlay);
|
|
FUN_00894500("GetHUD",Game::GetHUD);
|
|
FUN_00894560("GetSeeds",Game::GetSeeds);
|
|
FUN_008945c0(&DAT_00b1c00c,Game::End);
|
|
FUN_00893c90("ShowFortune",Game::ShowFortune);
|
|
FUN_00893c90("ShowRule",Game::ShowRule);
|
|
FUN_00894620("StartRoomTransition",Game::StartRoomTransition);
|
|
FUN_00894680("ChangeRoom",Game::ChangeRoom);
|
|
FUN_008946e0("StartStageTransition",Game::StartStageTransition);
|
|
FUN_00894740("MoveToRandomRoom",Game::MoveToRandomRoom);
|
|
FUN_008947a0("GetFrameCount",Game::GetFrameCount);
|
|
FUN_00894840("GetStateFlag",Game::GetStateFlag);
|
|
FUN_008948f0("SetStateFlag",Game::SetStateFlag);
|
|
luabridge::Namespace::Class<Game>::addProperty<int>
|
|
("BossRushParTime",Game::BossRushParTime,FUN_00738390);
|
|
luabridge::Namespace::Class<Game>::addProperty<int>
|
|
("BlueWombParTime",Game::BlueWombParTime,FUN_0085e3b0);
|
|
FUN_008945c0("SetLastDevilRoomStage",Game::SetLastDevilRoomStage);
|
|
FUN_00894ac0("GetLastDevilRoomStage",Game::GetLastDevilRoomStage);
|
|
FUN_00893c90("AddTreasureRoomsVisited",Game::AddTreasureRoomsVisited);
|
|
FUN_008947a0("GetTreasureRoomVisitCount",Game::GetTreasureRoomVisitCount);
|
|
FUN_00893c90("AddStageWithoutHeartsPicked",Game::AddStageWithoutHeartsPicked);
|
|
FUN_00893c90("ClearStagesWithoutHeartsPicked",Game::ClearStagesWithoutHeartsPicked);
|
|
FUN_008947a0("GetStagesWithoutHeartsPicked",Game::GetStagesWithoutHeartsPicked);
|
|
FUN_00893c90("AddStageWithoutDamage",Game::AddStageWithoutDamage);
|
|
FUN_00893c90("ClearStagesWithoutDamage",Game::ClearStagesWithoutDamage);
|
|
FUN_008947a0("GetStagesWithoutDamage",Game::GetStagesWithoutDamage);
|
|
FUN_00893c90("AddDevilRoomDeal",Game::AddDevilRoomDeal);
|
|
FUN_008945c0("DonateGreed",Game::DonateGreed);
|
|
FUN_008945c0("DonateAngel",Game::DonateAngel);
|
|
FUN_008947a0("GetDevilRoomDeals",Game::GetDevilRoomDeals);
|
|
FUN_008947a0("GetDonationModGreed",Game::GetDonationModGreed);
|
|
FUN_008947a0("GetDonationModAngel",Game::GetDonationModAngel);
|
|
FUN_00893c90("ClearDonationModGreed",Game::ClearDonationModGreed);
|
|
FUN_00893c90("ClearDonationModAngel",Game::ClearDonationModAngel);
|
|
FUN_008945c0("SetLastLevelWithDamage",Game::SetLastLevelWithDamage);
|
|
FUN_00894ac0("GetLastLevelWithDamage",Game::GetLastLevelWithDamage);
|
|
FUN_00894b60("AddEncounteredBoss",Game::AddEncounteredBoss);
|
|
FUN_00894bc0("GetNumEncounteredBosses",Game::GetNumEncounteredBosses);
|
|
FUN_00894c20("HasEncounteredBoss",Game::HasEncounteredBoss);
|
|
FUN_008943a0("GetGreedWavesNum",Game::GetGreedWavesNum);
|
|
FUN_008943a0("GetGreedBossWaveNum",Game::GetGreedBossWaveNum);
|
|
FUN_008945c0("SetLastLevelWithoutHalfHp",Game::SetLastLevelWithoutHalfHp);
|
|
FUN_00894ac0("GetLastLevelWithoutHalfHp",Game::GetLastLevelWithoutHalfHp);
|
|
FUN_008945c0("ShakeScreen",Game::ShakeScreen);
|
|
luabridge::Class<Game>::addProperty_ScreenShakeOffset
|
|
("ScreenShakeOffset",Game::ScreenShakeOffset,FUN_007e92e0);
|
|
FUN_00894e00("GetScreenShakeCountdown",Game::GetScreenShakeCountdown);
|
|
FUN_00894eb0("Darken",Game::Darken);
|
|
FUN_00894f10("GetDarknessModifier",Game::GetDarknessModifier);
|
|
FUN_00894f10("GetTargetDarkness",Game::GetTargetDarkness);
|
|
luabridge::Namespace::Class<Game>::addProperty<int>("Challenge",Game::Challenge,FUN_007068f0);
|
|
FUN_00894f70("Difficulty",Game::Difficulty);
|
|
FUN_008947a0("GetVictoryLap",Game::GetVictoryLap);
|
|
FUN_00893c90("NextVictoryLap",Game::NextVictoryLap);
|
|
FUN_00893cf0("IsGreedMode",Game::IsGreedMode);
|
|
FUN_00893c90("RerollLevelCollectibles",Game::RerollLevelCollectibles);
|
|
FUN_00895070("RerollLevelPickups",Game::RerollLevelPickups);
|
|
FUN_00893c90("FinishChallenge",Game::FinishChallenge);
|
|
FUN_008945c0("AddPixelation",Game::AddPixelation);
|
|
FUN_00894680("ShowHallucination",Game::ShowHallucination);
|
|
FUN_00893cf0("HasHallucination",Game::HasHallucination);
|
|
FUN_008950d0("UpdateStrangeAttractor",Game::UpdateStrangeAttractor);
|
|
FUN_00895130("GetAmbush",Game::GetAmbush);
|
|
FUN_00895190("Fadein",Game::Fadein);
|
|
FUN_008951f0("Fadeout",Game::Fadeout);
|
|
FUN_00895250("MakeShockwave",Game::MakeShockwave);
|
|
luabridge::Class<Game>::addData_TimeCounter("TimeCounter",0x264fc,1);
|
|
FUN_00872510(local_118);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_118)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_120)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x87;
|
|
FUN_00895430(local_118,"SFXManager");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x88);
|
|
FUN_00895450(&DAT_00b70498,SoundEffects::Play);
|
|
FUN_008954b0("AdjustVolume",SFXManager::AdjustVolume);
|
|
FUN_008954b0("AdjustPitch",SFXManager::AdjustPitch);
|
|
FUN_00895510(&DAT_00b1d6f4,SFXManager::Stop);
|
|
FUN_00895570("StopLoopingSounds",SFXManager::StopLoopingSounds);
|
|
FUN_00895510("Preload",SFXManager::Preload);
|
|
FUN_008955d0("IsPlaying",SFXManager::IsPlaying);
|
|
FUN_00895630("SetAmbientSound",SFXManager::SetAmbientSound);
|
|
FUN_00895690("GetAmbientSoundVolume",SFXManager::GetAmbientSoundVolume);
|
|
FUN_00872510(local_120);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_120)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_128)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x89;
|
|
FUN_008956f0(local_120,"MusicManager");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x8a);
|
|
FUN_00895710(&DAT_00b70498,Music::Play);
|
|
FUN_008957d0("Fadein",Music::Fadein);
|
|
FUN_00895770("Crossfade",MusicManager::Crossfade);
|
|
FUN_00895830("Queue",MusicManager::Queue);
|
|
FUN_00895890("Fadeout",Music::Fadeout);
|
|
FUN_008958f0("Pause",Music::Pause);
|
|
FUN_008958f0("Resume",Music::Resume);
|
|
FUN_00895950("EnableLayer",MusicManager::EnableLayer);
|
|
FUN_00895830("DisableLayer",Music::DisableLayer);
|
|
FUN_008959b0("IsLayerEnabled",Music::IsLayerEnabled);
|
|
FUN_008958f0("Enable",MusicManager::Enable);
|
|
FUN_008958f0("Disable",MusicManager::Disable);
|
|
FUN_00895a60("IsEnabled",MusicManager::IsEnabled);
|
|
FUN_00895890("PitchSlide",MusicManager::PitchSlide);
|
|
FUN_008958f0("ResetPitch",Music::ResetPitch);
|
|
FUN_00895b10("VolumeSlide",Music::VolumeSlide);
|
|
FUN_008958f0("UpdateVolume",Music::UpdateVolume);
|
|
FUN_00895b70("GetCurrentMusicID",MusicManager::GetCurrentMusicID);
|
|
FUN_00895b70("GetQueuedMusicID",MusicManager::GetQueuedMusicID);
|
|
FUN_00872510(local_128);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_128)))->luabridge::Namespace::~Namespace();
|
|
FUN_0086e4d0();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_130)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x8b;
|
|
FUN_00895c10("Random",MusicManager::Random);
|
|
FUN_00895c70("RandomVector",MusicManager::RandomVector);
|
|
FUN_00895cd0("Game_0",MusicManager::Game_0);
|
|
FUN_00895d30("SFXManager",MusicManager::SFXManager);
|
|
FUN_00895d90("MusicManager",MusicManager::MusicManager);
|
|
FUN_0085da00(local_130,"Isaac");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x8c);
|
|
FUN_00895df0("DebugString",Isaac::DebugString);
|
|
FUN_0085da20("GetPlayer",Isaac::GetPlayer);
|
|
FUN_00895e50("GetFrameCount",Isaac::GetFrameCount);
|
|
FUN_00895eb0(s_Spawn,Isaac::Spawn);
|
|
FUN_00895f10("GridSpawn",Isaac::GridSpawn);
|
|
FUN_00895f70("RenderText",Isaac::RenderText);
|
|
FUN_00895fd0("RenderScaledText",Isaac::RenderScaledText);
|
|
FUN_00896030("GetTextWidth",Isaac::GetTextWidth);
|
|
FUN_00895c70("GetRandomPosition",Isaac::GetRandomPosition);
|
|
FUN_00896090("GetFreeNearPosition",Isaac::GetFreeNearPosition);
|
|
FUN_008960f0("Explode",Isaac::Explode);
|
|
FUN_00896150("AddPillEffectToPool",Isaac::AddPillEffectToPool);
|
|
FUN_008961b0("GetRoomEntities",Isaac::GetRoomEntities);
|
|
FUN_00895e50("GetChallenge",Isaac::GetChallenge);
|
|
FUN_00896210("GetEntityTypeByName",Isaac::GetEntityTypeByName);
|
|
FUN_00896210("GetEntityVariantByName",Isaac::GetEntityVariantByName);
|
|
FUN_00896210("GetItemIdByName",Isaac_GetItemIdByName);
|
|
FUN_00896270("GetPlayerTypeByName",Isaac::GetPlayerTypeByName);
|
|
FUN_00896210("GetCardIdByName",Isaac::GetCardIdByName);
|
|
FUN_00896210("GetPillEffectByName",Isaac::GetPillEffectByName);
|
|
FUN_00896210("GetTrinketIdByName",Isaac::GetTrinketIdByName);
|
|
FUN_00896210("GetChallengeIdByName",Isaac::GetChallengeIdByName);
|
|
FUN_00896210("GetCostumeIdByPath",Isaac::GetCostumeIdByPath);
|
|
FUN_00896210("GetCurseIdByName",Isaac::GetCurseIdByName);
|
|
FUN_00896210("GetSoundIdByName",Isaac::GetSoundIdByName);
|
|
FUN_00896210("GetMusicIdByName",Isaac::GetMusicIdByName);
|
|
FUN_00895c10("GetTime",Isaac::GetTime);
|
|
FUN_008962d0("ExecuteCommand",Isaac::ExecuteCommand);
|
|
FUN_00895df0("ConsoleOutput",Isaac::ConsoleOutput);
|
|
FUN_00896330("GetItemConfig",Isaac::GetItemConfig);
|
|
FUN_0085da20("FindInRadius",Isaac::FindInRadius);
|
|
FUN_0085da20("FindByType",Isaac::FindByType);
|
|
FUN_0085da20("CountEntities",Isaac::CountEntities);
|
|
FUN_00895e50("CountBosses",Isaac::CountBosses);
|
|
FUN_00895e50("CountEnemies",Isaac::CountEnemies);
|
|
FUN_00896390("RegisterMod",Isaac::RegisterMod);
|
|
FUN_008963f0("SetBuiltInCallbackState",Isaac::SetBuiltInCallbackState);
|
|
FUN_00896450("GetBuiltInCallbackState",Isaac::GetBuiltInCallbackState);
|
|
FUN_008964b0("SaveModData",Isaac::SaveModData);
|
|
FUN_00896510("LoadModData",Isaac::LoadModData);
|
|
FUN_00896570("HasModData",Isaac::HasModData);
|
|
FUN_008965d0("RemoveModData",Isaac::RemoveModData);
|
|
FUN_00896630("ScreenToWorld",Isaac::ScreenToWorld);
|
|
FUN_00896630("WorldToScreen",Isaac::WorldToScreen);
|
|
FUN_00896630("WorldToScreenDistance",Isaac::WorldToScreenDistance);
|
|
FUN_00896630("WorldToRenderPosition",Isaac::WorldToRenderPosition);
|
|
FUN_00896630("ScreenToWorldDistance",Isaac::ScreenToWorldDistance);
|
|
FUN_00896690("GetScreenWidth",Isaac::GetScreenWidth);
|
|
FUN_00896690("GetScreenHeight",Isaac::GetScreenHeight);
|
|
FUN_00896690("GetScreenPointScale",Isaac::GetScreenPointScale);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_130)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_138)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x8d;
|
|
FUN_0085da00(local_138,"Input");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x8e);
|
|
FUN_008966f0("IsButtonTriggered",Input::IsButtonTriggered);
|
|
FUN_008966f0("IsButtonPressed",Input::IsButtonPressed);
|
|
FUN_00896750("GetButtonValue",Input::GetButtonValue);
|
|
FUN_008966f0("IsActionTriggered",Input::IsActionTriggered);
|
|
FUN_008966f0("IsActionPressed",Input::IsActionPressed);
|
|
FUN_00896750("GetActionValue",Input::GetActionValue);
|
|
FUN_00896450("IsMouseBtnPressed",Input::IsMouseBtnPressed);
|
|
FUN_008967b0("GetMousePosition",Input::GetMousePosition);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_138)))->luabridge::Namespace::~Namespace();
|
|
local_8 = 0xffffffff;
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_140)))->luabridge::Namespace::~Namespace();
|
|
FUN_0085dab0();
|
|
local_8 = 0x8f;
|
|
FUN_0085da00(optionsNamespace,"Options");
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x90);
|
|
FUN_008968b0("MusicVolume",Options::MusicVolume,FUN_00896820);
|
|
FUN_008968b0("SFXVolume",Options::SFXVolume,FUN_008969f0);
|
|
FUN_008968b0("MapOpacity",Options::MapOpacity,FUN_00896a60);
|
|
FUN_00896ae0("Fullscreen",Options::Fullscreen,FUN_00896ac0);
|
|
FUN_00896ae0("Filter",Options::Filter,FUN_00896c20);
|
|
FUN_008968b0("Gamma",Options::Gamma,FUN_00896c50);
|
|
FUN_00896cf0("DisplayPopups",Options::DisplayPopups,FUN_00896cb0);
|
|
FUN_00896cf0("CameraStyle",Options::CameraStyle,FUN_00896e30);
|
|
FUN_00896cf0("ExtraHUDStyle",Options::ExtraHUDStyle,FUN_00896e80);
|
|
FUN_008968b0("HUDOffset",Options::HUDOffset,FUN_00896ed0);
|
|
FUN_00896ae0("FoundHUD",Options::FoundHUD,FUN_00896f30);
|
|
FUN_00896ae0("RumbleEnabled",Options::RumbleEnabled,FUN_00896f60);
|
|
FUN_00896ae0("ChargeBars",Options::ChargeBars,FUN_00896f90);
|
|
FUN_00896ae0("BulletVisibility",Options::BulletVisibility,FUN_00896fc0);
|
|
FUN_00896ae0("VSync",Options::VSync,FUN_00896ff0);
|
|
FUN_00896ae0("PauseOnFocusLost",Options::PauseOnFocusLost,FUN_00897020);
|
|
FUN_00896ae0("MouseControl",Options::MouseControl,FUN_00897050);
|
|
FUN_00896cf0("AnnouncerVoiceMode",Options::AnnouncerVoiceMode,FUN_00897090);
|
|
FUN_00897120("MaxScale",Options::MaxScale,FUN_008970e0);
|
|
FUN_00897120("MaxRenderScale",Options::MaxRenderScale,FUN_00897260);
|
|
FUN_00897120("ConsoleFont",Options::ConsoleFont,FUN_008972b0);
|
|
FUN_00896ae0("FadedConsoleDisplay",Options::FadedConsoleDisplay,FUN_008972e0);
|
|
FUN_00896ae0("SaveCommandHistory",Options::SaveCommandHistory,FUN_00897310);
|
|
FUN_00896ae0("UseBorderlessFullscreen",Options::UseBorderlessFullscreen,FUN_00897340);
|
|
FUN_00896ae0("DebugConsoleEnabled",Options::DebugConsoleEnabled,FUN_00897370);
|
|
FUN_00896cf0("JacobEsauControls",Options::JacobEsauControls,FUN_008973a0);
|
|
FUN_008973e0("Language",Options::Language,0);
|
|
(GHIDRA_CAST<luabridge::Namespace *>((optionsNamespace)))->luabridge::Namespace::~Namespace();
|
|
(GHIDRA_CAST<luabridge::Namespace *>((local_150)))->luabridge::Namespace::~Namespace();
|
|
lua_pushcclosure(this[6],FUN_008603d0,0);
|
|
lua_setglobal(this[6],"GetPtrHash");
|
|
if (*GHIDRA_CAST<char *>((this + 7)) == '\0') {
|
|
lua_pushcclosure(this[6],FUN_0085fec0,0);
|
|
lua_setglobal(this[6],"require");
|
|
}
|
|
lua_pushcclosure(this[6],&LAB_00860000,0);
|
|
lua_setglobal(this[6],"include");
|
|
lua_pushcclosure(this[6],FUN_008601f0,0);
|
|
lua_setglobal(this[6],"print");
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 0086e520
|
|
void LuaEngine::destroy()
|
|
{
|
|
int *node;
|
|
LuaEngine luaRef;
|
|
|
|
node = GHIDRA_CAST<int *>(*DAT_00c7985c);
|
|
if (node != DAT_00c7985c) {
|
|
do {
|
|
FUN_00870e00(node + 2);
|
|
node = GHIDRA_CAST<int *>(*node);
|
|
} while (node != DAT_00c7985c);
|
|
}
|
|
FUN_008975d0();
|
|
*DAT_00c7985c = GHIDRA_INT(DAT_00c7985c);
|
|
DAT_00c7985c[1] = GHIDRA_INT(DAT_00c7985c);
|
|
DAT_00c79860 = 0;
|
|
luaRef = this[4];
|
|
if (luaRef != (LuaEngine)0x0) {
|
|
luaL_unref(*GHIDRA_CAST<undefined4 *>(luaRef),0xfff0b9d8,*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(luaRef) + 4)));
|
|
operator_delete((void *)luaRef,8);
|
|
this[4] = (LuaEngine)0x0;
|
|
}
|
|
luaRef = this[5];
|
|
if (luaRef != (LuaEngine)0x0) {
|
|
luaL_unref(*GHIDRA_CAST<undefined4 *>(luaRef),0xfff0b9d8,*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(luaRef) + 4)));
|
|
operator_delete((void *)luaRef,8);
|
|
this[5] = (LuaEngine)0x0;
|
|
}
|
|
lua_close(this[6]);
|
|
this[6] = (LuaEngine)0x0;
|
|
return;
|
|
}
|
|
|
|
// 0086f640
|
|
int LuaEngine::Isaac_GetItemIdByName(std_string *name)
|
|
{
|
|
byte *keyText;
|
|
int iVar1;
|
|
undefined1 findResult [8];
|
|
void *foundNode;
|
|
void *nameMap [3];
|
|
void *nameMapHead;
|
|
uint *nameSize;
|
|
|
|
FUN_00737b30(&(g_manager->_itemConfig)._collectibleNameMap);
|
|
std::map<std::string>::_Find_lower_bound(findResult,name);
|
|
nameMapHead = nameMap[0];
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(foundNode) + 0xd)) == '\0') {
|
|
keyText = GHIDRA_CAST<byte *>((GHIDRA_INT(foundNode) + 0x10));
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(foundNode) + 0x24))) {
|
|
keyText = *GHIDRA_CAST<byte **>(keyText);
|
|
}
|
|
nameSize = &name->_size;
|
|
if (0xf < name->_capacity) {
|
|
name = *GHIDRA_CAST<std_string **>(name->_buf);
|
|
}
|
|
iVar1 = string_compare(GHIDRA_CAST<byte *>(name),*nameSize,keyText,*GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(foundNode) + 0x20)));
|
|
if ((-1 < iVar1) && (foundNode != nameMapHead)) {
|
|
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(foundNode) + 0x28));
|
|
goto LAB_0086f6ad;
|
|
}
|
|
}
|
|
iVar1 = -1;
|
|
LAB_0086f6ad:
|
|
FUN_004235c0(nameMap,*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(nameMapHead) + 4)));
|
|
operator_delete(nameMap[0],0x2c);
|
|
return iVar1;
|
|
}
|
|
|
|
// 008f70f0
|
|
byte * LuaEngine::LuamodCMD(byte *modname)
|
|
{
|
|
byte isMatch;
|
|
byte *pbVar1;
|
|
undefined4 *appendResult;
|
|
byte *pbVar2;
|
|
LuaEngine *pLVar3;
|
|
byte *******scriptPathText;
|
|
undefined4 extraout_EAX;
|
|
byte *pbVar4;
|
|
void *allocBlock;
|
|
uint allocSize;
|
|
LuaEngine modIter;
|
|
void *modsDir [4];
|
|
undefined4 modsDirSize;
|
|
uint modsDirCapacity;
|
|
void *modPath;
|
|
undefined4 uStack_40;
|
|
undefined4 uStack_3c;
|
|
undefined4 uStack_38;
|
|
undefined8 local_34;
|
|
byte *******scriptPath;
|
|
undefined4 uStack_28;
|
|
undefined4 uStack_24;
|
|
undefined4 uStack_20;
|
|
undefined4 scriptPathSize;
|
|
uint scriptPathCapacity;
|
|
uint local_14;
|
|
LuaEngine local_10;
|
|
undefined1 *puStack_c;
|
|
void *local_8;
|
|
uint *nameSize;
|
|
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))) = 0xffffff;
|
|
puStack_c = &LAB_00b0795d;
|
|
local_10 = (LuaEngine)ExceptionList;
|
|
local_14 = __security_cookie ^ GHIDRA_UINT((modsDir + 0x16));
|
|
ExceptionList = &local_10;
|
|
modIter = *this;
|
|
pLVar3 = ExceptionList;
|
|
if (modIter != this[1]) {
|
|
do {
|
|
pbVar2 = *GHIDRA_CAST<byte **>(modIter);
|
|
if (pbVar2[0xfd] != 0) {
|
|
pbVar1 = modname;
|
|
if (0xf < *GHIDRA_CAST<uint *>((modname + 0x14))) {
|
|
pbVar1 = *GHIDRA_CAST<byte **>(modname);
|
|
}
|
|
pbVar4 = pbVar2;
|
|
if (0xf < *GHIDRA_CAST<uint *>((pbVar2 + 0x14))) {
|
|
pbVar4 = *GHIDRA_CAST<byte **>(pbVar2);
|
|
}
|
|
isMatch = str_eq(pbVar4,*GHIDRA_CAST<uint *>((pbVar2 + 0x10)),pbVar1,*GHIDRA_CAST<uint *>((modname + 0x10)));
|
|
if (isMatch != 0) {
|
|
modsDirSize = 0;
|
|
modsDirCapacity = 0xf;
|
|
modsDir[0] = (void *)0x0;
|
|
pbVar1 = g_modsDirectory;
|
|
do {
|
|
pbVar4 = pbVar1;
|
|
pbVar1 = pbVar4 + 1;
|
|
} while (*pbVar4 != 0);
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(modsDir))))->std::string::assign(g_modsDirectory,GHIDRA_UINT((pbVar4 + -0xc72e28)));
|
|
local_8 = (void *)0x0;
|
|
nameSize = GHIDRA_CAST<uint *>((pbVar2 + 0x10));
|
|
if (0xf < *GHIDRA_CAST<uint *>((pbVar2 + 0x14))) {
|
|
pbVar2 = *GHIDRA_CAST<byte **>(pbVar2);
|
|
}
|
|
appendResult = (GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(modsDir))))->std::string::append(pbVar2,*nameSize);
|
|
modPath = (void *)*appendResult;
|
|
uStack_40 = appendResult[1];
|
|
uStack_3c = appendResult[2];
|
|
uStack_38 = appendResult[3];
|
|
local_34 = *GHIDRA_CAST<undefined8 *>((appendResult + 4));
|
|
appendResult[4] = 0;
|
|
appendResult[5] = 0xf;
|
|
*GHIDRA_CAST<undefined1 *>(appendResult) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
appendResult = (GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>(&modPath))))->std::string::append(GHIDRA_CAST<byte *>("/main.lua"),9);
|
|
scriptPath = GHIDRA_CAST<byte *******>(*appendResult);
|
|
uStack_28 = appendResult[1];
|
|
uStack_24 = appendResult[2];
|
|
uStack_20 = appendResult[3];
|
|
scriptPathSize = appendResult[4];
|
|
scriptPathCapacity = appendResult[5];
|
|
appendResult[4] = 0;
|
|
appendResult[5] = 0xf;
|
|
*GHIDRA_CAST<undefined1 *>(appendResult) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 3;
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x4)))) {
|
|
allocSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x4))) + 1;
|
|
allocBlock = modPath;
|
|
if (0xfff < allocSize) {
|
|
allocBlock = *(void **)(GHIDRA_CAST<char *>(modPath) + -4);
|
|
allocSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x4))) + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(modPath) + (-4 - GHIDRA_INT(allocBlock))))) goto LAB_008f73d3;
|
|
}
|
|
operator_delete(allocBlock,allocSize);
|
|
}
|
|
local_34 = 0xf00000000;
|
|
modPath = (void *)(GHIDRA_UINT(modPath) & 0xffffff00);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
if (0xf < modsDirCapacity) {
|
|
allocSize = modsDirCapacity + 1;
|
|
allocBlock = modsDir[0];
|
|
if (0xfff < allocSize) {
|
|
allocBlock = *(void **)(GHIDRA_INT(modsDir[0]) + -4);
|
|
allocSize = modsDirCapacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(modsDir[0]) + (-4 - GHIDRA_INT(allocBlock))))) goto LAB_008f73d3;
|
|
}
|
|
operator_delete(allocBlock,allocSize);
|
|
}
|
|
modsDirSize = 0;
|
|
scriptPathText = GHIDRA_CAST<byte *******>(&scriptPath);
|
|
if (0xf < scriptPathCapacity) {
|
|
scriptPathText = scriptPath;
|
|
}
|
|
modsDirCapacity = 0xf;
|
|
modsDir[0] = (void *)(GHIDRA_UINT(modsDir[0]) & 0xffffff00);
|
|
pbVar2 = FileSystem::ResolvePath(GHIDRA_CAST<byte *>(scriptPathText));
|
|
if (pbVar2 != GHIDRA_CAST<byte *>(0x0)) {
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 5;
|
|
tracked_alloc(1,pbVar2,0);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
DAT_00c71698 = *GHIDRA_CAST<int *>(modIter);
|
|
scriptPathText = GHIDRA_CAST<byte *******>(&scriptPath);
|
|
if (0xf < scriptPathCapacity) {
|
|
scriptPathText = scriptPath;
|
|
}
|
|
pbVar2 = GHIDRA_CAST<byte *>(FUN_0086e6c0(scriptPathText));
|
|
DAT_00c71698 = 0;
|
|
if (scriptPathCapacity < 0x10) {
|
|
DAT_00c71698 = 0;
|
|
ExceptionList = (void *)local_10;
|
|
return pbVar2;
|
|
}
|
|
allocSize = scriptPathCapacity + 1;
|
|
scriptPathText = scriptPath;
|
|
if (0xfff < allocSize) {
|
|
scriptPathText = GHIDRA_CAST<byte *******>(scriptPath[-1]);
|
|
allocSize = scriptPathCapacity + 0x24;
|
|
if (GHIDRA_CAST<byte *>(0x1f) < GHIDRA_CAST<byte *>((GHIDRA_INT(scriptPath) + (-4 - GHIDRA_INT(scriptPathText))))) {
|
|
LAB_008f73d3:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(scriptPathText,allocSize);
|
|
ExceptionList = (void *)local_10;
|
|
return GHIDRA_CAST<byte *>(CONCAT31((int3)(GHIDRA_UINT(extraout_EAX) >> 8),(char)pbVar2));
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))) = 0xffffff;
|
|
if (0xf < scriptPathCapacity) {
|
|
allocSize = scriptPathCapacity + 1;
|
|
scriptPathText = scriptPath;
|
|
if (0xfff < allocSize) {
|
|
scriptPathText = GHIDRA_CAST<byte *******>(scriptPath[-1]);
|
|
allocSize = scriptPathCapacity + 0x24;
|
|
if (GHIDRA_CAST<byte *>(0x1f) < GHIDRA_CAST<byte *>((GHIDRA_INT(scriptPath) + (-4 - GHIDRA_INT(scriptPathText)))))
|
|
goto LAB_008f73d3;
|
|
}
|
|
operator_delete(scriptPathText,allocSize);
|
|
}
|
|
}
|
|
}
|
|
modIter = (LuaEngine)(GHIDRA_INT(modIter) + 4);
|
|
pLVar3 = this;
|
|
} while (modIter != this[1]);
|
|
}
|
|
ExceptionList = (void *)local_10;
|
|
return GHIDRA_CAST<byte *>((GHIDRA_UINT(pLVar3) & 0xffffff00));
|
|
}
|