@@ -274,9 +274,32 @@ def StoreCurrentSystemSpaceStationEndpoint(
274274 ): ...
275275
276276
277+ @partial_struct
278+ class cGcPlayerShipOwnership (Structure ):
279+ # Both these found at the top of cGcPlayerShipOwnership::UpdateMeshRefresh
280+ mbShouldRefreshMesh : Annotated [bool , Field (c_bool , 0xA690 )]
281+ mMeshRefreshState : Annotated [int , Field (c_uint32 , 0xA694 )]
282+
283+ @function_hook (
284+ "48 89 5C 24 ? 55 56 57 41 54 41 56 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 45"
285+ )
286+ def UpdateMeshRefresh (self , this : "_Pointer[cGcPlayerShipOwnership]" ): ...
287+
288+ @function_hook (
289+ "48 8B C4 55 53 56 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 80 B9 ? ? ? ? ? 48 8B F1"
290+ )
291+ def Update (
292+ self ,
293+ this : "_Pointer[cGcPlayerShipOwnership]" ,
294+ lfTimestep : Annotated [float , c_float ],
295+ ): ...
296+
297+
277298@partial_struct
278299class cGcGameState (Structure ):
279300 mPlayerState : Annotated [cGcPlayerState , 0xA950 ]
301+ # Found in cGcGameState:: Update
302+ mPlayerShipOwnership : Annotated [cGcPlayerShipOwnership , 0xA2BD0 ]
280303
281304 @function_hook ("48 89 5C 24 ? 48 89 74 24 ? 48 89 7C 24 ? 88 54 24" )
282305 def OnSaveProgressCompleted (
@@ -292,11 +315,18 @@ def OnSaveProgressCompleted(
292315 def LoadFromPersistentStorage (
293316 self ,
294317 this : "_Pointer[cGcGameState]" ,
295- leSlot : c_uint32 ,
318+ leSlot : Annotated [ int , c_uint32 ] ,
296319 a3 : c_int32 ,
297320 lbNetworkClientLoad : Annotated [bool , c_bool ],
298321 ) -> c_uint64 : ...
299322
323+ @function_hook (
324+ "48 8B C4 48 89 58 ? 48 89 70 ? 48 89 78 ? 55 41 54 41 55 41 56 41 57 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? F3 0F 10 91"
325+ )
326+ def Update (
327+ self , this : "_Pointer[cGcGameState]" , lfTimeStep : Annotated [float , c_float ]
328+ ): ...
329+
300330
301331class cTkFSM (Structure ):
302332 @function_hook (
0 commit comments