sotn-decomp/config/symbols.us.stnz0.txt

118 lines
3.7 KiB
Plaintext
Raw Normal View History

2023-03-31 07:42:12 +00:00
g_SpriteBanks = 0x8018002C;
g_Cluts = 0x80180160;
g_TileLayers = 0x80180394;
g_EntityGfxs = 0x80180888;
Rename Stage Layout Functions and Vars Uniformly (#1162) This change renames functions and global stage variables uniformly across the stages so that these functions can be pulled out and shared across all of the stages. Based on some other tests there are 12 or so functions that this will allow to be pulled out of each stage. Since these implementations are shared, an additional 12 asm functions can be eliminated in a subsequent pass. **Vars** * `g_pStObjLayoutHorizontal` - a horizontally sorted array of stage entities * `g_pStObjLayoutVertical` - a vertically sorted array of stage entities * `g_LayoutObjHorizontal` - a pointer to a `LayoutEntity` in `g_pStObjLayoutHorizontal` * `g_LayoutObjVertical` - a pointer to a `LayoutEntity` in `g_pStObjLayoutVertical` * `g_LayoutObjPosHorizontal` - the direction last traversed in `g_LayoutObjHorizontal` * `g_LayoutObjPosVertical` - the direction last traversed in `g_pStObjLayoutVertical ` **Functions** * `FindFirstEntityToTheRight` - given an `x` position, update `g_LayoutObjHorizontal` with the first entity to the right of `x` * `FindFirstEntityToTheLeft` - given a `x` position, update `g_LayoutObjHorizontal` with the first entity to the left of `x` (backwards) * `CreateEntitiesToTheRight` - given an `x` position, create all entities to the right (mutates `g_LayoutObjHorizontal`) * `CreateEntitiesToTheLeft` - given an `x` position, create all entities to the left (mutates `g_LayoutObjHorizontal`) * `FindFirstEntityAbove` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the above of `y` * `FindFirstEntityBelow` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the below of `y` * `CreateEntitiesAbove` - given an `y` position, create all entities above (mutates `g_LayoutObjVertical`) * `CreateEntitiesBelow` - given an `y` position, create all entities beneath (mutates `g_LayoutObjVertical`) * `UpdateRoomPosition` - look at the current game loop scroll delta and create any entities given the room layout I believe all of these implementations are shared across all stages (including `InitRoomEntities`, and two more `CreateEntity` functions) (in my initial tests I had a small difference in `DER`, but I believe that had to do with an incorrect symbol table change). Co-authored-by: Jonathan Hohle <jon@ttkb.co>
2024-05-22 22:34:41 +00:00
g_pStObjLayoutHorizontal = 0x801808EC;
g_pStObjLayoutVertical = 0x801809C0;
2023-08-09 18:59:29 +00:00
PfnEntityUpdates = 0x80180A94;
2023-08-20 20:35:01 +00:00
g_InitializeData0 = 0x80180BD4;
g_InitializeEntityData0 = 0x80180BE0;
g_EInitGeneric = 0x80180BF8;
g_eInitGeneric2 = 0x80180C1C;
g_eDamageDisplayInit = 0x80180C28;
g_eRedDoorTiles = 0x80180D8C;
g_CallElevator = 0x80180EEC;
g_BossFlag = 0x80181010;
g_ElevatorTarget = 0x801813A4;
g_ElevatorTargetPos = 0x801813A8;
UNK_Invincibility0 = 0x80181574;
g_testCollEnemyLookup = 0x801815A0;
g_testCollLuckCutoff = 0x801818C0;
g_testColluCoords = 0x801818C4;
g_testCollvCoords = 0x801818CC;
g_testCollElementLookup = 0x801818D4;
g_testColliFrames = 0x801818E8;
g_testCollPrizeTable = 0x801818F4;
g_testCollRandTable = 0x80181934;
g_eDamageDisplayClut = 0x80181950;
g_eRedDoorUV = 0x80181960;
g_goldCollectTexts = 0x80181CEC;
c_GoldPrizes = 0x80181D14;
c_HeartPrizes = 0x80181DA4;
g_bigRedFireballAnim = 0x80181DD0;
g_eUnk14SpawnRots = 0x80181ECC;
unk14_yVel = 0x80181F04;
unk14_startFrame = 0x80181F1C;
unk14_lifetime = 0x80181F20;
g_olroxDroolCollOffsets = 0x80181F28;
2023-03-13 20:56:36 +00:00
g_Rooms = 0x8018272C;
g_UnkPrimHelperRot = 0x801B0934;
2023-01-27 21:07:01 +00:00
EntityBreakable = 0x801B0EEC;
2023-05-06 01:16:56 +00:00
EntityRedEyeBust = 0x801B11C0;
EntityPurpleBrickScrollingBackground = 0x801B12E8;
EntityLeftSecretRoomWall = 0x801B14C4;
EntityBottomSecretRoomFloor = 0x801B1770;
EntityMoveableBox = 0x801B20CC;
EntityCannonLever = 0x801B23B4;
EntityCannon = 0x801B25C4;
EntityCannonShot = 0x801B2874;
EntityCannonWall = 0x801B2978;
EntityElevator2 = 0x801B2D08;
2023-05-06 01:16:56 +00:00
EntityFloorSpikes = 0x801B3294;
EntityTableWithGlobe = 0x801B3534;
EntityCloseBossRoom = 0x801B3FCC;
EntityBossRoomBlock = 0x801B4518;
EntitySlogra = 0x801B4778;
EntitySlograSpear = 0x801B54A8;
2023-05-06 01:16:56 +00:00
EntitySlograSpearProjectile = 0x801B5654;
EntityGaibon = 0x801B5778;
EntitySmallGaibonProjectile = 0x801B6AAC;
EntityLargeGaibonProjectile = 0x801B6BBC;
EntityElevator = 0x801B7034;
2023-05-06 01:16:56 +00:00
EntityMariaCutscene = 0x801B7D58;
Random = 0x801B94D4;
2023-01-27 21:07:01 +00:00
Update = 0x801B9504;
UpdateStageEntities = 0x801B9800;
HitDetection = 0x801B9908;
EntityDamageDisplay = 0x801BAA20;
InitRoomEntities = 0x801BB920;
Rename Stage Layout Functions and Vars Uniformly (#1162) This change renames functions and global stage variables uniformly across the stages so that these functions can be pulled out and shared across all of the stages. Based on some other tests there are 12 or so functions that this will allow to be pulled out of each stage. Since these implementations are shared, an additional 12 asm functions can be eliminated in a subsequent pass. **Vars** * `g_pStObjLayoutHorizontal` - a horizontally sorted array of stage entities * `g_pStObjLayoutVertical` - a vertically sorted array of stage entities * `g_LayoutObjHorizontal` - a pointer to a `LayoutEntity` in `g_pStObjLayoutHorizontal` * `g_LayoutObjVertical` - a pointer to a `LayoutEntity` in `g_pStObjLayoutVertical` * `g_LayoutObjPosHorizontal` - the direction last traversed in `g_LayoutObjHorizontal` * `g_LayoutObjPosVertical` - the direction last traversed in `g_pStObjLayoutVertical ` **Functions** * `FindFirstEntityToTheRight` - given an `x` position, update `g_LayoutObjHorizontal` with the first entity to the right of `x` * `FindFirstEntityToTheLeft` - given a `x` position, update `g_LayoutObjHorizontal` with the first entity to the left of `x` (backwards) * `CreateEntitiesToTheRight` - given an `x` position, create all entities to the right (mutates `g_LayoutObjHorizontal`) * `CreateEntitiesToTheLeft` - given an `x` position, create all entities to the left (mutates `g_LayoutObjHorizontal`) * `FindFirstEntityAbove` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the above of `y` * `FindFirstEntityBelow` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the below of `y` * `CreateEntitiesAbove` - given an `y` position, create all entities above (mutates `g_LayoutObjVertical`) * `CreateEntitiesBelow` - given an `y` position, create all entities beneath (mutates `g_LayoutObjVertical`) * `UpdateRoomPosition` - look at the current game loop scroll delta and create any entities given the room layout I believe all of these implementations are shared across all stages (including `InitRoomEntities`, and two more `CreateEntity` functions) (in my initial tests I had a small difference in `DER`, but I believe that had to do with an incorrect symbol table change). Co-authored-by: Jonathan Hohle <jon@ttkb.co>
2024-05-22 22:34:41 +00:00
UpdateRoomPosition = 0x801BBA98;
CreateEntityFromCurrentEntity = 0x801BBB4C;
CreateEntityFromEntity = 0x801BBBC0;
2023-01-05 19:35:01 +00:00
EntityRedDoor = 0x801BBCB4;
DestroyEntity = 0x801BC8EC;
AnimateEntity = 0x801BCA1C;
GetSideToPlayer = 0x801BCC5C;
MoveEntity = 0x801BCCA0;
AllocEntity = 0x801BD15C;
SetStep = 0x801BD52C;
SetSubStep = 0x801BD54C;
InitializeEntity = 0x801BD5FC;
2023-01-27 21:07:01 +00:00
EntityDummy = 0x801BD6F8;
GetPlayerCollisionWith = 0x801BD9A0;
2023-03-25 20:37:41 +00:00
EntityPrizeDrop = 0x801BE30C;
EntityExplosion = 0x801BEB80;
EntityEquipItemDrop = 0x801BED20;
2023-01-27 21:07:01 +00:00
EntityRelicOrb = 0x801BF5B8;
EntityHeartDrop = 0x801C0088;
EntityMessageBox = 0x801C01B0;
EntityUnkId14 = 0x801C0B24;
EntityUnkId15 = 0x801C0C14;
2023-01-27 21:07:01 +00:00
EntityIntenseExplosion = 0x801C15B4;
EntitySoulStealOrb = 0x801C2AA8;
2023-01-27 21:07:01 +00:00
EntityEnemyBlood = 0x801C2E3C;
EntityRoomForeground = 0x801C32EC;
EntityBoneScimitar = 0x801C37E4;
EntityBoneScimitarParts = 0x801C3E94;
2023-02-18 22:01:39 +00:00
EntityAxeKnight = 0x801C45BC;
EntityAxeKnightThrowingAxe = 0x801C4D18;
EntityBloodSplatter = 0x801C4EAC;
2023-05-06 01:16:56 +00:00
EntityBloodyZombie = 0x801C5568;
2023-02-18 22:01:39 +00:00
EntitySkeleton = 0x801C5FC4;
EntitySpittleBone = 0x801C672C;
2023-08-31 16:31:55 +00:00
EntityRotateSpittlebone = 0x801C6B24;
2023-02-18 22:01:39 +00:00
EntitySpittleBoneSpit = 0x801C6C6C;
EntitySubWeaponContainer = 0x801C7048;
2023-05-06 01:16:56 +00:00
EntityBloodSkeleton = 0x801C7958;
EntityIsNearPlayer2 = 0x801C7CF0;
2023-02-18 22:01:39 +00:00
EntityMagicallySealedDoor = 0x801C7D68;
2023-05-06 01:16:56 +00:00
EntityStageNamePopup = 0x801C8CAC;
UnkPolyFunc2 = 0x801CA07C;
2023-05-06 01:16:56 +00:00
EntityLifeUpSpawn = 0x801CA160;
Rename Stage Layout Functions and Vars Uniformly (#1162) This change renames functions and global stage variables uniformly across the stages so that these functions can be pulled out and shared across all of the stages. Based on some other tests there are 12 or so functions that this will allow to be pulled out of each stage. Since these implementations are shared, an additional 12 asm functions can be eliminated in a subsequent pass. **Vars** * `g_pStObjLayoutHorizontal` - a horizontally sorted array of stage entities * `g_pStObjLayoutVertical` - a vertically sorted array of stage entities * `g_LayoutObjHorizontal` - a pointer to a `LayoutEntity` in `g_pStObjLayoutHorizontal` * `g_LayoutObjVertical` - a pointer to a `LayoutEntity` in `g_pStObjLayoutVertical` * `g_LayoutObjPosHorizontal` - the direction last traversed in `g_LayoutObjHorizontal` * `g_LayoutObjPosVertical` - the direction last traversed in `g_pStObjLayoutVertical ` **Functions** * `FindFirstEntityToTheRight` - given an `x` position, update `g_LayoutObjHorizontal` with the first entity to the right of `x` * `FindFirstEntityToTheLeft` - given a `x` position, update `g_LayoutObjHorizontal` with the first entity to the left of `x` (backwards) * `CreateEntitiesToTheRight` - given an `x` position, create all entities to the right (mutates `g_LayoutObjHorizontal`) * `CreateEntitiesToTheLeft` - given an `x` position, create all entities to the left (mutates `g_LayoutObjHorizontal`) * `FindFirstEntityAbove` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the above of `y` * `FindFirstEntityBelow` - given an `y` position, update `g_LayoutObjVertical ` with the first entity to the below of `y` * `CreateEntitiesAbove` - given an `y` position, create all entities above (mutates `g_LayoutObjVertical`) * `CreateEntitiesBelow` - given an `y` position, create all entities beneath (mutates `g_LayoutObjVertical`) * `UpdateRoomPosition` - look at the current game loop scroll delta and create any entities given the room layout I believe all of these implementations are shared across all stages (including `InitRoomEntities`, and two more `CreateEntity` functions) (in my initial tests I had a small difference in `DER`, but I believe that had to do with an incorrect symbol table change). Co-authored-by: Jonathan Hohle <jon@ttkb.co>
2024-05-22 22:34:41 +00:00
g_LayoutObjHorizontal = 0x801CAA74;
g_LayoutObjVertical = 0x801CAA78;
g_LayoutObjPosHorizontal = 0x801CAA7C;
g_LayoutObjPosVertical = 0x801CAA80;
g_Dialogue = 0x801CB688;
g_ItemIconSlots = 0x801CB740;