diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2026-02-22 18:48:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-22 18:48:27 +0100 |
| commit | f2cb5ecb2f7c174d69c61ab1dfa6f7784050014e (patch) | |
| tree | e4a694cc74cfd7022e0feba68f64709ff0d9c083 /src | |
| parent | 8b30a773460b8dce1bccc1faee9ab02ed15b6d46 (diff) | |
Assets system: format extracted actor params (and EnDoor params) (#2698)
* Assets system: format extracted actor params (and EnDoor params)
* and actor list too...
* and actor list required inclues too...
* ENDOOR_PARAMS_GENERAL, ENDOOR_PARAMS -> ENDOOR_PARAMS, ENDOOR_PARAMS_NODATA
Diffstat (limited to 'src')
| -rw-r--r-- | src/overlays/actors/ovl_En_Door/z_en_door.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/overlays/actors/ovl_En_Door/z_en_door.h b/src/overlays/actors/ovl_En_Door/z_en_door.h index 60ed932ea..c02cd8eca 100644 --- a/src/overlays/actors/ovl_En_Door/z_en_door.h +++ b/src/overlays/actors/ovl_En_Door/z_en_door.h @@ -33,6 +33,12 @@ #define ENDOOR_GET_CHECKABLE_TEXT_ID(thisx) PARAMS_GET_U((thisx)->params, 0, 6) +#define ENDOOR_PARAMS(type, isDoubleDoor, data) (((type) << 7) | (((isDoubleDoor) ? 1 : 0) << 6) | (data)) +#define ENDOOR_PARAMS_NODATA(type, isDoubleDoor) (ENDOOR_PARAMS(type, isDoubleDoor, 0x3F)) +#define ENDOOR_PARAMS_LOCKED(isDoubleDoor, switchFlag) (ENDOOR_PARAMS(DOOR_LOCKED, isDoubleDoor, switchFlag)) +#define ENDOOR_PARAMS_CHECKABLE(isDoubleDoor, textIdMinus0x0200) (ENDOOR_PARAMS(DOOR_CHECKABLE, isDoubleDoor, textIdMinus0x0200)) +#define ENDOOR_PARAMS_EVENING(isDoubleDoor, textIdMinus0x0200) (ENDOOR_PARAMS(DOOR_EVENING, isDoubleDoor, textIdMinus0x0200)) + typedef enum EnDoorType { /* 0x00 */ DOOR_ROOMLOAD, // loads rooms /* 0x01 */ DOOR_LOCKED, // small key locked door |
