From e979ef74e4203d8d69ef13b8d59937de026cc709 Mon Sep 17 00:00:00 2001 From: domthewiz <81938723+Domthewiz@users.noreply.github.com> Date: Mon, 26 Oct 2026 16:49:45 -0400 Subject: [PATCH] Refactor ActiveState to ObjBlockInfo and clean up code Replaced ActiveState enum with ObjBlockInfo and removed DestroyedParam structs. --- map_obj/ActorBlockBase.h | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/map_obj/ActorBlockBase.h b/map_obj/ActorBlockBase.h index 4253884..c6cd607 100644 --- a/map_obj/ActorBlockBase.h +++ b/map_obj/ActorBlockBase.h @@ -21,34 +21,14 @@ class ActorBlockBase : public ChangeBlockCoinBase /** * @brief Persistent state of the block across area reloads. */ - enum ActiveState + enum ObjBlockInfo { - cActiveState_Active = 0, - cActiveState_Used = 1, - cActiveState_Destroyed = 2, - cActiveState_MultiCoinExpired = 3 + cObjBlockInfo_Active = 0, + cObjBlockInfo_Used = 1, + cObjBlockInfo_Destroyed = 2, + cObjBlockInfo_MultiCoinExpired = 3 }; - struct DestroyedParam - { - sead::Vector2f position; - u8 destroy_direction; - u8 state_type; - u8 _a; - s8 player_no; - u16 fragment_idx; - }; - static_assert(sizeof(DestroyedParam) == 0x10, "DestroyedParam size mismatch"); - - struct DestroyedParam2 - { - sead::Vector2f position; - u8 destroy_direction; - s8 player_no; - u16 fragment_idx; - }; - static_assert(sizeof(DestroyedParam2) == 0xC, "DestroyedParam2 size mismatch"); - public: ActorBlockBase(const ActorCreateParam& param); ~ActorBlockBase() override { }