mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Document object_obj_tokeidai and improve documentation on ovl_Obj_Tokeidai (#569)
* Document object_obj_tokeidai XML * Change "outer ring" to "minute ring" to better describe what it is * Rename "sun and moon disk" to "sun and moon panel" * Preserve ordering * Standardize on "staircase to rooftop" * Standardize on calling it "Exterior Gear" to contrast with all the interior stuff * Lots more documentation * Make it more obvious that the macros refer to clock time, not regular time * More documentation and spacing * Better document counterweight draw * Respond to Anghelo's and engineer's reviews * Split tokeidai into separate files * Revert "Split tokeidai into separate files" This reverts commit eed1fe5ff63c9dee7a6799b42090b27d62f60773.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -6,17 +6,17 @@
|
||||
#define OBJ_TOKEIDAI_TYPE(thisx) (((thisx)->params & 0xF000) >> 12)
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ OBJ_TOKEIDAI_TYPE_TOWER_GEAR_CLOCK_TOWN,
|
||||
/* 0 */ OBJ_TOKEIDAI_TYPE_EXTERIOR_GEAR_CLOCK_TOWN,
|
||||
/* 1 */ OBJ_TOKEIDAI_TYPE_UNUSED_WALL,
|
||||
/* 2 */ OBJ_TOKEIDAI_TYPE_TOWER_CLOCK_CLOCK_TOWN,
|
||||
/* 3 */ OBJ_TOKEIDAI_TYPE_COUNTERWEIGHT_CLOCK_TOWN,
|
||||
/* 4 */ OBJ_TOKEIDAI_TYPE_TOWER_GEAR_TERMINA_FIELD,
|
||||
/* 4 */ OBJ_TOKEIDAI_TYPE_EXTERIOR_GEAR_TERMINA_FIELD,
|
||||
/* 5 */ OBJ_TOKEIDAI_TYPE_TOWER_CLOCK_TERMINA_FIELD,
|
||||
/* 6 */ OBJ_TOKEIDAI_TYPE_COUNTERWEIGHT_TERMINA_FIELD,
|
||||
/* 8 */ OBJ_TOKEIDAI_TYPE_TOWER_WALLS_TERMINA_FIELD = 8,
|
||||
/* 9 */ OBJ_TOKEIDAI_TYPE_WALL_CLOCK,
|
||||
/* 10 */ OBJ_TOKEIDAI_TYPE_SMALL_WALL_CLOCK,
|
||||
/* 11 */ OBJ_TOKEIDAI_TYPE_STAIRCASE_INTO_TOWER,
|
||||
/* 11 */ OBJ_TOKEIDAI_TYPE_STAIRCASE_TO_ROOFTOP,
|
||||
} ObjTokeidaiType;
|
||||
|
||||
struct ObjTokeidai;
|
||||
@@ -27,9 +27,9 @@ typedef struct ObjTokeidai {
|
||||
/* 0x000 */ Actor actor;
|
||||
/* 0x144 */ Gfx* opaDList;
|
||||
/* 0x148 */ Gfx* xluDList;
|
||||
/* 0x14C */ s16 outerRingOrGearRotation;
|
||||
/* 0x14E */ s16 outerRingOrGearRotationalVelocity;
|
||||
/* 0x150 */ s16 outerRingOrGearRotationTimer;
|
||||
/* 0x14C */ s16 minuteRingOrExteriorGearRotation;
|
||||
/* 0x14E */ s16 minuteRingOrExteriorGearRotationalVelocity;
|
||||
/* 0x150 */ s16 minuteRingOrExteriorGearRotationTimer;
|
||||
/* 0x152 */ s16 clockFaceRotation;
|
||||
/* 0x154 */ union {
|
||||
s16 clockFaceRotationalVelocity;
|
||||
@@ -44,9 +44,9 @@ typedef struct ObjTokeidai {
|
||||
s16 counterweightRotationalAcceleration;
|
||||
s16 aerialClockFaceSpeed;
|
||||
};
|
||||
/* 0x158 */ s32 sunMoonDiskRotation;
|
||||
/* 0x158 */ s32 sunMoonPanelRotation;
|
||||
/* 0x15C */ union {
|
||||
s16 sunMoonDiskRotationalVelocity;
|
||||
s16 sunMoonPanelRotationalVelocity;
|
||||
s16 fallingClockFaceRotationalVelocity;
|
||||
};
|
||||
/* 0x15E */ s16 yTranslation;
|
||||
@@ -58,7 +58,7 @@ typedef struct ObjTokeidai {
|
||||
s32 clockHour;
|
||||
s32 spotlightIntensity;
|
||||
};
|
||||
/* 0x170 */ u16 currentTime;
|
||||
/* 0x170 */ u16 clockTime; // can differ from the actual time, e.g., in cutscenes
|
||||
/* 0x174 */ ObjTokeidaiActionFunc actionFunc;
|
||||
} ObjTokeidai; // size = 0x178
|
||||
|
||||
|
||||
Reference in New Issue
Block a user