@@ -66,10 +66,10 @@ static void CallbackObjectSetHitboxPos(void *objectPtr_, PixelPos *posOrNull);
66
66
static void CallbackObjectSetPositionBounds (void * objectPtr_ , PixelPos * from , PixelPos * to );
67
67
static void CallbackObjectGetHitboxCenter (void * objectPtr_ , PixelPos * out );
68
68
static s32 CallbackObjectMoveReal (void * objectPtr_ , PixelPos * pos );
69
- extern void CallbackObjectGetPosHeightAndUnk (void * objectPtr_ , u32 * height , u32 * unk );
70
- extern void CallbackObjectSetPosHeight (void * objectPtr_ , u32 height );
71
- extern void CallbackObjectGetDirection (void * objectPtr_ , s8 * dir );
72
- extern void CallbackObjectSetDirection (void * objectPtr_ , s32 dir_ );
69
+ static void CallbackObjectGetPosHeightAndUnk (void * objectPtr_ , u32 * height , u32 * unk );
70
+ static void CallbackObjectSetPosHeight (void * objectPtr_ , u32 height );
71
+ static void CallbackObjectGetDirection (void * objectPtr_ , s8 * dir );
72
+ static void CallbackObjectSetDirection (void * objectPtr_ , s32 dir_ );
73
73
extern void CallbackObjectSetEventIndex (void * objectPtr_ , u16 a1 );
74
74
extern void CallbackObjectSetUnk_80AC998 (void * objectPtr_ , s32 a1_ , s32 a2 );
75
75
extern bool8 CallbackObjectSpriteRelatedCheck_80AC9B8 (void * objectPtr_ );
@@ -170,8 +170,9 @@ static const struct ScriptCommand gUnknown_8118350[] = {
170
170
JUMP_LABEL (0 ),
171
171
};
172
172
173
- const u8 gUnknown_81183A0 [] = {
174
- 0xFF , 0xFF , 0x0 , 0x8 , 0x1 , 0x8 , 0x0 , 0x10 , 0x1 , 0x10 , 0x2 , 0x10 , 0x3 , 0x10 , 0x0 , 0x8 , 0x1 , 0x8 , 0x2 , 0x8 , 0x3 , 0x8 , 0x4 , 0x8 , 0x5 , 0x8 , 0x6 , 0x8 , 0x7 , 0x8 , 0x8 , 0x8 , 0x9 , 0x8 , 0xA , 0x8 , 0xB , 0x8 , 0xC , 0x8 , 0xD , 0x8 , 0xE , 0x8 , 0xF , 0x8 , 0x0 , 0x0 };
173
+ const s16 gUnknown_81183A0 [24 ] = {
174
+ 0xFFFF , 0x800 , 0x801 , 0x1000 , 0x1001 , 0x1002 , 0x1003 , 0x800 , 0x801 , 0x802 , 0x803 , 0x804 , 0x805 , 0x806 , 0x807 , 0x808 , 0x809 , 0x80A , 0x80B , 0x80C , 0x80D , 0x80E , 0x80F , 0x0
175
+ };
175
176
176
177
void AllocGroundObjects (void )
177
178
{
@@ -910,3 +911,39 @@ static s32 CallbackObjectMoveReal(void *objectPtr_, PixelPos *pos)
910
911
struct GroundObject * objectPtr = objectPtr_ ;
911
912
return TryMoveObjectRelative_80AC6AC (objectPtr , pos );
912
913
}
914
+
915
+ static void CallbackObjectGetPosHeightAndUnk (void * livesPtr_ , u32 * height , u32 * unk )
916
+ {
917
+ struct GroundObject * livesPtr = livesPtr_ ;
918
+
919
+ * height = livesPtr -> unk134 .x ;
920
+ * unk = livesPtr -> unk134 .y ;
921
+ }
922
+
923
+ static void CallbackObjectSetPosHeight (void * livesPtr_ , u32 height )
924
+ {
925
+ struct GroundObject * livesPtr = livesPtr_ ;
926
+
927
+ livesPtr -> unk134 .x = height ;
928
+ }
929
+
930
+ static void CallbackObjectGetDirection (void * livesPtr_ , s8 * direction )
931
+ {
932
+ struct GroundObject * livesPtr = livesPtr_ ;
933
+
934
+ * direction = livesPtr -> unk120 ;
935
+ }
936
+
937
+ static void CallbackObjectSetDirection (void * livesPtr_ , s32 direction )
938
+ {
939
+ struct GroundObject * livesPtr = livesPtr_ ;
940
+ s32 dir = (s8 ) direction ;
941
+
942
+ if (dir != -1 ) {
943
+ livesPtr -> unk120 = dir ;
944
+ }
945
+ }
946
+
947
+
948
+
949
+
0 commit comments