diff --git a/dwarf/SB04_Multi_Sku/Engine/Game/zSmoke.cpp b/dwarf/SB04_Multi_Sku/Engine/Game/zSmoke.cpp index 03a1514..759a3c2 100644 --- a/dwarf/SB04_Multi_Sku/Engine/Game/zSmoke.cpp +++ b/dwarf/SB04_Multi_Sku/Engine/Game/zSmoke.cpp @@ -206,43 +206,43 @@ typedef struct rxHeapFreeBlock; typedef struct RwRGBAReal; typedef struct RwObject; -typedef uint32(*type_0)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); -typedef void(*type_4)(xAnimState*, xAnimSingle*, void*); -typedef void(*type_9)(void*); -typedef void(*type_11)(xAnimPlay*, xQuat*, xVec3*, int32); -typedef void(*type_15)(xAnimPlay*, xAnimState*, void*); -typedef void(*type_17)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef RpAtomic*(*type_20)(RpAtomic*); -typedef RpWorldSector*(*type_23)(RpWorldSector*); -typedef xBase*(*type_28)(uint32); -typedef uint32(*type_33)(xAnimTransition*, xAnimSingle*, void*); -typedef void(*type_35)(xEnt*, xScene*, float32, xEntCollis*); -typedef int8*(*type_36)(xBase*); -typedef void(*type_37)(xEnt*, xScene*, float32, xEntFrame*); -typedef int8*(*type_42)(uint32); -typedef void(*type_49)(xEnt*, xScene*, float32); -typedef uint32(*type_53)(xEnt*, xEnt*, xScene*, float32, xCollis*); -typedef void(*type_55)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef void(*type_56)(xEnt*); -typedef uint32(*type_57)(void*, void*); -typedef RwCamera*(*type_58)(RwCamera*); -typedef RwCamera*(*type_59)(RwCamera*); -typedef int32(*type_63)(uint8*, int32, ptank_pool&, float32, void*); -typedef void(*type_64)(xEnt*); -typedef void(*type_72)(xEnt*, xVec3*); -typedef uint32(*type_73)(RxPipelineNode*, uint32, uint32, void*); -typedef void(*type_76)(RwResEntry*); -typedef int32(*type_77)(RxPipelineNode*, RxPipeline*); -typedef RwObjectHasFrame*(*type_78)(RwObjectHasFrame*); -typedef void(*type_79)(RxPipelineNode*); -typedef int32(*type_84)(RxPipelineNode*); -typedef void(*type_87)(RxNodeDefinition*); -typedef int32(*type_90)(RxNodeDefinition*); -typedef void(*type_91)(xEnt*, xVec3*, xMat4x3*); -typedef int32(*type_92)(RxPipelineNode*, RxPipelineNodeParam*); -typedef void(*type_95)(xMemPool*, void*); -typedef RpClump*(*type_97)(RpClump*, void*); -typedef int32(*type_102)(uint8*, int32, ptank_pool&, float32, void*); +typedef uint32 (*type_0)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); +typedef void (*type_4)(xAnimState*, xAnimSingle*, void*); +typedef void (*type_9)(void*); +typedef void (*type_11)(xAnimPlay*, xQuat*, xVec3*, int32); +typedef void (*type_15)(xAnimPlay*, xAnimState*, void*); +typedef void (*type_17)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef RpAtomic* (*type_20)(RpAtomic*); +typedef RpWorldSector* (*type_23)(RpWorldSector*); +typedef xBase* (*type_28)(uint32); +typedef uint32 (*type_33)(xAnimTransition*, xAnimSingle*, void*); +typedef void (*type_35)(xEnt*, xScene*, float32, xEntCollis*); +typedef int8* (*type_36)(xBase*); +typedef void (*type_37)(xEnt*, xScene*, float32, xEntFrame*); +typedef int8* (*type_42)(uint32); +typedef void (*type_49)(xEnt*, xScene*, float32); +typedef uint32 (*type_53)(xEnt*, xEnt*, xScene*, float32, xCollis*); +typedef void (*type_55)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef void (*type_56)(xEnt*); +typedef uint32 (*type_57)(void*, void*); +typedef RwCamera* (*type_58)(RwCamera*); +typedef RwCamera* (*type_59)(RwCamera*); +typedef int32 (*type_63)(uint8*, int32, ptank_pool&, float32, void*); +typedef void (*type_64)(xEnt*); +typedef void (*type_72)(xEnt*, xVec3*); +typedef uint32 (*type_73)(RxPipelineNode*, uint32, uint32, void*); +typedef void (*type_76)(RwResEntry*); +typedef int32 (*type_77)(RxPipelineNode*, RxPipeline*); +typedef RwObjectHasFrame* (*type_78)(RwObjectHasFrame*); +typedef void (*type_79)(RxPipelineNode*); +typedef int32 (*type_84)(RxPipelineNode*); +typedef void (*type_87)(RxNodeDefinition*); +typedef int32 (*type_90)(RxNodeDefinition*); +typedef void (*type_91)(xEnt*, xVec3*, xMat4x3*); +typedef int32 (*type_92)(RxPipelineNode*, RxPipelineNodeParam*); +typedef void (*type_95)(xMemPool*, void*); +typedef RpClump* (*type_97)(RpClump*, void*); +typedef int32 (*type_102)(uint8*, int32, ptank_pool&, float32, void*); typedef RwV3d type_1[8]; typedef xVec3 type_2[4]; @@ -321,428 +321,428 @@ typedef xVec3 type_110[60]; struct xAnimState { - xAnimState* Next; - int8* Name; - uint32 ID; - uint32 Flags; - uint32 UserFlags; - float32 Speed; - xAnimFile* Data; - xAnimEffect* Effects; - xAnimTransitionList* Default; - xAnimTransitionList* List; - float32* BoneBlend; - float32* TimeSnap; - float32 FadeRecip; - uint16* FadeOffset; - void* CallbackData; - xAnimMultiFile* MultiFile; - void(*BeforeEnter)(xAnimPlay*, xAnimState*, void*); - void(*StateCallback)(xAnimState*, xAnimSingle*, void*); - void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); + xAnimState* Next; + int8* Name; + uint32 ID; + uint32 Flags; + uint32 UserFlags; + float32 Speed; + xAnimFile* Data; + xAnimEffect* Effects; + xAnimTransitionList* Default; + xAnimTransitionList* List; + float32* BoneBlend; + float32* TimeSnap; + float32 FadeRecip; + uint16* FadeOffset; + void* CallbackData; + xAnimMultiFile* MultiFile; + void (*BeforeEnter)(xAnimPlay*, xAnimState*, void*); + void (*StateCallback)(xAnimState*, xAnimSingle*, void*); + void (*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; struct RxClusterDefinition { - int8* name; - uint32 defaultStride; - uint32 defaultAttributes; - int8* attributeSet; + int8* name; + uint32 defaultStride; + uint32 defaultAttributes; + int8* attributeSet; }; enum _zPlayerWallJumpState { - k_WALLJUMP_NOT, - k_WALLJUMP_LAUNCH, - k_WALLJUMP_FLIGHT, - k_WALLJUMP_LAND, - k_WALLJUMP_STUCK, - k_WALLJUMP_FALL + k_WALLJUMP_NOT, + k_WALLJUMP_LAUNCH, + k_WALLJUMP_FLIGHT, + k_WALLJUMP_LAND, + k_WALLJUMP_STUCK, + k_WALLJUMP_FALL }; struct xUpdateCullEnt { - uint16 index; - int16 groupIndex; - uint32(*update_cull_cb)(void*, void*); - void* cbdata; - xUpdateCullEnt* nextInGroup; + uint16 index; + int16 groupIndex; + uint32 (*update_cull_cb)(void*, void*); + void* cbdata; + xUpdateCullEnt* nextInGroup; }; struct ptank_pool__pos_color_size_uv2 : ptank_pool { - xVec3* pos; - xColor_tag* color; - xVec2* size; - xVec2* uv; + xVec3* pos; + xColor_tag* color; + xVec2* size; + xVec2* uv; }; struct _zPortal : xBase { - xPortalAsset* passet; + xPortalAsset* passet; }; struct xAnimSingle { - uint32 SingleFlags; - xAnimState* State; - float32 Time; - float32 CurrentSpeed; - float32 BilinearLerp[2]; - xAnimEffect* Effect; - uint32 ActiveCount; - float32 LastTime; - xAnimActiveEffect* ActiveList; - xAnimPlay* Play; - xAnimTransition* Sync; - xAnimTransition* Tran; - xAnimSingle* Blend; - float32 BlendFactor; - xVec3 PhysDisp; - float32 YawDisp; - uint32 pad[1]; + uint32 SingleFlags; + xAnimState* State; + float32 Time; + float32 CurrentSpeed; + float32 BilinearLerp[2]; + xAnimEffect* Effect; + uint32 ActiveCount; + float32 LastTime; + xAnimActiveEffect* ActiveList; + xAnimPlay* Play; + xAnimTransition* Sync; + xAnimTransition* Tran; + xAnimSingle* Blend; + float32 BlendFactor; + xVec3 PhysDisp; + float32 YawDisp; + uint32 pad[1]; }; struct xEnt : xBase { - xEntAsset* asset; - uint16 idx; - uint8 flags; - uint8 miscflags; - uint8 subType; - uint8 pflags; - uint16 moreFlags; - struct - { - uint8 _isCulled : 2; - uint8 collisionEventReceived : 2; - }; - uint8 driving_count; - uint8 num_ffx; - uint8 collType; - uint8 collLev; - uint8 chkby; - uint8 penby; - void(*visUpdate)(xEnt*); - xModelInstance* model; - xModelInstance* collModel; - xModelInstance* camcollModel; - void(*update)(xEnt*, xScene*, float32); - void(*endUpdate)(xEnt*, xScene*, float32); - void(*bupdate)(xEnt*, xVec3*); - void(*move)(xEnt*, xScene*, float32, xEntFrame*); - void(*render)(xEnt*); - xEntFrame* frame; - xEntCollis* collis; - xGridBound gridb; - xBound bound; - void(*transl)(xEnt*, xVec3*, xMat4x3*); - xFFX* ffx; - xEnt* driver; - xEnt* driven; - int32 driveMode; - xShadowSimpleCache* simpShadow; - xEntShadow* entShadow; - anim_coll_data* anim_coll; - void* user_data; + xEntAsset* asset; + uint16 idx; + uint8 flags; + uint8 miscflags; + uint8 subType; + uint8 pflags; + uint16 moreFlags; + struct + { + uint8 _isCulled : 2; + uint8 collisionEventReceived : 2; + }; + uint8 driving_count; + uint8 num_ffx; + uint8 collType; + uint8 collLev; + uint8 chkby; + uint8 penby; + void (*visUpdate)(xEnt*); + xModelInstance* model; + xModelInstance* collModel; + xModelInstance* camcollModel; + void (*update)(xEnt*, xScene*, float32); + void (*endUpdate)(xEnt*, xScene*, float32); + void (*bupdate)(xEnt*, xVec3*); + void (*move)(xEnt*, xScene*, float32, xEntFrame*); + void (*render)(xEnt*); + xEntFrame* frame; + xEntCollis* collis; + xGridBound gridb; + xBound bound; + void (*transl)(xEnt*, xVec3*, xMat4x3*); + xFFX* ffx; + xEnt* driver; + xEnt* driven; + int32 driveMode; + xShadowSimpleCache* simpShadow; + xEntShadow* entShadow; + anim_coll_data* anim_coll; + void* user_data; }; struct xBase { - uint32 id; - uint8 baseType; - uint8 linkCount; - uint16 baseFlags; - xLinkAsset* link; - void(*eventFunc)(xBase*, xBase*, uint32, float32*, xBase*, uint32); + uint32 id; + uint8 baseType; + uint8 linkCount; + uint16 baseFlags; + xLinkAsset* link; + void (*eventFunc)(xBase*, xBase*, uint32, float32*, xBase*, uint32); }; struct tri_data_0 : tri_data_1 { - xVec3 loc; - float32 yaw; - xCollis* coll; - xMat4x3 trioldmat; + xVec3 loc; + float32 yaw; + xCollis* coll; + xMat4x3 trioldmat; }; struct xAnimTable { - int8* Name; - xAnimTransition* TransitionList; - xAnimState* StateList; - uint32 AnimIndex; - uint32 MorphIndex; - uint32 UserFlags; + int8* Name; + xAnimTransition* TransitionList; + xAnimState* StateList; + uint32 AnimIndex; + uint32 MorphIndex; + uint32 UserFlags; }; struct _class_0 { - union - { - xClumpCollBSPVertInfo i; - uint32 rawIdx; - RwV3d* p; - }; + union + { + xClumpCollBSPVertInfo i; + uint32 rawIdx; + RwV3d* p; + }; }; struct xDynAsset : xBaseAsset { - uint32 type; - uint16 version; - uint16 handle; + uint32 type; + uint16 version; + uint16 handle; }; struct zSmokeEmitter : xBase { - int32 system_id; - asset_type* asset; - xMat4x3 emit_mat; - float32 emitted; - int32 flags; - xVec3 vel_dir; - int32 max_frame; - float32 du; - float32 dv; - float32 age_rate_min; - float32 age_rate_range; - float32 dr; - float32 dg; - float32 db; - float32 da; - - void update(float32 dt); - void load(asset_type& a); + int32 system_id; + asset_type* asset; + xMat4x3 emit_mat; + float32 emitted; + int32 flags; + xVec3 vel_dir; + int32 max_frame; + float32 du; + float32 dv; + float32 age_rate_min; + float32 age_rate_range; + float32 dr; + float32 dg; + float32 db; + float32 da; + + void update(float32 dt); + void load(asset_type& a); }; struct xModelInstance { - xModelInstance* Next; - xModelInstance* Parent; - xModelPool* Pool; - xAnimPlay* Anim; - RpAtomic* Data; - xModelPipe Pipe; - uint8 InFrustum; - uint8 TrueClip; - int8 sortBias; - uint8 modelpad; - float32 RedMultiplier; - float32 GreenMultiplier; - float32 BlueMultiplier; - float32 Alpha; - float32 FadeStart; - float32 FadeEnd; - xSurface* Surf; - xModelBucket** Bucket; - xModelInstance* BucketNext; - xLightKit* LightKit; - void* Object; - uint16 Flags; - uint8 BoneCount; - uint8 BoneIndex; - uint8* BoneRemap; - RwMatrixTag* Mat; - xVec3 Scale; - xBox animBound; - xBox combinedAnimBound; - uint32 modelID; - uint32 shadowID; - RpAtomic* shadowmapAtomic; - _class_4 anim_coll; + xModelInstance* Next; + xModelInstance* Parent; + xModelPool* Pool; + xAnimPlay* Anim; + RpAtomic* Data; + xModelPipe Pipe; + uint8 InFrustum; + uint8 TrueClip; + int8 sortBias; + uint8 modelpad; + float32 RedMultiplier; + float32 GreenMultiplier; + float32 BlueMultiplier; + float32 Alpha; + float32 FadeStart; + float32 FadeEnd; + xSurface* Surf; + xModelBucket** Bucket; + xModelInstance* BucketNext; + xLightKit* LightKit; + void* Object; + uint16 Flags; + uint8 BoneCount; + uint8 BoneIndex; + uint8* BoneRemap; + RwMatrixTag* Mat; + xVec3 Scale; + xBox animBound; + xBox combinedAnimBound; + uint32 modelID; + uint32 shadowID; + RpAtomic* shadowmapAtomic; + _class_4 anim_coll; }; struct RpInterpolator { - int32 flags; - int16 startMorphTarget; - int16 endMorphTarget; - float32 time; - float32 recipTime; - float32 position; + int32 flags; + int16 startMorphTarget; + int16 endMorphTarget; + float32 time; + float32 recipTime; + float32 position; }; struct _tagxPad { - uint8 value[22]; - uint8 last_value[22]; - uint32 on; - uint32 pressed; - uint32 released; - _tagPadAnalog analog1; - _tagPadAnalog analog2; - _tagPadState state; - uint32 flags; - int16 port; - int16 slot; - _tagiPad context; - float32 al2d_timer; - float32 ar2d_timer; - float32 d_timer; - float32 up_tmr[22]; - float32 down_tmr[22]; - analog_data analog[2]; + uint8 value[22]; + uint8 last_value[22]; + uint32 on; + uint32 pressed; + uint32 released; + _tagPadAnalog analog1; + _tagPadAnalog analog2; + _tagPadState state; + uint32 flags; + int16 port; + int16 slot; + _tagiPad context; + float32 al2d_timer; + float32 ar2d_timer; + float32 d_timer; + float32 up_tmr[22]; + float32 down_tmr[22]; + analog_data analog[2]; }; struct xMemPool { - void* FreeList; - uint16 NextOffset; - uint16 Flags; - void* UsedList; - void(*InitCB)(xMemPool*, void*); - void* Buffer; - uint16 Size; - uint16 NumRealloc; - uint32 Total; + void* FreeList; + uint16 NextOffset; + uint16 Flags; + void* UsedList; + void (*InitCB)(xMemPool*, void*); + void* Buffer; + uint16 Size; + uint16 NumRealloc; + uint32 Total; }; struct zScene : xScene { - _zPortal* pendingPortal; - int32 num_base; - xBase** base; - uint32 num_update_base; - xBase** update_base; - int32 baseCount[141]; - xBase* baseList[141]; - _zEnv* zen; - zSceneParameters* parameters; - uint8 enableDrawing; + _zPortal* pendingPortal; + int32 num_base; + xBase** base; + uint32 num_update_base; + xBase** update_base; + int32 baseCount[141]; + xBase* baseList[141]; + _zEnv* zen; + zSceneParameters* parameters; + uint8 enableDrawing; }; enum RxNodeDefEditable { - rxNODEDEFCONST, - rxNODEDEFEDITABLE, - rxNODEDEFEDITABLEFORCEENUMSIZEINT = 0x7fffffff + rxNODEDEFCONST, + rxNODEDEFEDITABLE, + rxNODEDEFEDITABLEFORCEENUMSIZEINT = 0x7fffffff }; struct RwFrustumPlane { - RwPlane plane; - uint8 closestX; - uint8 closestY; - uint8 closestZ; - uint8 pad; + RwPlane plane; + uint8 closestX; + uint8 closestY; + uint8 closestZ; + uint8 pad; }; struct xUpdateCullGroup { - uint32 active; - uint16 startIndex; - uint16 endIndex; - xGroup* groupObject; + uint32 active; + uint16 startIndex; + uint16 endIndex; + xGroup* groupObject; }; struct xPortalAsset : xBaseAsset { - uint32 assetCameraID; - uint32 assetMarkerID; - float32 ang; - uint32 sceneID; + uint32 assetCameraID; + uint32 assetMarkerID; + float32 ang; + uint32 sceneID; }; struct xLightKitLight { - uint32 type; - RwRGBAReal color; - float32 matrix[16]; - float32 radius; - float32 angle; - RpLight* platLight; + uint32 type; + RwRGBAReal color; + float32 matrix[16]; + float32 radius; + float32 angle; + RpLight* platLight; }; enum xCamOrientType { - XCAM_ORIENT_INVALID = 0xffffffff, - XCAM_ORIENT_QUAT, - XCAM_ORIENT_EULER, - XCAM_ORIENT_MAX + XCAM_ORIENT_INVALID = 0xffffffff, + XCAM_ORIENT_QUAT, + XCAM_ORIENT_EULER, + XCAM_ORIENT_MAX }; struct xCoef3 { - xCoef x; - xCoef y; - xCoef z; + xCoef x; + xCoef y; + xCoef z; }; enum xSndEffect { - xSndEffect_NONE, - xSndEffect_CAVE, - xSndEffect_MAX_TYPES + xSndEffect_NONE, + xSndEffect_CAVE, + xSndEffect_MAX_TYPES }; struct xCollis { - uint32 flags; - uint32 oid; - void* optr; - xModelInstance* mptr; - float32 dist; - float32 test_dist; - xVec3 norm; - xVec3 tohit; - xVec3 depen; - xVec3 hdng; - union - { - _class_3 tuv; - tri_data_1 tri; - }; + uint32 flags; + uint32 oid; + void* optr; + xModelInstance* mptr; + float32 dist; + float32 test_dist; + xVec3 norm; + xVec3 tohit; + xVec3 depen; + xVec3 hdng; + union + { + _class_3 tuv; + tri_data_1 tri; + }; }; struct xJSPHeader { - int8 idtag[4]; - uint32 version; - uint32 jspNodeCount; - RpClump* clump; - xClumpCollBSPTree* colltree; - xJSPNodeInfo* jspNodeList; - uint32 stripVecCount; - RwV3d* stripVecList; - uint16 vertDataFlags; - uint16 vertDataStride; - xJSPNodeTree* nodetree; - xJSPNodeLight* nodelight; + int8 idtag[4]; + uint32 version; + uint32 jspNodeCount; + RpClump* clump; + xClumpCollBSPTree* colltree; + xJSPNodeInfo* jspNodeList; + uint32 stripVecCount; + RwV3d* stripVecList; + uint16 vertDataFlags; + uint16 vertDataStride; + xJSPNodeTree* nodetree; + xJSPNodeLight* nodelight; }; struct RwV3d { - float32 x; - float32 y; - float32 z; + float32 x; + float32 y; + float32 z; }; struct xAnimPlay { - xAnimPlay* Next; - uint16 NumSingle; - uint16 BoneCount; - xAnimSingle* Single; - void* Object; - xAnimTable* Table; - xMemPool* Pool; - xModelInstance* ModelInst; - void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); + xAnimPlay* Next; + uint16 NumSingle; + uint16 BoneCount; + xAnimSingle* Single; + void* Object; + xAnimTable* Table; + xMemPool* Pool; + xModelInstance* ModelInst; + void (*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; enum RwFogType { - rwFOGTYPENAFOGTYPE, - rwFOGTYPELINEAR, - rwFOGTYPEEXPONENTIAL, - rwFOGTYPEEXPONENTIAL2, - rwFOGTYPEFORCEENUMSIZEINT = 0x7fffffff + rwFOGTYPENAFOGTYPE, + rwFOGTYPELINEAR, + rwFOGTYPEEXPONENTIAL, + rwFOGTYPEEXPONENTIAL2, + rwFOGTYPEFORCEENUMSIZEINT = 0x7fffffff }; struct xJSPNodeInfo { - int32 originalMatIndex; - uint16 nodeFlags; - int16 sortOrder; + int32 originalMatIndex; + uint16 nodeFlags; + int16 sortOrder; }; struct zRewardsMgr @@ -751,101 +751,101 @@ struct zRewardsMgr struct RpTie { - RwLLLink lAtomicInWorldSector; - RpAtomic* apAtom; - RwLLLink lWorldSectorInAtomic; - RpWorldSector* worldSector; + RwLLLink lAtomicInWorldSector; + RpAtomic* apAtom; + RwLLLink lWorldSectorInAtomic; + RpWorldSector* worldSector; }; struct rxHeapBlockHeader { - rxHeapBlockHeader* prev; - rxHeapBlockHeader* next; - uint32 size; - rxHeapFreeBlock* freeEntry; - uint32 pad[4]; + rxHeapBlockHeader* prev; + rxHeapBlockHeader* next; + uint32 size; + rxHeapFreeBlock* freeEntry; + uint32 pad[4]; }; struct xModelPool { - xModelPool* Next; - uint32 NumMatrices; - xModelInstance* List; + xModelPool* Next; + uint32 NumMatrices; + xModelInstance* List; }; struct xVec3 { - union - { - RwV3d m_RwV3d; - float32 x; - }; - float32 y; - float32 z; - float32 a[3]; + union + { + RwV3d m_RwV3d; + float32 x; + }; + float32 y; + float32 z; + float32 a[3]; }; struct xAnimEffect { - xAnimEffect* Next; - uint16 Flags; - uint16 Probability; - float32 StartTime; - float32 EndTime; - uint32(*Callback)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); + xAnimEffect* Next; + uint16 Flags; + uint16 Probability; + float32 StartTime; + float32 EndTime; + uint32 (*Callback)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); }; struct RxIoSpec { - uint32 numClustersOfInterest; - RxClusterRef* clustersOfInterest; - RxClusterValidityReq* inputRequirements; - uint32 numOutputs; - RxOutputSpec* outputs; + uint32 numClustersOfInterest; + RxClusterRef* clustersOfInterest; + RxClusterValidityReq* inputRequirements; + uint32 numOutputs; + RxOutputSpec* outputs; }; struct xCamGroup { - xMat4x3 mat; - xVec3 vel; - float32 fov; - float32 fov_default; - int32 flags; - xCam* primary; - analog_data analog; - xCam* owned[32]; - int32 size; - int32 primary_index; - int32 child_flags; - int32 child_flags_mask; - xCamBlend* blend_cam[4]; + xMat4x3 mat; + xVec3 vel; + float32 fov; + float32 fov_default; + int32 flags; + xCam* primary; + analog_data analog; + xCam* owned[32]; + int32 size; + int32 primary_index; + int32 child_flags; + int32 child_flags_mask; + xCamBlend* blend_cam[4]; }; struct xVec4 { - float32 x; - float32 y; - float32 z; - float32 w; + float32 x; + float32 y; + float32 z; + float32 w; }; struct xEntAsset : xBaseAsset { - uint8 flags; - uint8 subtype; - uint8 pflags; - uint8 moreFlags; - uint32 surfaceID; - xVec3 ang; - xVec3 pos; - xVec3 scale; - float32 redMult; - float32 greenMult; - float32 blueMult; - float32 seeThru; - float32 seeThruSpeed; - uint32 modelInfoID; - uint32 animListID; + uint8 flags; + uint8 subtype; + uint8 pflags; + uint8 moreFlags; + uint32 surfaceID; + xVec3 ang; + xVec3 pos; + xVec3 scale; + float32 redMult; + float32 greenMult; + float32 blueMult; + float32 seeThru; + float32 seeThruSpeed; + uint32 modelInfoID; + uint32 animListID; }; struct zAssetPickupTable @@ -854,188 +854,188 @@ struct zAssetPickupTable struct RpAtomic { - RwObjectHasFrame object; - RwResEntry* repEntry; - RpGeometry* geometry; - RwSphere boundingSphere; - RwSphere worldBoundingSphere; - RpClump* clump; - RwLLLink inClumpLink; - RpAtomic*(*renderCallBack)(RpAtomic*); - RpInterpolator interpolator; - uint16 renderFrame; - uint16 pad; - RwLinkList llWorldSectorsInAtomic; - RxPipeline* pipeline; + RwObjectHasFrame object; + RwResEntry* repEntry; + RpGeometry* geometry; + RwSphere boundingSphere; + RwSphere worldBoundingSphere; + RpClump* clump; + RwLLLink inClumpLink; + RpAtomic* (*renderCallBack)(RpAtomic*); + RpInterpolator interpolator; + uint16 renderFrame; + uint16 pad; + RwLinkList llWorldSectorsInAtomic; + RxPipeline* pipeline; }; struct zPlayerGlobals { - xEntShadow entShadow_embedded; - xShadowSimpleCache simpShadow_embedded; - zGlobalSettings g; - zPlayerSettings* s; - zPlayerSettings sb; - zPlayerSettings patrick; - zPlayerSettings spongepat; - xLightKit* pPlayerLightKit; - xModelInstance* model_spongebob; - xModelInstance* model_patrick; - xModelInstance* model_spongepat; - xModelInstance* model_car; - uint32 Visible; - int32 Speed; - float32 SpeedMult; - int32 Sneak; - int32 Teeter; - float32 SlipFadeTimer; - int32 Slide; - float32 SlideTimer; - int32 Stepping; - int32 JumpState; - int32 LastJumpState; - float32 JumpTimer; - float32 LookAroundTimer; - uint32 LookAroundRand; - uint32 LastProjectile; - float32 DecelRun; - float32 DecelRunSpeed; - float32 HotsauceTimer; - float32 LeanLerp; - float32 ScareTimer; - xBase* ScareSource; - float32 CowerTimer; - float32 DamageTimer; - float32 SundaeTimer; - float32 ControlOffTimer; - float32 HelmetTimer; - uint32 WorldDisguise; - uint32 Bounced; - float32 FallDeathTimer; - float32 HeadbuttVel; - float32 HeadbuttTimer; - uint32 DoMeleeCheck; - float32 ForceSlipperyTimer; - float32 ForceSlipperyFriction; - float32 ShockRadius; - float32 ShockRadiusOld; - float32 Face_ScareTimer; - uint32 Face_ScareRandom; - uint32 Face_Event; - float32 Face_EventTimer; - float32 Face_PantTimer; - uint32 Face_AnimSpecific; - uint32 IdleRand; - float32 IdleMinorTimer; - float32 IdleMajorTimer; - float32 IdleSitTimer; - int32 Transparent; - zEnt* FireTarget; - uint32 PlayerIsFrozen; - uint32 ControlOff; - uint32 ControlOnEvent; - uint32 AutoMoveSpeed; - float32 AutoMoveDist; - xVec3 AutoMoveTarget; - xBase* AutoMoveObject; - zEnt* Diggable; - float32 DigTimer; - zPlayerCarryInfo carry; - zPlayerLassoInfo lassoInfo; - xModelTag BubbleWandTag[2]; - xModelInstance* model_wand; - xEntBoulder* bubblebowl[2]; - float32 bbowlInitVel; - zEntHangable* HangFound; - zEntHangable* HangEnt; - zEntHangable* HangEntLast; - xVec3 HangPivot; - xVec3 HangVel; - float32 HangLength; - xVec3 HangStartPos; - float32 HangStartLerp; - xModelTag HangPawTag[4]; - float32 HangPawOffset; - float32 HangElapsed; - float32 Jump_CurrGravity; - float32 Jump_HoldTimer; - float32 Jump_ChangeTimer; - int32 Jump_CanDouble; - int32 Jump_CanFloat; - int32 Jump_SpringboardStart; - zPlatform* Jump_Springboard; - int32 CanJump; - int32 CanBubbleSpin; - int32 CanBubbleBounce; - int32 CanBubbleBash; - int32 IsJumping; - int32 IsDJumping; - int32 IsBubbleSpinning; - int32 IsBubbleBouncing; - int32 IsBubbleBashing; - int32 IsBubbleBowling; - int32 WasDJumping; - _zPlayerWallJumpState WallJumpState; - int32 cheat_mode; - zRewardsMgr* rewardsMgr; - uint32 ManlinessPointsCurrentRange; - uint32 InvManlinessPoints; - uint32 InvManlinessPointsMultiplier; - uint32 InvGoofyGoober; - uint32 InvTreasureChest[20]; - uint32 InvTreasureChestMax[20]; - uint32 InvTreasureChestCurrentLevel; - uint32 InvLevelPickups[20]; - uint32 InvLevelPickupsCurrentLevel; - uint32 InvTreasureChestTotal; - uint32 InvTreasureChestOpened; - uint32 CurrentSkillLevel; - uint32 InitialUnusedSkillPoints; - int16 CurrentUnusedSkillPoints; - int16 CurrentSpentSkillPoints; - xModelTag BubbleTag; - xEntDrive drv; - xSurface* floor_surf; - xVec3 floor_norm; - int32 slope; - xCollis earc_coll; - xSphere head_sph; - xModelTag center_tag; - xModelTag head_tag; - uint32 TongueFlags[2]; - xVec3 RootUp; - xVec3 RootUpTarget; - zCheckPoint checkpoint; - uint32 SlideTrackSliding; - uint32 SlideTrackCount; - xEnt* SlideTrackEnt[161]; - uint32 SlideNotGroundedSinceSlide; - xVec3 SlideTrackDir; - xVec3 SlideTrackVel; - float32 SlideTrackDecay; - float32 SlideTrackLean; - float32 SlideTrackLand; - uint8* sb_model_indices; - xModelInstance* sb_models[11]; - uint32 currentPlayer; - xVec3 PredictRotate; - xVec3 PredictTranslate; - float32 PredictAngV; - xVec3 PredictCurrDir; - float32 PredictCurrVel; - float32 KnockBackTimer; - float32 KnockIntoAirTimer; + xEntShadow entShadow_embedded; + xShadowSimpleCache simpShadow_embedded; + zGlobalSettings g; + zPlayerSettings* s; + zPlayerSettings sb; + zPlayerSettings patrick; + zPlayerSettings spongepat; + xLightKit* pPlayerLightKit; + xModelInstance* model_spongebob; + xModelInstance* model_patrick; + xModelInstance* model_spongepat; + xModelInstance* model_car; + uint32 Visible; + int32 Speed; + float32 SpeedMult; + int32 Sneak; + int32 Teeter; + float32 SlipFadeTimer; + int32 Slide; + float32 SlideTimer; + int32 Stepping; + int32 JumpState; + int32 LastJumpState; + float32 JumpTimer; + float32 LookAroundTimer; + uint32 LookAroundRand; + uint32 LastProjectile; + float32 DecelRun; + float32 DecelRunSpeed; + float32 HotsauceTimer; + float32 LeanLerp; + float32 ScareTimer; + xBase* ScareSource; + float32 CowerTimer; + float32 DamageTimer; + float32 SundaeTimer; + float32 ControlOffTimer; + float32 HelmetTimer; + uint32 WorldDisguise; + uint32 Bounced; + float32 FallDeathTimer; + float32 HeadbuttVel; + float32 HeadbuttTimer; + uint32 DoMeleeCheck; + float32 ForceSlipperyTimer; + float32 ForceSlipperyFriction; + float32 ShockRadius; + float32 ShockRadiusOld; + float32 Face_ScareTimer; + uint32 Face_ScareRandom; + uint32 Face_Event; + float32 Face_EventTimer; + float32 Face_PantTimer; + uint32 Face_AnimSpecific; + uint32 IdleRand; + float32 IdleMinorTimer; + float32 IdleMajorTimer; + float32 IdleSitTimer; + int32 Transparent; + zEnt* FireTarget; + uint32 PlayerIsFrozen; + uint32 ControlOff; + uint32 ControlOnEvent; + uint32 AutoMoveSpeed; + float32 AutoMoveDist; + xVec3 AutoMoveTarget; + xBase* AutoMoveObject; + zEnt* Diggable; + float32 DigTimer; + zPlayerCarryInfo carry; + zPlayerLassoInfo lassoInfo; + xModelTag BubbleWandTag[2]; + xModelInstance* model_wand; + xEntBoulder* bubblebowl[2]; + float32 bbowlInitVel; + zEntHangable* HangFound; + zEntHangable* HangEnt; + zEntHangable* HangEntLast; + xVec3 HangPivot; + xVec3 HangVel; + float32 HangLength; + xVec3 HangStartPos; + float32 HangStartLerp; + xModelTag HangPawTag[4]; + float32 HangPawOffset; + float32 HangElapsed; + float32 Jump_CurrGravity; + float32 Jump_HoldTimer; + float32 Jump_ChangeTimer; + int32 Jump_CanDouble; + int32 Jump_CanFloat; + int32 Jump_SpringboardStart; + zPlatform* Jump_Springboard; + int32 CanJump; + int32 CanBubbleSpin; + int32 CanBubbleBounce; + int32 CanBubbleBash; + int32 IsJumping; + int32 IsDJumping; + int32 IsBubbleSpinning; + int32 IsBubbleBouncing; + int32 IsBubbleBashing; + int32 IsBubbleBowling; + int32 WasDJumping; + _zPlayerWallJumpState WallJumpState; + int32 cheat_mode; + zRewardsMgr* rewardsMgr; + uint32 ManlinessPointsCurrentRange; + uint32 InvManlinessPoints; + uint32 InvManlinessPointsMultiplier; + uint32 InvGoofyGoober; + uint32 InvTreasureChest[20]; + uint32 InvTreasureChestMax[20]; + uint32 InvTreasureChestCurrentLevel; + uint32 InvLevelPickups[20]; + uint32 InvLevelPickupsCurrentLevel; + uint32 InvTreasureChestTotal; + uint32 InvTreasureChestOpened; + uint32 CurrentSkillLevel; + uint32 InitialUnusedSkillPoints; + int16 CurrentUnusedSkillPoints; + int16 CurrentSpentSkillPoints; + xModelTag BubbleTag; + xEntDrive drv; + xSurface* floor_surf; + xVec3 floor_norm; + int32 slope; + xCollis earc_coll; + xSphere head_sph; + xModelTag center_tag; + xModelTag head_tag; + uint32 TongueFlags[2]; + xVec3 RootUp; + xVec3 RootUpTarget; + zCheckPoint checkpoint; + uint32 SlideTrackSliding; + uint32 SlideTrackCount; + xEnt* SlideTrackEnt[161]; + uint32 SlideNotGroundedSinceSlide; + xVec3 SlideTrackDir; + xVec3 SlideTrackVel; + float32 SlideTrackDecay; + float32 SlideTrackLean; + float32 SlideTrackLand; + uint8* sb_model_indices; + xModelInstance* sb_models[11]; + uint32 currentPlayer; + xVec3 PredictRotate; + xVec3 PredictTranslate; + float32 PredictAngV; + xVec3 PredictCurrDir; + float32 PredictCurrVel; + float32 KnockBackTimer; + float32 KnockIntoAirTimer; }; struct RwBBox { - RwV3d sup; - RwV3d inf; + RwV3d sup; + RwV3d inf; }; struct zEnt : xEnt { - xAnimTable* atbl; + xAnimTable* atbl; }; struct zCutsceneMgr @@ -1044,537 +1044,537 @@ struct zCutsceneMgr struct RpWorld { - RwObject object; - uint32 flags; - RpWorldRenderOrder renderOrder; - RpMaterialList matList; - RpSector* rootSector; - int32 numTexCoordSets; - int32 numClumpsInWorld; - RwLLLink* currentClumpLink; - RwLinkList clumpList; - RwLinkList lightList; - RwLinkList directionalLightList; - RwV3d worldOrigin; - RwBBox boundingBox; - RpWorldSector*(*renderCallBack)(RpWorldSector*); - RxPipeline* pipeline; + RwObject object; + uint32 flags; + RpWorldRenderOrder renderOrder; + RpMaterialList matList; + RpSector* rootSector; + int32 numTexCoordSets; + int32 numClumpsInWorld; + RwLLLink* currentClumpLink; + RwLinkList clumpList; + RwLinkList lightList; + RwLinkList directionalLightList; + RwV3d worldOrigin; + RwBBox boundingBox; + RpWorldSector* (*renderCallBack)(RpWorldSector*); + RxPipeline* pipeline; }; struct xAnimFile { - xAnimFile* Next; - int8* Name; - uint32 ID; - uint32 FileFlags; - float32 Duration; - float32 TimeOffset; - uint16 BoneCount; - uint8 NumAnims[2]; - void** RawData; - xAnimPhysicsData* PhysicsData; + xAnimFile* Next; + int8* Name; + uint32 ID; + uint32 FileFlags; + float32 Duration; + float32 TimeOffset; + uint16 BoneCount; + uint8 NumAnims[2]; + void** RawData; + xAnimPhysicsData* PhysicsData; }; struct iEnvMatOrder { - uint16 jspIndex; - uint16 nodeIndex; - int32 matGroup; - RpAtomic* atomic; - xJSPNodeInfo* nodeInfo; + uint16 jspIndex; + uint16 nodeIndex; + int32 matGroup; + RpAtomic* atomic; + xJSPNodeInfo* nodeInfo; }; struct RpClump { - RwObject object; - RwLinkList atomicList; - RwLinkList lightList; - RwLinkList cameraList; - RwLLLink inWorldLink; - RpClump*(*callback)(RpClump*, void*); + RwObject object; + RwLinkList atomicList; + RwLinkList lightList; + RwLinkList cameraList; + RwLLLink inWorldLink; + RpClump* (*callback)(RpClump*, void*); }; struct RwRaster { - RwRaster* parent; - uint8* cpPixels; - uint8* palette; - int32 width; - int32 height; - int32 depth; - int32 stride; - int16 nOffsetX; - int16 nOffsetY; - uint8 cType; - uint8 cFlags; - uint8 privateFlags; - uint8 cFormat; - uint8* originalPixels; - int32 originalWidth; - int32 originalHeight; - int32 originalStride; + RwRaster* parent; + uint8* cpPixels; + uint8* palette; + int32 width; + int32 height; + int32 depth; + int32 stride; + int16 nOffsetX; + int16 nOffsetY; + uint8 cType; + uint8 cFlags; + uint8 privateFlags; + uint8 cFormat; + uint8* originalPixels; + int32 originalWidth; + int32 originalHeight; + int32 originalStride; }; struct smoke_type { - RwTexture* texture; - int32 system_id; + RwTexture* texture; + int32 system_id; }; struct xMat4x3 : xMat3x3 { - xVec3 pos; - uint32 pad3; + xVec3 pos; + uint32 pad3; }; struct _tagiPad { - int32 port; + int32 port; }; struct RxPacket { - uint16 flags; - uint16 numClusters; - RxPipeline* pipeline; - uint32* inputToClusterSlot; - uint32* slotsContinue; - RxPipelineCluster** slotClusterRefs; - RxCluster clusters[1]; + uint16 flags; + uint16 numClusters; + RxPipeline* pipeline; + uint32* inputToClusterSlot; + uint32* slotsContinue; + RxPipelineCluster** slotClusterRefs; + RxCluster clusters[1]; }; struct xClumpCollBSPTree { - int32 numBranchNodes; - xClumpCollBSPBranchNode* branchNodes; - int32 numTriangles; - xClumpCollBSPTriangle* triangles; + int32 numBranchNodes; + xClumpCollBSPBranchNode* branchNodes; + int32 numTriangles; + xClumpCollBSPTriangle* triangles; }; struct RwPlane { - RwV3d normal; - float32 distance; + RwV3d normal; + float32 distance; }; struct xCamOrientEuler { - float32 yaw; - float32 pitch; - float32 roll; + float32 yaw; + float32 pitch; + float32 roll; }; struct xQuat { - xVec3 v; - float32 s; + xVec3 v; + float32 s; }; struct zSmokeSphereVolume { - xVec3 center; - float32 radius; - float32 size_min; - float32 size_max; - float32 life_min; - float32 life_max; - float32 vel_min; - float32 vel_max; - float32 growth; - xVec3 vel_dir; - float32 vel_dir_vary; - float32 wind; - xColor_tag color_birth; - xColor_tag color_death; - int32 texture_columns; - int32 texture_rows; + xVec3 center; + float32 radius; + float32 size_min; + float32 size_max; + float32 life_min; + float32 life_max; + float32 vel_min; + float32 vel_max; + float32 growth; + xVec3 vel_dir; + float32 vel_dir_vary; + float32 wind; + xColor_tag color_birth; + xColor_tag color_death; + int32 texture_columns; + int32 texture_rows; }; struct zPlayerCarryInfo { - xEnt* grabbed; - uint32 grabbedModelID; - xMat4x3 spin; - xEnt* throwTarget; - xEnt* flyingToTarget; - float32 minDist; - float32 maxDist; - float32 minHeight; - float32 maxHeight; - float32 maxCosAngle; - float32 throwMinDist; - float32 throwMaxDist; - float32 throwHammerMinDist; - float32 throwHammerMaxDist; - float32 throwMinHeight; - float32 throwMaxHeight; - float32 throwMaxStack; - float32 throwMaxCosAngle; - float32 throwTargetRotRate; - float32 targetRot; - uint32 grabTarget; - xVec3 grabOffset; - float32 grabLerpMin; - float32 grabLerpMax; - float32 grabLerpLast; - uint32 grabYclear; - float32 throwGravity; - float32 throwHeight; - float32 throwDistance; - float32 throwPowerAddDistance; - float32 fruitFloorDecayMin; - float32 fruitFloorDecayMax; - float32 fruitFloorBounce; - float32 fruitFloorFriction; - float32 fruitCeilingBounce; - float32 fruitWallBounce; - float32 fruitLifetime; - xEnt* patLauncher; + xEnt* grabbed; + uint32 grabbedModelID; + xMat4x3 spin; + xEnt* throwTarget; + xEnt* flyingToTarget; + float32 minDist; + float32 maxDist; + float32 minHeight; + float32 maxHeight; + float32 maxCosAngle; + float32 throwMinDist; + float32 throwMaxDist; + float32 throwHammerMinDist; + float32 throwHammerMaxDist; + float32 throwMinHeight; + float32 throwMaxHeight; + float32 throwMaxStack; + float32 throwMaxCosAngle; + float32 throwTargetRotRate; + float32 targetRot; + uint32 grabTarget; + xVec3 grabOffset; + float32 grabLerpMin; + float32 grabLerpMax; + float32 grabLerpLast; + uint32 grabYclear; + float32 throwGravity; + float32 throwHeight; + float32 throwDistance; + float32 throwPowerAddDistance; + float32 fruitFloorDecayMin; + float32 fruitFloorDecayMax; + float32 fruitFloorBounce; + float32 fruitFloorFriction; + float32 fruitCeilingBounce; + float32 fruitWallBounce; + float32 fruitLifetime; + xEnt* patLauncher; }; struct RxOutputSpec { - int8* name; - RxClusterValid* outputClusters; - RxClusterValid allOtherClusters; + int8* name; + RxClusterValid* outputClusters; + RxClusterValid allOtherClusters; }; struct xBBox { - xVec3 center; - xBox box; + xVec3 center; + xBox box; }; struct xAnimTransitionList { - xAnimTransitionList* Next; - xAnimTransition* T; + xAnimTransitionList* Next; + xAnimTransition* T; }; struct _class_1 { - union - { - xVec3 cart; - xCamCoordCylinder cylinder; - xCamCoordSphere sphere; - }; + union + { + xVec3 cart; + xCamCoordCylinder cylinder; + xCamCoordSphere sphere; + }; }; struct zPlayerSettings { - _zPlayerType pcType; - float32 MoveSpeed[6]; - float32 AnimSneak[3]; - float32 AnimWalk[3]; - float32 AnimRun[3]; - float32 JumpGravity; - float32 GravSmooth; - float32 FloatSpeed; - float32 ButtsmashSpeed; - zJumpParam Jump; - zJumpParam Bounce; - zJumpParam Spring; - zJumpParam Wall; - zJumpParam Double; - zJumpParam SlideDouble; - zJumpParam SlideJump; - float32 WallJumpVelocity; - zLedgeGrabParams ledge; - float32 spin_damp_xz; - float32 spin_damp_y; - uint8 talk_anims; - uint8 talk_filter_size; - uint8 talk_filter[4]; - uint32 Health; - uint32 MaxHealth; + _zPlayerType pcType; + float32 MoveSpeed[6]; + float32 AnimSneak[3]; + float32 AnimWalk[3]; + float32 AnimRun[3]; + float32 JumpGravity; + float32 GravSmooth; + float32 FloatSpeed; + float32 ButtsmashSpeed; + zJumpParam Jump; + zJumpParam Bounce; + zJumpParam Spring; + zJumpParam Wall; + zJumpParam Double; + zJumpParam SlideDouble; + zJumpParam SlideJump; + float32 WallJumpVelocity; + zLedgeGrabParams ledge; + float32 spin_damp_xz; + float32 spin_damp_y; + uint8 talk_anims; + uint8 talk_filter_size; + uint8 talk_filter[4]; + uint32 Health; + uint32 MaxHealth; }; struct PS2DemoGlobals { - uint16 language; - uint16 aspect; - uint16 play_mode; - uint16 inactive_timeout; - uint16 gameplay_timeout; - sceDemoEndReason exit_code; - struct - { - uint32 FMV_playing : 1; - uint32 more_padding : 31; - }; - float32 bail_timer; - float32 inactive_timer; - float32 gameplay_timer; - int8 subdir[16]; - uint16 quit; - uint16 vmode; + uint16 language; + uint16 aspect; + uint16 play_mode; + uint16 inactive_timeout; + uint16 gameplay_timeout; + sceDemoEndReason exit_code; + struct + { + uint32 FMV_playing : 1; + uint32 more_padding : 31; + }; + float32 bail_timer; + float32 inactive_timer; + float32 gameplay_timer; + int8 subdir[16]; + uint16 quit; + uint16 vmode; }; struct xLinkAsset { - uint16 srcEvent; - uint16 dstEvent; - uint32 dstAssetID; - float32 param[4]; - uint32 paramWidgetAssetID; - uint32 chkAssetID; + uint16 srcEvent; + uint16 dstEvent; + uint32 dstAssetID; + float32 param[4]; + uint32 paramWidgetAssetID; + uint32 chkAssetID; }; struct RwTexture { - RwRaster* raster; - RwTexDictionary* dict; - RwLLLink lInDictionary; - int8 name[32]; - int8 mask[32]; - uint32 filterAddressing; - int32 refCount; + RwRaster* raster; + RwTexDictionary* dict; + RwLLLink lInDictionary; + int8 name[32]; + int8 mask[32]; + uint32 filterAddressing; + int32 refCount; }; struct tri_data_1 { - uint32 index; - float32 r; - float32 d; + uint32 index; + float32 r; + float32 d; }; struct zSmokeGenom { - xVec3 loc; - float32 size; - float32 life; - xVec3 vel; - xVec2 uv[2]; - xColor_tag color; - float32 growth; - float32 wind; + xVec3 loc; + float32 size; + float32 life; + xVec3 vel; + xVec2 uv[2]; + xColor_tag color; + float32 growth; + float32 wind; }; struct xSphere { - xVec3 center; - float32 r; + xVec3 center; + float32 r; }; struct xColor_tag { - uint8 r; - uint8 g; - uint8 b; - uint8 a; - RwRGBA rgba; + uint8 r; + uint8 g; + uint8 b; + uint8 a; + RwRGBA rgba; }; struct RpWorldSector { - int32 type; - RpTriangle* triangles; - RwV3d* vertices; - RpVertexNormal* normals; - RwTexCoords* texCoords[8]; - RwRGBA* preLitLum; - RwResEntry* repEntry; - RwLinkList collAtomicsInWorldSector; - RwLinkList lightsInWorldSector; - RwBBox boundingBox; - RwBBox tightBoundingBox; - RpMeshHeader* mesh; - RxPipeline* pipeline; - uint16 matListWindowBase; - uint16 numVertices; - uint16 numTriangles; - uint16 pad; + int32 type; + RpTriangle* triangles; + RwV3d* vertices; + RpVertexNormal* normals; + RwTexCoords* texCoords[8]; + RwRGBA* preLitLum; + RwResEntry* repEntry; + RwLinkList collAtomicsInWorldSector; + RwLinkList lightsInWorldSector; + RwBBox boundingBox; + RwBBox tightBoundingBox; + RpMeshHeader* mesh; + RxPipeline* pipeline; + uint16 matListWindowBase; + uint16 numVertices; + uint16 numTriangles; + uint16 pad; }; struct RwSphere { - RwV3d center; - float32 radius; + RwV3d center; + float32 radius; }; struct xCam { - xMat4x3 mat; - float32 fov; - int32 flags; - uint32 owner; - xCamGroup* group; - analog_data analog; - float32 motion_factor; - xCamCoordType coord_type; - xCamOrientType orient_type; - _class_1 coord; - _class_2 orient; - xCamConfigCommon cfg_common; - int32 group_index; - int32 group_flags; - xCamBlend* blender; + xMat4x3 mat; + float32 fov; + int32 flags; + uint32 owner; + xCamGroup* group; + analog_data analog; + float32 motion_factor; + xCamCoordType coord_type; + xCamOrientType orient_type; + _class_1 coord; + _class_2 orient; + xCamConfigCommon cfg_common; + int32 group_index; + int32 group_flags; + xCamBlend* blender; }; struct RxCluster { - uint16 flags; - uint16 stride; - void* data; - void* currentData; - uint32 numAlloced; - uint32 numUsed; - RxPipelineCluster* clusterRef; - uint32 attributes; + uint16 flags; + uint16 stride; + void* data; + void* currentData; + uint32 numAlloced; + uint32 numUsed; + RxPipelineCluster* clusterRef; + uint32 attributes; }; struct xLightKit { - uint32 tagID; - uint32 groupID; - uint32 lightCount; - xLightKitLight* lightList; + uint32 tagID; + uint32 groupID; + uint32 lightCount; + xLightKitLight* lightList; }; struct rxHeapSuperBlockDescriptor { - void* start; - uint32 size; - rxHeapSuperBlockDescriptor* next; + void* start; + uint32 size; + rxHeapSuperBlockDescriptor* next; }; struct xJSPNodeTreeLeaf { - int32 nodeIndex; - int32 leafCount; - RwBBox box; + int32 nodeIndex; + int32 leafCount; + RwBBox box; }; struct xRot { - xVec3 axis; - float32 angle; + xVec3 axis; + float32 angle; }; enum RxClusterValid { - rxCLVALID_NOCHANGE, - rxCLVALID_VALID, - rxCLVALID_INVALID, - rxCLUSTERVALIDFORCEENUMSIZEINT = 0x7fffffff + rxCLVALID_NOCHANGE, + rxCLVALID_VALID, + rxCLVALID_INVALID, + rxCLUSTERVALIDFORCEENUMSIZEINT = 0x7fffffff }; struct xCylinder { - xVec3 center; - float32 r; - float32 h; + xVec3 center; + float32 r; + float32 h; }; struct xGroupAsset : xBaseAsset { - uint16 itemCount; - uint16 groupFlags; + uint16 itemCount; + uint16 groupFlags; }; struct xBaseAsset { - uint32 id; - uint8 baseType; - uint8 linkCount; - uint16 baseFlags; + uint32 id; + uint8 baseType; + uint8 linkCount; + uint16 baseFlags; }; struct xClumpCollBSPBranchNode { - uint32 leftInfo; - uint32 rightInfo; - float32 leftValue; - float32 rightValue; + uint32 leftInfo; + uint32 rightInfo; + float32 leftValue; + float32 rightValue; }; struct RpSector { - int32 type; + int32 type; }; struct xJSPNodeTree { - int32 numBranchNodes; - xJSPNodeTreeBranch* branchNodes; - int32 numLeafNodes; - xJSPNodeTreeLeaf* leafNodes; + int32 numBranchNodes; + xJSPNodeTreeBranch* branchNodes; + int32 numLeafNodes; + xJSPNodeTreeLeaf* leafNodes; }; struct xModelBucket { - RpAtomic* Data; - RpAtomic* OriginalData; - union - { - xModelInstance* List; - xModelBucket** BackRef; - }; - int32 ClipFlags; - xModelPipe Pipe; + RpAtomic* Data; + RpAtomic* OriginalData; + union + { + xModelInstance* List; + xModelBucket** BackRef; + }; + int32 ClipFlags; + xModelPipe Pipe; }; struct xCamBlend : xCam { - xCam* src; - xCam* dst; - float32 time; + xCam* src; + xCam* dst; + float32 time; }; struct xBound { - xQCData qcd; - uint8 type; - uint8 pad[3]; - union - { - xSphere sph; - xBBox box; - xCylinder cyl; - }; - xMat4x3* mat; + xQCData qcd; + uint8 type; + uint8 pad[3]; + union + { + xSphere sph; + xBBox box; + xCylinder cyl; + }; + xMat4x3* mat; }; enum ptank_group_type { - PGT_COLOR_MAT, - PGT_COLOR_MAT_UV2, - PGT_POS_COLOR_SIZE, - PGT_POS_COLOR_SIZE_UV2, - PGT_POS_COLOR_SIZE_ROT, - PGT_POS_COLOR_SIZE_ROT_UV2, - MAX_PGT + PGT_COLOR_MAT, + PGT_COLOR_MAT_UV2, + PGT_POS_COLOR_SIZE, + PGT_POS_COLOR_SIZE_UV2, + PGT_POS_COLOR_SIZE_ROT, + PGT_POS_COLOR_SIZE_ROT_UV2, + MAX_PGT }; struct xJSPNodeLight { - RpAtomic* atomic; - int32 lightCount; - RpTie dummyTie; - RpWorldSector dummySector; - xJSPMiniLightTie dummyLightTie[16]; + RpAtomic* atomic; + int32 lightCount; + RpTie dummyTie; + RpWorldSector dummySector; + xJSPMiniLightTie dummyLightTie[16]; }; struct xUpdateCullMgr { - uint32 entCount; - uint32 entActive; - void** ent; - xUpdateCullEnt** mgr; - uint32 mgrCount; - uint32 mgrCurr; - xUpdateCullEnt* mgrList; - uint32 grpCount; - xUpdateCullGroup* grpList; - void(*activateCB)(void*); - void(*deactivateCB)(void*); + uint32 entCount; + uint32 entActive; + void** ent; + xUpdateCullEnt** mgr; + uint32 mgrCount; + uint32 mgrCurr; + xUpdateCullEnt* mgrList; + uint32 grpCount; + xUpdateCullGroup* grpList; + void (*activateCB)(void*); + void (*deactivateCB)(void*); }; struct xBox { - xVec3 upper; - xVec3 lower; + xVec3 upper; + xVec3 lower; }; struct xSurface @@ -1583,36 +1583,36 @@ struct xSurface struct iEnv { - RpWorld* world; - RpWorld* collision; - RpWorld* fx; - RpWorld* camera; - int32 jsp_count; - uint32* jsp_aid; - xJSPHeader** jsp_list; - xBox* jsp_bound; - int32* jsp_visibilityCount; - int32 jspMatOrderCount; - iEnvMatOrder* jspMatOrderList; - RpLight* light[2]; - RwFrame* light_frame[2]; - int32 memlvl; - uint16 numOpaque; - uint16 numTransparent; + RpWorld* world; + RpWorld* collision; + RpWorld* fx; + RpWorld* camera; + int32 jsp_count; + uint32* jsp_aid; + xJSPHeader** jsp_list; + xBox* jsp_bound; + int32* jsp_visibilityCount; + int32 jspMatOrderCount; + iEnvMatOrder* jspMatOrderList; + RpLight* light[2]; + RwFrame* light_frame[2]; + int32 memlvl; + uint16 numOpaque; + uint16 numTransparent; }; struct xAnimMultiFile : xAnimMultiFileBase { - xAnimMultiFileEntry Files[1]; + xAnimMultiFileEntry Files[1]; }; struct xCamConfigCommon { - uint8 priority; - uint8 pad1; - uint8 pad2; - uint8 pad3; - float32 blend_time; + uint8 priority; + uint8 pad1; + uint8 pad2; + uint8 pad3; + float32 blend_time; }; struct xGrid @@ -1621,191 +1621,191 @@ struct xGrid struct xAnimTransition { - xAnimTransition* Next; - xAnimState* Dest; - uint32(*Conditional)(xAnimTransition*, xAnimSingle*, void*); - uint32(*Callback)(xAnimTransition*, xAnimSingle*, void*); - uint32 Flags; - uint32 UserFlags; - float32 SrcTime; - float32 DestTime; - uint16 Priority; - uint16 QueuePriority; - float32 BlendRecip; - uint16* BlendOffset; + xAnimTransition* Next; + xAnimState* Dest; + uint32 (*Conditional)(xAnimTransition*, xAnimSingle*, void*); + uint32 (*Callback)(xAnimTransition*, xAnimSingle*, void*); + uint32 Flags; + uint32 UserFlags; + float32 SrcTime; + float32 DestTime; + uint16 Priority; + uint16 QueuePriority; + float32 BlendRecip; + uint16* BlendOffset; }; struct _class_2 { - union - { - xQuat quat; - xCamOrientEuler euler; - }; + union + { + xQuat quat; + xCamOrientEuler euler; + }; }; struct RwV2d { - float32 x; - float32 y; + float32 x; + float32 y; }; struct xMat3x3 { - xVec3 right; - int32 flags; - xVec3 up; - uint32 pad1; - xVec3 at; - uint32 pad2; + xVec3 right; + int32 flags; + xVec3 up; + uint32 pad1; + xVec3 at; + uint32 pad2; }; struct xEntCollis { - uint8 chk; - uint8 pen; - uint8 env_sidx; - uint8 env_eidx; - uint8 npc_sidx; - uint8 npc_eidx; - uint8 dyn_sidx; - uint8 dyn_eidx; - uint8 stat_sidx; - uint8 stat_eidx; - uint8 idx; - xCollis colls[18]; - void(*post)(xEnt*, xScene*, float32, xEntCollis*); - uint32(*depenq)(xEnt*, xEnt*, xScene*, float32, xCollis*); + uint8 chk; + uint8 pen; + uint8 env_sidx; + uint8 env_eidx; + uint8 npc_sidx; + uint8 npc_eidx; + uint8 dyn_sidx; + uint8 dyn_eidx; + uint8 stat_sidx; + uint8 stat_eidx; + uint8 idx; + xCollis colls[18]; + void (*post)(xEnt*, xScene*, float32, xEntCollis*); + uint32 (*depenq)(xEnt*, xEnt*, xScene*, float32, xCollis*); }; struct RxPipelineCluster { - RxClusterDefinition* clusterRef; - uint32 creationAttributes; + RxClusterDefinition* clusterRef; + uint32 creationAttributes; }; struct xScene { - uint32 sceneID; - uint16 flags; - uint16 num_trigs; - uint16 num_stats; - uint16 num_dyns; - uint16 num_npcs; - uint16 num_act_ents; - float32 gravity; - float32 drag; - float32 friction; - uint16 num_ents_allocd; - uint16 num_trigs_allocd; - uint16 num_stats_allocd; - uint16 num_dyns_allocd; - uint16 num_npcs_allocd; - xEnt** trigs; - xEnt** stats; - xEnt** dyns; - xEnt** npcs; - xEnt** act_ents; - xEnv* env; - xMemPool mempool; - xBase*(*resolvID)(uint32); - int8*(*base2Name)(xBase*); - int8*(*id2Name)(uint32); + uint32 sceneID; + uint16 flags; + uint16 num_trigs; + uint16 num_stats; + uint16 num_dyns; + uint16 num_npcs; + uint16 num_act_ents; + float32 gravity; + float32 drag; + float32 friction; + uint16 num_ents_allocd; + uint16 num_trigs_allocd; + uint16 num_stats_allocd; + uint16 num_dyns_allocd; + uint16 num_npcs_allocd; + xEnt** trigs; + xEnt** stats; + xEnt** dyns; + xEnt** npcs; + xEnt** act_ents; + xEnv* env; + xMemPool mempool; + xBase* (*resolvID)(uint32); + int8* (*base2Name)(xBase*); + int8* (*id2Name)(uint32); }; enum RxClusterValidityReq { - rxCLREQ_DONTWANT, - rxCLREQ_REQUIRED, - rxCLREQ_OPTIONAL, - rxCLUSTERVALIDITYREQFORCEENUMSIZEINT = 0x7fffffff + rxCLREQ_DONTWANT, + rxCLREQ_REQUIRED, + rxCLREQ_OPTIONAL, + rxCLUSTERVALIDITYREQFORCEENUMSIZEINT = 0x7fffffff }; struct xGridBound { - void* data; - uint16 gx; - uint16 gz; - uint8 oversize; - uint8 deleted; - uint8 gpad; - uint8 pad; - xGrid* grid; - xGridBound** head; - xGridBound* next; + void* data; + uint16 gx; + uint16 gz; + uint8 oversize; + uint8 deleted; + uint8 gpad; + uint8 pad; + xGrid* grid; + xGridBound** head; + xGridBound* next; }; struct RpGeometry { - RwObject object; - uint32 flags; - uint16 lockedSinceLastInst; - int16 refCount; - int32 numTriangles; - int32 numVertices; - int32 numMorphTargets; - int32 numTexCoordSets; - RpMaterialList matList; - RpTriangle* triangles; - RwRGBA* preLitLum; - RwTexCoords* texCoords[8]; - RpMeshHeader* mesh; - RwResEntry* repEntry; - RpMorphTarget* morphTarget; + RwObject object; + uint32 flags; + uint16 lockedSinceLastInst; + int16 refCount; + int32 numTriangles; + int32 numVertices; + int32 numMorphTargets; + int32 numTexCoordSets; + RpMaterialList matList; + RpTriangle* triangles; + RwRGBA* preLitLum; + RwTexCoords* texCoords[8]; + RpMeshHeader* mesh; + RwResEntry* repEntry; + RpMorphTarget* morphTarget; }; struct xAnimPhysicsData { - xVec3* tranTable; - float32* yawTable; - int32 tranCount; + xVec3* tranTable; + float32* yawTable; + int32 tranCount; }; struct _class_3 { - float32 t; - float32 u; - float32 v; + float32 t; + float32 u; + float32 v; }; struct RxClusterRef { - RxClusterDefinition* clusterDef; - RxClusterForcePresent forcePresent; - uint32 reserved; + RxClusterDefinition* clusterDef; + RxClusterForcePresent forcePresent; + uint32 reserved; }; struct zJumpParam { - float32 PeakHeight; - float32 TimeGravChange; - float32 TimeHold; - float32 ImpulseVel; + float32 PeakHeight; + float32 TimeGravChange; + float32 TimeHold; + float32 ImpulseVel; }; struct xEntFrame { - xMat4x3 mat; - xMat4x3 oldmat; - xVec3 oldvel; - xRot oldrot; - xRot drot; - xRot rot; - xVec3 dvel; - xVec3 vel; - uint32 mode; - xVec3 dpos; + xMat4x3 mat; + xMat4x3 oldmat; + xVec3 oldvel; + xRot oldrot; + xRot drot; + xRot rot; + xVec3 dvel; + xVec3 vel; + uint32 mode; + xVec3 dpos; }; struct xVec2 { - float32 x; - float32 y; + float32 x; + float32 y; }; struct _zEnv : xBase { - xEnvAsset* easset; + xEnvAsset* easset; }; struct xEntBoulder @@ -1814,30 +1814,30 @@ struct xEntBoulder struct xJSPNodeTreeBranch { - uint16 leftNode; - uint16 rightNode; - uint8 leftType; - uint8 rightType; - uint16 coord; - float32 leftValue; - float32 rightValue; + uint16 leftNode; + uint16 rightNode; + uint8 leftType; + uint8 rightType; + uint16 coord; + float32 leftValue; + float32 rightValue; }; struct zSceneParameters : xDynAsset { - uint32 idle03ExtraCount; - xAnimFile** idle03Extras; - uint32 idle04ExtraCount; - xAnimFile** idle04Extras; - uint8 bombCount; - uint8 extraIdleDelay; - uint8 hdrGlow; - uint8 hdrDarken; - uint32 uDefaultMusicHash; - uint32 flags; - float32 waterTileWidth; - float32 lodFadeDistance; - uint32 pad[4]; + uint32 idle03ExtraCount; + xAnimFile** idle03Extras; + uint32 idle04ExtraCount; + xAnimFile** idle04Extras; + uint8 bombCount; + uint8 extraIdleDelay; + uint8 hdrGlow; + uint8 hdrDarken; + uint32 uDefaultMusicHash; + uint32 flags; + float32 waterTileWidth; + float32 lodFadeDistance; + uint32 pad[4]; }; struct zEntHangable @@ -1846,32 +1846,32 @@ struct zEntHangable struct xQCData { - int8 xmin; - int8 ymin; - int8 zmin; - int8 zmin_dup; - int8 xmax; - int8 ymax; - int8 zmax; - int8 zmax_dup; - xVec3 min; - xVec3 max; + int8 xmin; + int8 ymin; + int8 zmin; + int8 zmin_dup; + int8 xmax; + int8 ymax; + int8 zmax; + int8 zmax_dup; + xVec3 min; + xVec3 max; }; struct xSpline3 { - uint16 type; - uint16 flags; - uint32 N; - uint32 allocN; - xVec3* points; - float32* time; - xVec3* p12; - xVec3* bctrl; - float32* knot; - xCoef3* coef; - uint32 arcSample; - float32* arcLength; + uint16 type; + uint16 flags; + uint32 N; + uint32 allocN; + xVec3* points; + float32* time; + xVec3* p12; + xVec3* bctrl; + float32* knot; + xCoef3* coef; + uint32 arcSample; + float32* arcLength; }; struct xFFX @@ -1880,41 +1880,41 @@ struct xFFX struct RpMaterialList { - RpMaterial** materials; - int32 numMaterials; - int32 space; + RpMaterial** materials; + int32 numMaterials; + int32 space; }; struct RwFrame { - RwObject object; - RwLLLink inDirtyListLink; - RwMatrixTag modelling; - RwMatrixTag ltm; - RwLinkList objectList; - RwFrame* child; - RwFrame* next; - RwFrame* root; + RwObject object; + RwLLLink inDirtyListLink; + RwMatrixTag modelling; + RwMatrixTag ltm; + RwLinkList objectList; + RwFrame* child; + RwFrame* next; + RwFrame* root; }; struct RpLight { - RwObjectHasFrame object; - float32 radius; - RwRGBAReal color; - float32 minusCosAngle; - RwLinkList WorldSectorsInLight; - RwLLLink inWorld; - uint16 lightFrame; - uint16 pad; + RwObjectHasFrame object; + float32 radius; + RwRGBAReal color; + float32 minusCosAngle; + RwLinkList WorldSectorsInLight; + RwLLLink inWorld; + uint16 lightFrame; + uint16 pad; }; struct RpMorphTarget { - RpGeometry* parentGeom; - RwSphere boundingSphere; - RwV3d* verts; - RwV3d* normals; + RpGeometry* parentGeom; + RwSphere boundingSphere; + RwV3d* verts; + RwV3d* normals; }; struct zPlatform @@ -1923,623 +1923,623 @@ struct zPlatform struct smoke_particle { - xVec3 loc; - float32 size; - xColor_tag color; - xVec3 vel; - xVec2 uv[2]; - float32 age; - float32 age_rate; - float32 growth; - float32 wind; - float32 dr; - float32 dg; - float32 db; - float32 da; + xVec3 loc; + float32 size; + xColor_tag color; + xVec3 vel; + xVec2 uv[2]; + float32 age; + float32 age_rate; + float32 growth; + float32 wind; + float32 dr; + float32 dg; + float32 db; + float32 da; }; struct RpVertexNormal { - int8 x; - int8 y; - int8 z; - uint8 pad; + int8 x; + int8 y; + int8 z; + uint8 pad; }; enum RxClusterForcePresent { - rxCLALLOWABSENT, - rxCLFORCEPRESENT, - rxCLUSTERFORCEPRESENTFORCEENUMSIZEINT = 0x7fffffff + rxCLALLOWABSENT, + rxCLFORCEPRESENT, + rxCLUSTERFORCEPRESENTFORCEENUMSIZEINT = 0x7fffffff }; struct RwRGBA { - uint8 red; - uint8 green; - uint8 blue; - uint8 alpha; + uint8 red; + uint8 green; + uint8 blue; + uint8 alpha; }; struct analog_data { - xVec2 offset; - xVec2 dir; - float32 mag; - float32 ang; + xVec2 offset; + xVec2 dir; + float32 mag; + float32 ang; }; struct zLasso { - uint32 flags; - float32 secsTotal; - float32 secsLeft; - float32 stRadius; - float32 tgRadius; - float32 crRadius; - xVec3 stCenter; - xVec3 tgCenter; - xVec3 crCenter; - xVec3 stNormal; - xVec3 tgNormal; - xVec3 crNormal; - xVec3 honda; - float32 stSlack; - float32 stSlackDist; - float32 tgSlack; - float32 tgSlackDist; - float32 crSlack; - float32 currDist; - float32 lastDist; - xVec3 lastRefs[5]; - uint8 reindex[5]; - uint8 pad[3]; - xVec3 anchor; - xModelTag tag; - xModelInstance* model; - uint32 patTongue; - RpAtomic* tipModel; - xMat4x3* tipMatrix; - float32 tipDelay; - float32 tipLerp; - xSpline3* spl; - uint32 spldata[59]; + uint32 flags; + float32 secsTotal; + float32 secsLeft; + float32 stRadius; + float32 tgRadius; + float32 crRadius; + xVec3 stCenter; + xVec3 tgCenter; + xVec3 crCenter; + xVec3 stNormal; + xVec3 tgNormal; + xVec3 crNormal; + xVec3 honda; + float32 stSlack; + float32 stSlackDist; + float32 tgSlack; + float32 tgSlackDist; + float32 crSlack; + float32 currDist; + float32 lastDist; + xVec3 lastRefs[5]; + uint8 reindex[5]; + uint8 pad[3]; + xVec3 anchor; + xModelTag tag; + xModelInstance* model; + uint32 patTongue; + RpAtomic* tipModel; + xMat4x3* tipMatrix; + float32 tipDelay; + float32 tipLerp; + xSpline3* spl; + uint32 spldata[59]; }; struct xEnvAsset : xBaseAsset { - uint32 bspAssetID; - uint32 startCameraAssetID; - uint32 climateFlags; - float32 climateStrengthMin; - float32 climateStrengthMax; - uint32 bspLightKit; - uint32 objectLightKit; - uint32 flags; - uint32 bspCollisionAssetID; - uint32 bspFXAssetID; - uint32 bspCameraAssetID; - uint32 bspMapperID; - uint32 bspMapperCollisionID; - uint32 bspMapperFXID; - float32 loldHeight; - xVec3 minBounds; - xVec3 maxBounds; + uint32 bspAssetID; + uint32 startCameraAssetID; + uint32 climateFlags; + float32 climateStrengthMin; + float32 climateStrengthMax; + uint32 bspLightKit; + uint32 objectLightKit; + uint32 flags; + uint32 bspCollisionAssetID; + uint32 bspFXAssetID; + uint32 bspCameraAssetID; + uint32 bspMapperID; + uint32 bspMapperCollisionID; + uint32 bspMapperFXID; + float32 loldHeight; + xVec3 minBounds; + xVec3 maxBounds; }; struct asset_type : xDynAsset { - uint32 flags; - _class_5 region; - uint32 texture; - uint16 texture_rows; - uint16 texture_columns; - float32 rate; - float32 life_min; - float32 life_max; - float32 size_min; - float32 size_max; - float32 vel_min; - float32 vel_max; - float32 growth; - xVec3 vel_dir; - float32 vel_dir_vary; - float32 wind; - xColor_tag color_birth; - xColor_tag color_death; + uint32 flags; + _class_5 region; + uint32 texture; + uint16 texture_rows; + uint16 texture_columns; + float32 rate; + float32 life_min; + float32 life_max; + float32 size_min; + float32 size_max; + float32 vel_min; + float32 vel_max; + float32 growth; + xVec3 vel_dir; + float32 vel_dir_vary; + float32 wind; + xColor_tag color_birth; + xColor_tag color_death; }; struct xCamScreen { - RwCamera* icam; - float32 fov; + RwCamera* icam; + float32 fov; }; enum _zPlayerType { - ePlayer_SB, - ePlayer_Patrick, - ePlayer_MAXTYPES + ePlayer_SB, + ePlayer_Patrick, + ePlayer_MAXTYPES }; struct RwMatrixTag { - RwV3d right; - uint32 flags; - RwV3d up; - uint32 pad1; - RwV3d at; - uint32 pad2; - RwV3d pos; - uint32 pad3; + RwV3d right; + uint32 flags; + RwV3d up; + uint32 pad1; + RwV3d at; + uint32 pad2; + RwV3d pos; + uint32 pad3; }; struct ptank_pool { - render_state rs; - uint32 order_group; - int32 order_index; - uint32 used; - RpAtomic* ptank; + render_state rs; + uint32 order_group; + int32 order_index; + uint32 used; + RpAtomic* ptank; }; struct RpMaterial { - RwTexture* texture; - RwRGBA color; - RxPipeline* pipeline; - RwSurfaceProperties surfaceProps; - int16 refCount; - int16 pad; + RwTexture* texture; + RwRGBA color; + RxPipeline* pipeline; + RwSurfaceProperties surfaceProps; + int16 refCount; + int16 pad; }; struct RxNodeMethods { - int32(*nodeBody)(RxPipelineNode*, RxPipelineNodeParam*); - int32(*nodeInit)(RxNodeDefinition*); - void(*nodeTerm)(RxNodeDefinition*); - int32(*pipelineNodeInit)(RxPipelineNode*); - void(*pipelineNodeTerm)(RxPipelineNode*); - int32(*pipelineNodeConfig)(RxPipelineNode*, RxPipeline*); - uint32(*configMsgHandler)(RxPipelineNode*, uint32, uint32, void*); + int32 (*nodeBody)(RxPipelineNode*, RxPipelineNodeParam*); + int32 (*nodeInit)(RxNodeDefinition*); + void (*nodeTerm)(RxNodeDefinition*); + int32 (*pipelineNodeInit)(RxPipelineNode*); + void (*pipelineNodeTerm)(RxPipelineNode*); + int32 (*pipelineNodeConfig)(RxPipelineNode*, RxPipeline*); + uint32 (*configMsgHandler)(RxPipelineNode*, uint32, uint32, void*); }; struct RwCamera { - RwObjectHasFrame object; - RwCameraProjection projectionType; - RwCamera*(*beginUpdate)(RwCamera*); - RwCamera*(*endUpdate)(RwCamera*); - RwMatrixTag viewMatrix; - RwRaster* frameBuffer; - RwRaster* zBuffer; - RwV2d viewWindow; - RwV2d recipViewWindow; - RwV2d viewOffset; - float32 nearPlane; - float32 farPlane; - float32 fogPlane; - float32 zScale; - float32 zShift; - RwFrustumPlane frustumPlanes[6]; - RwBBox frustumBoundBox; - RwV3d frustumCorners[8]; + RwObjectHasFrame object; + RwCameraProjection projectionType; + RwCamera* (*beginUpdate)(RwCamera*); + RwCamera* (*endUpdate)(RwCamera*); + RwMatrixTag viewMatrix; + RwRaster* frameBuffer; + RwRaster* zBuffer; + RwV2d viewWindow; + RwV2d recipViewWindow; + RwV2d viewOffset; + float32 nearPlane; + float32 farPlane; + float32 fogPlane; + float32 zScale; + float32 zShift; + RwFrustumPlane frustumPlanes[6]; + RwBBox frustumBoundBox; + RwV3d frustumCorners[8]; }; enum RwCameraProjection { - rwNACAMERAPROJECTION, - rwPERSPECTIVE, - rwPARALLEL, - rwCAMERAPROJECTIONFORCEENUMSIZEINT = 0x7fffffff + rwNACAMERAPROJECTION, + rwPERSPECTIVE, + rwPARALLEL, + rwCAMERAPROJECTIONFORCEENUMSIZEINT = 0x7fffffff }; enum xCamCoordType { - XCAM_COORD_INVALID = 0xffffffff, - XCAM_COORD_CART, - XCAM_COORD_CYLINDER, - XCAM_COORD_SPHERE, - XCAM_COORD_MAX + XCAM_COORD_INVALID = 0xffffffff, + XCAM_COORD_CART, + XCAM_COORD_CYLINDER, + XCAM_COORD_SPHERE, + XCAM_COORD_MAX }; struct render_state { - RwTexture* texture; - uint32 src_blend; - uint32 dst_blend; - int32 flags; + RwTexture* texture; + uint32 src_blend; + uint32 dst_blend; + int32 flags; }; struct xShadowSimplePoly { - xVec3 vert[3]; - xVec3 norm; + xVec3 vert[3]; + xVec3 norm; }; struct xGroup : xBase { - xGroupAsset* asset; - xBase** item; - uint32 last_index; - int32 flg_group; + xGroupAsset* asset; + xBase** item; + uint32 last_index; + int32 flg_group; }; struct RwResEntry { - RwLLLink link; - int32 size; - void* owner; - RwResEntry** ownerRef; - void(*destroyNotify)(RwResEntry*); + RwLLLink link; + int32 size; + void* owner; + RwResEntry** ownerRef; + void (*destroyNotify)(RwResEntry*); }; struct RwObjectHasFrame { - RwObject object; - RwLLLink lFrame; - RwObjectHasFrame*(*sync)(RwObjectHasFrame*); + RwObject object; + RwLLLink lFrame; + RwObjectHasFrame* (*sync)(RwObjectHasFrame*); }; enum rxEmbeddedPacketState { - rxPKST_PACKETLESS, - rxPKST_UNUSED, - rxPKST_INUSE, - rxPKST_PENDING, - rxEMBEDDEDPACKETSTATEFORCEENUMSIZEINT = 0x7fffffff + rxPKST_PACKETLESS, + rxPKST_UNUSED, + rxPKST_INUSE, + rxPKST_PENDING, + rxEMBEDDEDPACKETSTATEFORCEENUMSIZEINT = 0x7fffffff }; struct zCheckPoint { - xVec3 pos; - float32 rot; - uint32 initCamID; - uint8* jsp_active; - xSndEffect currentEffect; + xVec3 pos; + float32 rot; + uint32 initCamID; + uint8* jsp_active; + xSndEffect currentEffect; }; struct zPlayer : zEnt { - xVec3 trigLastFramePos; - int32 zPlayerFlags; - uint32 lorezModelID; - xModelInstance* lorezModel; - xModelInstance* hirezModel; + xVec3 trigLastFramePos; + int32 zPlayerFlags; + uint32 lorezModelID; + xModelInstance* lorezModel; + xModelInstance* hirezModel; }; struct RwSurfaceProperties { - float32 ambient; - float32 specular; - float32 diffuse; + float32 ambient; + float32 specular; + float32 diffuse; }; struct _class_4 { - xVec3* verts; + xVec3* verts; }; struct RxPipelineNode { - RxNodeDefinition* nodeDef; - uint32 numOutputs; - uint32* outputs; - RxPipelineCluster** slotClusterRefs; - uint32* slotsContinue; - void* privateData; - uint32* inputToClusterSlot; - RxPipelineNodeTopSortData* topSortData; - void* initializationData; - uint32 initializationDataSize; + RxNodeDefinition* nodeDef; + uint32 numOutputs; + uint32* outputs; + RxPipelineCluster** slotClusterRefs; + uint32* slotsContinue; + void* privateData; + uint32* inputToClusterSlot; + RxPipelineNodeTopSortData* topSortData; + void* initializationData; + uint32 initializationDataSize; }; struct xCamCoordCylinder { - xVec3 origin; - float32 dist; - float32 height; - float32 theta; + xVec3 origin; + float32 dist; + float32 height; + float32 theta; }; struct xShadowSimpleCache { - uint16 flags; - uint8 alpha; - uint8 pad; - uint32 collPriority; - xVec3 pos; - xVec3 at; - float32 tol_movement; - float32 radiusOptional; - xEnt* castOnEnt; - xShadowSimplePoly poly; - float32 envHeight; - float32 shadowHeight; - union - { - uint32 raster; - RwRaster* ptr_raster; - }; - float32 dydx; - float32 dydz; - xVec3 corner[4]; - void* collSkipsItem; + uint16 flags; + uint8 alpha; + uint8 pad; + uint32 collPriority; + xVec3 pos; + xVec3 at; + float32 tol_movement; + float32 radiusOptional; + xEnt* castOnEnt; + xShadowSimplePoly poly; + float32 envHeight; + float32 shadowHeight; + union + { + uint32 raster; + RwRaster* ptr_raster; + }; + float32 dydx; + float32 dydz; + xVec3 corner[4]; + void* collSkipsItem; }; enum sceDemoEndReason { - SCE_DEMO_ENDREASON_ATTRACT_INTERRUPTED, - SCE_DEMO_ENDREASON_ATTRACT_COMPLETE, - SCE_DEMO_ENDREASON_PLAYABLE_INACTIVITY_TIMEOUT, - SCE_DEMO_ENDREASON_PLAYABLE_GAMEPLAY_TIMEOUT, - SCE_DEMO_ENDREASON_PLAYABLE_COMPLETE, - SCE_DEMO_ENDREASON_PLAYABLE_QUIT, - SCE_DEMO_ENDREASON_NETCONFIG_REQUEST, - SCE_DEMO_ENDREASON_NETCONFIG_COMPLETE + SCE_DEMO_ENDREASON_ATTRACT_INTERRUPTED, + SCE_DEMO_ENDREASON_ATTRACT_COMPLETE, + SCE_DEMO_ENDREASON_PLAYABLE_INACTIVITY_TIMEOUT, + SCE_DEMO_ENDREASON_PLAYABLE_GAMEPLAY_TIMEOUT, + SCE_DEMO_ENDREASON_PLAYABLE_COMPLETE, + SCE_DEMO_ENDREASON_PLAYABLE_QUIT, + SCE_DEMO_ENDREASON_NETCONFIG_REQUEST, + SCE_DEMO_ENDREASON_NETCONFIG_COMPLETE }; struct xCamera : xBase { - RwCamera* lo_cam; - xMat4x3 mat; - xMat4x3 omat; - xMat3x3 mbasis; - xBound bound; - xMat4x3* tgt_mat; - xMat4x3* tgt_omat; - xBound* tgt_bound; - xVec3 focus; - xScene* sc; - xVec3 tran_accum; - float32 fov; - uint32 flags; - float32 tmr; - float32 tm_acc; - float32 tm_dec; - float32 ltmr; - float32 ltm_acc; - float32 ltm_dec; - float32 dmin; - float32 dmax; - float32 dcur; - float32 dgoal; - float32 hmin; - float32 hmax; - float32 hcur; - float32 hgoal; - float32 pmin; - float32 pmax; - float32 pcur; - float32 pgoal; - float32 depv; - float32 hepv; - float32 pepv; - float32 orn_epv; - float32 yaw_epv; - float32 pitch_epv; - float32 roll_epv; - xQuat orn_cur; - xQuat orn_goal; - xQuat orn_diff; - float32 yaw_cur; - float32 yaw_goal; - float32 pitch_cur; - float32 pitch_goal; - float32 roll_cur; - float32 roll_goal; - float32 dct; - float32 dcd; - float32 dccv; - float32 dcsv; - float32 hct; - float32 hcd; - float32 hccv; - float32 hcsv; - float32 pct; - float32 pcd; - float32 pccv; - float32 pcsv; - float32 orn_ct; - float32 orn_cd; - float32 orn_ccv; - float32 orn_csv; - float32 yaw_ct; - float32 yaw_cd; - float32 yaw_ccv; - float32 yaw_csv; - float32 pitch_ct; - float32 pitch_cd; - float32 pitch_ccv; - float32 pitch_csv; - float32 roll_ct; - float32 roll_cd; - float32 roll_ccv; - float32 roll_csv; - xVec4 frustplane[12]; - float32 smoothOutwardSlidePos; + RwCamera* lo_cam; + xMat4x3 mat; + xMat4x3 omat; + xMat3x3 mbasis; + xBound bound; + xMat4x3* tgt_mat; + xMat4x3* tgt_omat; + xBound* tgt_bound; + xVec3 focus; + xScene* sc; + xVec3 tran_accum; + float32 fov; + uint32 flags; + float32 tmr; + float32 tm_acc; + float32 tm_dec; + float32 ltmr; + float32 ltm_acc; + float32 ltm_dec; + float32 dmin; + float32 dmax; + float32 dcur; + float32 dgoal; + float32 hmin; + float32 hmax; + float32 hcur; + float32 hgoal; + float32 pmin; + float32 pmax; + float32 pcur; + float32 pgoal; + float32 depv; + float32 hepv; + float32 pepv; + float32 orn_epv; + float32 yaw_epv; + float32 pitch_epv; + float32 roll_epv; + xQuat orn_cur; + xQuat orn_goal; + xQuat orn_diff; + float32 yaw_cur; + float32 yaw_goal; + float32 pitch_cur; + float32 pitch_goal; + float32 roll_cur; + float32 roll_goal; + float32 dct; + float32 dcd; + float32 dccv; + float32 dcsv; + float32 hct; + float32 hcd; + float32 hccv; + float32 hcsv; + float32 pct; + float32 pcd; + float32 pccv; + float32 pcsv; + float32 orn_ct; + float32 orn_cd; + float32 orn_ccv; + float32 orn_csv; + float32 yaw_ct; + float32 yaw_cd; + float32 yaw_ccv; + float32 yaw_csv; + float32 pitch_ct; + float32 pitch_cd; + float32 pitch_ccv; + float32 pitch_csv; + float32 roll_ct; + float32 roll_cd; + float32 roll_ccv; + float32 roll_csv; + xVec4 frustplane[12]; + float32 smoothOutwardSlidePos; }; struct xAnimMultiFileEntry { - uint32 ID; - xAnimFile* File; + uint32 ID; + xAnimFile* File; }; struct RwLLLink { - RwLLLink* next; - RwLLLink* prev; + RwLLLink* next; + RwLLLink* prev; }; enum RpWorldRenderOrder { - rpWORLDRENDERNARENDERORDER, - rpWORLDRENDERFRONT2BACK, - rpWORLDRENDERBACK2FRONT, - rpWORLDRENDERORDERFORCEENUMSIZEINT = 0x7fffffff + rpWORLDRENDERNARENDERORDER, + rpWORLDRENDERFRONT2BACK, + rpWORLDRENDERBACK2FRONT, + rpWORLDRENDERORDERFORCEENUMSIZEINT = 0x7fffffff }; struct RpMeshHeader { - uint32 flags; - uint16 numMeshes; - uint16 serialNum; - uint32 totalIndicesInMesh; - uint32 firstMeshOffset; + uint32 flags; + uint16 numMeshes; + uint16 serialNum; + uint32 totalIndicesInMesh; + uint32 firstMeshOffset; }; struct xGlobals { - xCamera oldSkoolCamera; - xCamGroup* cam; - xCamScreen* screen; - xVec4 frustplane[12]; - _tagxPad* pad0; - _tagxPad* pad1; - _tagxPad* pad2; - _tagxPad* pad3; - _tagxPad* pad[4]; - int32 profile; - int8 profFunc[128][6]; - xUpdateCullMgr* updateMgr; - int32 sceneFirst; - int8 sceneStart[32]; - RpWorld* currWorld; - iFogParams fog; - iFogParams fogA; - iFogParams fogB; - long32 fog_t0; - long32 fog_t1; - int32 option_vibration; - int32 option_subtitles; - uint32 slowdown; - float32 update_dt; - int16 ForceCinematic; - int16 ForceAllCinematics; - int32 useHIPHOP; - uint8 NoMusic; - uint8 NoCutscenes; - uint8 NoPadCheck; - int8 currentActivePad; - uint8 firstStartPressed; - uint8 fromLauncher; - uint8 FlashWIP; - uint8 inLoadingScreen; - uint8 LoadingScene; - uint8 InitializingLoadingScreen; - uint8 ForceMono; - uint32 minVSyncCnt; - uint8 dontShowPadMessageDuringLoadingOrCutScene; - uint8 autoSaveFeature; - int32 asyncLoadingScreen; - int32 asyncLoadingFlags; - int8 fromLauncherUser[32]; - zPlayer* ___player_ent_dont_use_directly; - zScene* sceneCur; - zScene* scenePreload; - PS2DemoGlobals* PS2demo; - int8 watermark[127]; - uint8 watermarkAlpha; - float32 watermarkSize; + xCamera oldSkoolCamera; + xCamGroup* cam; + xCamScreen* screen; + xVec4 frustplane[12]; + _tagxPad* pad0; + _tagxPad* pad1; + _tagxPad* pad2; + _tagxPad* pad3; + _tagxPad* pad[4]; + int32 profile; + int8 profFunc[128][6]; + xUpdateCullMgr* updateMgr; + int32 sceneFirst; + int8 sceneStart[32]; + RpWorld* currWorld; + iFogParams fog; + iFogParams fogA; + iFogParams fogB; + long32 fog_t0; + long32 fog_t1; + int32 option_vibration; + int32 option_subtitles; + uint32 slowdown; + float32 update_dt; + int16 ForceCinematic; + int16 ForceAllCinematics; + int32 useHIPHOP; + uint8 NoMusic; + uint8 NoCutscenes; + uint8 NoPadCheck; + int8 currentActivePad; + uint8 firstStartPressed; + uint8 fromLauncher; + uint8 FlashWIP; + uint8 inLoadingScreen; + uint8 LoadingScene; + uint8 InitializingLoadingScreen; + uint8 ForceMono; + uint32 minVSyncCnt; + uint8 dontShowPadMessageDuringLoadingOrCutScene; + uint8 autoSaveFeature; + int32 asyncLoadingScreen; + int32 asyncLoadingFlags; + int8 fromLauncherUser[32]; + zPlayer* ___player_ent_dont_use_directly; + zScene* sceneCur; + zScene* scenePreload; + PS2DemoGlobals* PS2demo; + int8 watermark[127]; + uint8 watermarkAlpha; + float32 watermarkSize; }; struct xModelTag { - xVec3 v; - uint32 matidx; - float32 wt[4]; + xVec3 v; + uint32 matidx; + float32 wt[4]; }; struct RxPipeline { - int32 locked; - uint32 numNodes; - RxPipelineNode* nodes; - uint32 packetNumClusterSlots; - rxEmbeddedPacketState embeddedPacketState; - RxPacket* embeddedPacket; - uint32 numInputRequirements; - RxPipelineRequiresCluster* inputRequirements; - void* superBlock; - uint32 superBlockSize; - uint32 entryPoint; - uint32 pluginId; - uint32 pluginData; + int32 locked; + uint32 numNodes; + RxPipelineNode* nodes; + uint32 packetNumClusterSlots; + rxEmbeddedPacketState embeddedPacketState; + RxPacket* embeddedPacket; + uint32 numInputRequirements; + RxPipelineRequiresCluster* inputRequirements; + void* superBlock; + uint32 superBlockSize; + uint32 entryPoint; + uint32 pluginId; + uint32 pluginData; }; struct xAnimActiveEffect { - xAnimEffect* Effect; - union - { - uint32 Handle; - iSndHandle SndHandle; - }; + xAnimEffect* Effect; + union + { + uint32 Handle; + iSndHandle SndHandle; + }; }; struct RxPipelineNodeTopSortData { - uint32 numIns; - uint32 numInsVisited; - rxReq* req; + uint32 numIns; + uint32 numInsVisited; + rxReq* req; }; struct xJSPMiniLightTie { - RwLLLink lightInWorldSector; - RpLight* light; + RwLLLink lightInWorldSector; + RpLight* light; }; struct xEnv { - iEnv* geom; - iEnv ienv; - xLightKit* lightKit; + iEnv* geom; + iEnv ienv; + xLightKit* lightKit; }; struct xEntDrive { - uint32 flags; - float32 otm; - float32 otmr; - float32 os; - float32 tm; - float32 tmr; - float32 s; - xEnt* old_driver; - xEnt* driver; - xEnt* driven; - xVec3 driven_pos_in_old_driver; - xVec3 driven_pos_in_driver; - xVec3 last_driven_pos; - float32 yaw_in_driver; - xVec3 dloc; - tri_data_0 tri; + uint32 flags; + float32 otm; + float32 otmr; + float32 os; + float32 tm; + float32 tmr; + float32 s; + xEnt* old_driver; + xEnt* driver; + xEnt* driven; + xVec3 driven_pos_in_old_driver; + xVec3 driven_pos_in_driver; + xVec3 last_driven_pos; + float32 yaw_in_driver; + xVec3 dloc; + tri_data_0 tri; }; struct xParticleBatchSystem { - ptank_group_type pool_type; - render_state rs; - uint32 order_group; - int32 order_index; - int32 stride; - int32(*update)(uint8*, int32, ptank_pool&, float32, void*); - void* context; + ptank_group_type pool_type; + render_state rs; + uint32 order_group; + int32 order_index; + int32 stride; + int32 (*update)(uint8*, int32, ptank_pool&, float32, void*); + void* context; }; struct RxPipelineNodeParam { - void* dataParam; - RxHeap* heap; + void* dataParam; + RxHeap* heap; }; struct xCamCoordSphere { - xVec3 origin; - float32 dist; - xQuat dir; + xVec3 origin; + float32 dist; + xQuat dir; }; enum iSndHandle @@ -2548,20 +2548,20 @@ enum iSndHandle struct RwTexDictionary { - RwObject object; - RwLinkList texturesInDict; - RwLLLink lInInstance; + RwObject object; + RwLinkList texturesInDict; + RwLLLink lInInstance; }; struct iFogParams { - RwFogType type; - float32 start; - float32 stop; - float32 density; - RwRGBA fogcolor; - RwRGBA bgcolor; - uint8* table; + RwFogType type; + float32 start; + float32 stop; + float32 density; + RwRGBA fogcolor; + RwRGBA bgcolor; + uint8* table; }; struct rxReq @@ -2570,162 +2570,162 @@ struct rxReq struct xAnimMultiFileBase { - uint32 Count; + uint32 Count; }; struct xClumpCollBSPVertInfo { - uint16 atomIndex; - uint16 meshVertIndex; + uint16 atomIndex; + uint16 meshVertIndex; }; enum _tagPadState { - ePad_Disabled, - ePad_DisabledError, - ePad_Enabled, - ePad_Missing, - ePad_Total + ePad_Disabled, + ePad_DisabledError, + ePad_Enabled, + ePad_Missing, + ePad_Total }; struct RwTexCoords { - float32 u; - float32 v; + float32 u; + float32 v; }; struct xEntShadow { - xVec3 pos; - xVec3 vec; - RpAtomic* shadowModel; - float32 dst_cast; - float32 radius[2]; - struct - { - int32 flg_castOnOneDFF : 1; - int32 flg_castOnAllDFF : 1; - int32 flg_disableEnvCast : 1; - int32 flg_shadowUnused : 29; - }; + xVec3 pos; + xVec3 vec; + RpAtomic* shadowModel; + float32 dst_cast; + float32 radius[2]; + struct + { + int32 flg_castOnOneDFF : 1; + int32 flg_castOnAllDFF : 1; + int32 flg_disableEnvCast : 1; + int32 flg_shadowUnused : 29; + }; }; struct RxPipelineRequiresCluster { - RxClusterDefinition* clusterDef; - RxClusterValidityReq rqdOrOpt; - uint32 slotIndex; + RxClusterDefinition* clusterDef; + RxClusterValidityReq rqdOrOpt; + uint32 slotIndex; }; enum zGlobalDemoType { - zDT_NONE, - zDT_E3, - zDT_PUBLICITY, - zDT_OPM, - zDT_LAST + zDT_NONE, + zDT_E3, + zDT_PUBLICITY, + zDT_OPM, + zDT_LAST }; struct RxHeap { - uint32 superBlockSize; - rxHeapSuperBlockDescriptor* head; - rxHeapBlockHeader* headBlock; - rxHeapFreeBlock* freeBlocks; - uint32 entriesAlloced; - uint32 entriesUsed; - int32 dirty; + uint32 superBlockSize; + rxHeapSuperBlockDescriptor* head; + rxHeapBlockHeader* headBlock; + rxHeapFreeBlock* freeBlocks; + uint32 entriesAlloced; + uint32 entriesUsed; + int32 dirty; }; struct zGlobalSettings { - uint16 AnalogMin; - uint16 AnalogMax; - float32 SundaeTime; - float32 SundaeMult; - uint32 InitialShinyCount; - uint32 InitialSpatulaCount; - int32 ShinyValuePurple; - int32 ShinyValueBlue; - int32 ShinyValueGreen; - int32 ShinyValueYellow; - int32 ShinyValueRed; - int32 ShinyValueCombo0; - int32 ShinyValueCombo1; - int32 ShinyValueCombo2; - int32 ShinyValueCombo3; - int32 ShinyValueCombo4; - int32 ShinyValueCombo5; - int32 ShinyValueCombo6; - int32 ShinyValueCombo7; - int32 ShinyValueCombo8; - int32 ShinyValueCombo9; - int32 ShinyValueCombo10; - int32 ShinyValueCombo11; - int32 ShinyValueCombo12; - int32 ShinyValueCombo13; - int32 ShinyValueCombo14; - int32 ShinyValueCombo15; - float32 ComboTimer; - uint32 Initial_Specials; - uint32 TakeDamage; - float32 DamageTimeHit; - float32 DamageTimeSurface; - float32 DamageTimeEGen; - float32 DamageSurfKnock; - float32 DamageGiveHealthKnock; - uint32 CheatSpongeball; - uint32 CheatPlayerSwitch; - uint32 CheatAlwaysPortal; - uint32 CheatFlyToggle; - uint32 FriendlySelectMode; - float32 RotMatchMaxAngle; - float32 RotMatchMatchTime; - float32 RotMatchRelaxTime; - float32 Gravity; - float32 BBashTime; - float32 BBashHeight; - float32 BBashDelay; - float32 BBashCVTime; - float32 BBounceSpeed; - float32 BBashGauntletDelay; - float32 BBashGauntletBlastRadius; - float32 BSpinMinFrame; - float32 BSpinMaxFrame; - float32 BSpinRadius; - float32 BSpinReach; - float32 BSpinReachUpgrade; - float32 CartwheelDamageSize; - float32 BubbleBowlTimeDelay; - float32 BubbleBowlLaunchPosLeft; - float32 BubbleBowlLaunchPosUp; - float32 BubbleBowlLaunchPosAt; - float32 BubbleBowlLaunchVelLeft; - float32 BubbleBowlLaunchVelUp; - float32 BubbleBowlLaunchVelAt; - float32 BubbleBowlPercentIncrease; - float32 BubbleBowlMinSpeed; - float32 BubbleBowlMinRecoverTime; - float32 SlideAccelVelMin; - float32 SlideAccelVelMax; - float32 SlideAccelStart; - float32 SlideAccelEnd; - float32 SlideAccelPlayerFwd; - float32 SlideAccelPlayerBack; - float32 SlideAccelPlayerSide; - float32 SlideVelMaxStart; - float32 SlideVelMaxEnd; - float32 SlideVelMaxIncTime; - float32 SlideVelMaxIncAccel; - float32 SlideAirHoldTime; - float32 SlideAirSlowTime; - float32 SlideAirDblHoldTime; - float32 SlideAirDblSlowTime; - float32 SlideVelDblBoost; - uint8 SlideApplyPhysics; - uint8 PowerUp[10]; - uint8 InitialPowerUp[10]; - uint8 AttractModeDuringGameplay; + uint16 AnalogMin; + uint16 AnalogMax; + float32 SundaeTime; + float32 SundaeMult; + uint32 InitialShinyCount; + uint32 InitialSpatulaCount; + int32 ShinyValuePurple; + int32 ShinyValueBlue; + int32 ShinyValueGreen; + int32 ShinyValueYellow; + int32 ShinyValueRed; + int32 ShinyValueCombo0; + int32 ShinyValueCombo1; + int32 ShinyValueCombo2; + int32 ShinyValueCombo3; + int32 ShinyValueCombo4; + int32 ShinyValueCombo5; + int32 ShinyValueCombo6; + int32 ShinyValueCombo7; + int32 ShinyValueCombo8; + int32 ShinyValueCombo9; + int32 ShinyValueCombo10; + int32 ShinyValueCombo11; + int32 ShinyValueCombo12; + int32 ShinyValueCombo13; + int32 ShinyValueCombo14; + int32 ShinyValueCombo15; + float32 ComboTimer; + uint32 Initial_Specials; + uint32 TakeDamage; + float32 DamageTimeHit; + float32 DamageTimeSurface; + float32 DamageTimeEGen; + float32 DamageSurfKnock; + float32 DamageGiveHealthKnock; + uint32 CheatSpongeball; + uint32 CheatPlayerSwitch; + uint32 CheatAlwaysPortal; + uint32 CheatFlyToggle; + uint32 FriendlySelectMode; + float32 RotMatchMaxAngle; + float32 RotMatchMatchTime; + float32 RotMatchRelaxTime; + float32 Gravity; + float32 BBashTime; + float32 BBashHeight; + float32 BBashDelay; + float32 BBashCVTime; + float32 BBounceSpeed; + float32 BBashGauntletDelay; + float32 BBashGauntletBlastRadius; + float32 BSpinMinFrame; + float32 BSpinMaxFrame; + float32 BSpinRadius; + float32 BSpinReach; + float32 BSpinReachUpgrade; + float32 CartwheelDamageSize; + float32 BubbleBowlTimeDelay; + float32 BubbleBowlLaunchPosLeft; + float32 BubbleBowlLaunchPosUp; + float32 BubbleBowlLaunchPosAt; + float32 BubbleBowlLaunchVelLeft; + float32 BubbleBowlLaunchVelUp; + float32 BubbleBowlLaunchVelAt; + float32 BubbleBowlPercentIncrease; + float32 BubbleBowlMinSpeed; + float32 BubbleBowlMinRecoverTime; + float32 SlideAccelVelMin; + float32 SlideAccelVelMax; + float32 SlideAccelStart; + float32 SlideAccelEnd; + float32 SlideAccelPlayerFwd; + float32 SlideAccelPlayerBack; + float32 SlideAccelPlayerSide; + float32 SlideVelMaxStart; + float32 SlideVelMaxEnd; + float32 SlideVelMaxIncTime; + float32 SlideVelMaxIncAccel; + float32 SlideAirHoldTime; + float32 SlideAirSlowTime; + float32 SlideAirDblHoldTime; + float32 SlideAirDblSlowTime; + float32 SlideVelDblBoost; + uint8 SlideApplyPhysics; + uint8 PowerUp[10]; + uint8 InitialPowerUp[10]; + uint8 AttractModeDuringGameplay; }; struct anim_coll_data @@ -2734,131 +2734,131 @@ struct anim_coll_data struct xModelPipe { - uint32 Flags; - uint8 Layer; - uint8 AlphaDiscard; - uint16 PipePad; + uint32 Flags; + uint8 Layer; + uint8 AlphaDiscard; + uint16 PipePad; }; struct RwLinkList { - RwLLLink link; + RwLLLink link; }; struct zPlayerLassoInfo { - float32 dist; - xEnt* swingTarget; - xEnt* releasedSwing; - zLasso lasso; + float32 dist; + xEnt* swingTarget; + xEnt* releasedSwing; + zLasso lasso; }; struct zLedgeGrabParams { - float32 animGrab; - float32 zdist; - xVec3 tranTable[60]; - int32 tranCount; - xEnt* optr; - xMat4x3 omat; - float32 y0det; - float32 dydet; - float32 r0det; - float32 drdet; - float32 thdet; - float32 rtime; - float32 ttime; - float32 tmr; - xVec3 spos; - xVec3 epos; - xVec3 tpos; - int32 nrays; - int32 rrand; - float32 startrot; - float32 endrot; + float32 animGrab; + float32 zdist; + xVec3 tranTable[60]; + int32 tranCount; + xEnt* optr; + xMat4x3 omat; + float32 y0det; + float32 dydet; + float32 r0det; + float32 drdet; + float32 thdet; + float32 rtime; + float32 ttime; + float32 tmr; + xVec3 spos; + xVec3 epos; + xVec3 tpos; + int32 nrays; + int32 rrand; + float32 startrot; + float32 endrot; }; struct xClumpCollBSPTriangle { - _class_0 v; - uint8 flags; - uint8 detailed_info_cache_index; - uint16 matIndex; + _class_0 v; + uint8 flags; + uint8 detailed_info_cache_index; + uint16 matIndex; }; struct xCoef { - float32 a[4]; + float32 a[4]; }; struct _class_5 { - uint32 attach_to; - xVec3 loc; - xVec3 dir; - xVec3 scale; + uint32 attach_to; + xVec3 loc; + xVec3 dir; + xVec3 scale; }; struct RxNodeDefinition { - int8* name; - RxNodeMethods nodeMethods; - RxIoSpec io; - uint32 pipelineNodePrivateDataSize; - RxNodeDefEditable editable; - int32 InputPipesCnt; + int8* name; + RxNodeMethods nodeMethods; + RxIoSpec io; + uint32 pipelineNodePrivateDataSize; + RxNodeDefEditable editable; + int32 InputPipesCnt; }; struct RpTriangle { - uint16 vertIndex[3]; - uint16 matIndex; + uint16 vertIndex[3]; + uint16 matIndex; }; struct _tagPadAnalog { - int8 x; - int8 y; + int8 x; + int8 y; }; struct zGlobals : xGlobals { - uint32 playerTag; - uint32 playerLoaded; - uint32 playerLoadOrder[8]; - uint8 invertJoystick; - zPlayerGlobals player; - zAssetPickupTable* pickupTable; - zCutsceneMgr* cmgr; - zCutsceneMgr* DisabledCutsceneDoneMgr; - int8 startDebugMode[32]; - uint32 noMovies; - uint32 boundUpdateTime; - uint8 draw_player_after_fx; - zGlobalDemoType demoType; + uint32 playerTag; + uint32 playerLoaded; + uint32 playerLoadOrder[8]; + uint8 invertJoystick; + zPlayerGlobals player; + zAssetPickupTable* pickupTable; + zCutsceneMgr* cmgr; + zCutsceneMgr* DisabledCutsceneDoneMgr; + int8 startDebugMode[32]; + uint32 noMovies; + uint32 boundUpdateTime; + uint8 draw_player_after_fx; + zGlobalDemoType demoType; }; struct rxHeapFreeBlock { - uint32 size; - rxHeapBlockHeader* ptr; + uint32 size; + rxHeapBlockHeader* ptr; }; struct RwRGBAReal { - float32 red; - float32 green; - float32 blue; - float32 alpha; + float32 red; + float32 green; + float32 blue; + float32 alpha; }; struct RwObject { - uint8 type; - uint8 subType; - uint8 flags; - uint8 privateFlags; - void* parent; + uint8 type; + uint8 subType; + uint8 flags; + uint8 privateFlags; + void* parent; }; int8 buffer[16]; @@ -2871,8 +2871,8 @@ float32 wind_yaw_time; float32 wind_pitch_time; xVec3 wind_delta; zGlobals globals; -int32(*update_particles)(uint8*, int32, ptank_pool&, float32, void*); -void(*cb_dispatch)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +int32 (*update_particles)(uint8*, int32, ptank_pool&, float32, void*); +void (*cb_dispatch)(xBase*, xBase*, uint32, float32*, xBase*, uint32); int32 _rpPTankAtomicDataOffset; void cb_dispatch(xBase* to, uint32 event); @@ -2889,317 +2889,316 @@ int32 update_particles(uint8* mem, int32 count, ptank_pool& apool, float32 dt); // Start address: 0x490b30 void zSmokeEmitter::cb_dispatch(xBase* to, uint32 event) { - zSmokeEmitter& e; - // Line 692, Address: 0x490b30, Func Offset: 0 - // Line 695, Address: 0x490b4c, Func Offset: 0x1c - // Line 696, Address: 0x490b54, Func Offset: 0x24 - // Line 698, Address: 0x490b5c, Func Offset: 0x2c - // Line 699, Address: 0x490b6c, Func Offset: 0x3c - // Line 702, Address: 0x490b70, Func Offset: 0x40 - // Func End, Address: 0x490b78, Func Offset: 0x48 + zSmokeEmitter& e; + // Line 692, Address: 0x490b30, Func Offset: 0 + // Line 695, Address: 0x490b4c, Func Offset: 0x1c + // Line 696, Address: 0x490b54, Func Offset: 0x24 + // Line 698, Address: 0x490b5c, Func Offset: 0x2c + // Line 699, Address: 0x490b6c, Func Offset: 0x3c + // Line 702, Address: 0x490b70, Func Offset: 0x40 + // Func End, Address: 0x490b78, Func Offset: 0x48 } // update__13zSmokeEmitterFf // Start address: 0x490b80 void zSmokeEmitter::update(float32 dt) { - float32 rate; - int32 emit; - uint8* mem; - int32 have; - smoke_particle* p; - smoke_particle* endp; - int32 frame; - // Line 559, Address: 0x490b80, Func Offset: 0 - // Line 564, Address: 0x490bc4, Func Offset: 0x44 - // Line 559, Address: 0x490bc8, Func Offset: 0x48 - // Line 564, Address: 0x490bcc, Func Offset: 0x4c - // Line 559, Address: 0x490bd8, Func Offset: 0x58 - // Line 564, Address: 0x490bdc, Func Offset: 0x5c - // Line 565, Address: 0x490be0, Func Offset: 0x60 - // Line 566, Address: 0x490bec, Func Offset: 0x6c - // Line 568, Address: 0x490bf4, Func Offset: 0x74 - // Line 571, Address: 0x490c04, Func Offset: 0x84 - // Line 573, Address: 0x490c24, Func Offset: 0xa4 - // Line 574, Address: 0x490c38, Func Offset: 0xb8 - // Line 577, Address: 0x490c40, Func Offset: 0xc0 - // Line 578, Address: 0x490c54, Func Offset: 0xd4 - // Line 580, Address: 0x490c60, Func Offset: 0xe0 - // Line 582, Address: 0x490cbc, Func Offset: 0x13c - // Line 583, Address: 0x490d10, Func Offset: 0x190 - // Line 584, Address: 0x490d34, Func Offset: 0x1b4 - // Line 587, Address: 0x490d50, Func Offset: 0x1d0 - // Line 588, Address: 0x490e00, Func Offset: 0x280 - // Line 587, Address: 0x490e04, Func Offset: 0x284 - // Line 588, Address: 0x490e08, Func Offset: 0x288 - // Line 591, Address: 0x490e58, Func Offset: 0x2d8 - // Line 592, Address: 0x490e5c, Func Offset: 0x2dc - // Line 591, Address: 0x490e60, Func Offset: 0x2e0 - // Line 592, Address: 0x490e64, Func Offset: 0x2e4 - // Line 591, Address: 0x490e68, Func Offset: 0x2e8 - // Line 592, Address: 0x490e78, Func Offset: 0x2f8 - // Line 593, Address: 0x490f7c, Func Offset: 0x3fc - // Line 595, Address: 0x490ff8, Func Offset: 0x478 - // Line 596, Address: 0x49100c, Func Offset: 0x48c - // Line 599, Address: 0x491014, Func Offset: 0x494 - // Line 601, Address: 0x491020, Func Offset: 0x4a0 - // Line 599, Address: 0x491024, Func Offset: 0x4a4 - // Line 601, Address: 0x491028, Func Offset: 0x4a8 - // Line 599, Address: 0x49102c, Func Offset: 0x4ac - // Line 601, Address: 0x49103c, Func Offset: 0x4bc - // Line 602, Address: 0x491074, Func Offset: 0x4f4 - // Line 603, Address: 0x491090, Func Offset: 0x510 - // Line 605, Address: 0x4910a0, Func Offset: 0x520 - // Line 606, Address: 0x4910a4, Func Offset: 0x524 - // Line 607, Address: 0x4910b0, Func Offset: 0x530 - // Func End, Address: 0x4910f4, Func Offset: 0x574 + float32 rate; + int32 emit; + uint8* mem; + int32 have; + smoke_particle* p; + smoke_particle* endp; + int32 frame; + // Line 559, Address: 0x490b80, Func Offset: 0 + // Line 564, Address: 0x490bc4, Func Offset: 0x44 + // Line 559, Address: 0x490bc8, Func Offset: 0x48 + // Line 564, Address: 0x490bcc, Func Offset: 0x4c + // Line 559, Address: 0x490bd8, Func Offset: 0x58 + // Line 564, Address: 0x490bdc, Func Offset: 0x5c + // Line 565, Address: 0x490be0, Func Offset: 0x60 + // Line 566, Address: 0x490bec, Func Offset: 0x6c + // Line 568, Address: 0x490bf4, Func Offset: 0x74 + // Line 571, Address: 0x490c04, Func Offset: 0x84 + // Line 573, Address: 0x490c24, Func Offset: 0xa4 + // Line 574, Address: 0x490c38, Func Offset: 0xb8 + // Line 577, Address: 0x490c40, Func Offset: 0xc0 + // Line 578, Address: 0x490c54, Func Offset: 0xd4 + // Line 580, Address: 0x490c60, Func Offset: 0xe0 + // Line 582, Address: 0x490cbc, Func Offset: 0x13c + // Line 583, Address: 0x490d10, Func Offset: 0x190 + // Line 584, Address: 0x490d34, Func Offset: 0x1b4 + // Line 587, Address: 0x490d50, Func Offset: 0x1d0 + // Line 588, Address: 0x490e00, Func Offset: 0x280 + // Line 587, Address: 0x490e04, Func Offset: 0x284 + // Line 588, Address: 0x490e08, Func Offset: 0x288 + // Line 591, Address: 0x490e58, Func Offset: 0x2d8 + // Line 592, Address: 0x490e5c, Func Offset: 0x2dc + // Line 591, Address: 0x490e60, Func Offset: 0x2e0 + // Line 592, Address: 0x490e64, Func Offset: 0x2e4 + // Line 591, Address: 0x490e68, Func Offset: 0x2e8 + // Line 592, Address: 0x490e78, Func Offset: 0x2f8 + // Line 593, Address: 0x490f7c, Func Offset: 0x3fc + // Line 595, Address: 0x490ff8, Func Offset: 0x478 + // Line 596, Address: 0x49100c, Func Offset: 0x48c + // Line 599, Address: 0x491014, Func Offset: 0x494 + // Line 601, Address: 0x491020, Func Offset: 0x4a0 + // Line 599, Address: 0x491024, Func Offset: 0x4a4 + // Line 601, Address: 0x491028, Func Offset: 0x4a8 + // Line 599, Address: 0x49102c, Func Offset: 0x4ac + // Line 601, Address: 0x49103c, Func Offset: 0x4bc + // Line 602, Address: 0x491074, Func Offset: 0x4f4 + // Line 603, Address: 0x491090, Func Offset: 0x510 + // Line 605, Address: 0x4910a0, Func Offset: 0x520 + // Line 606, Address: 0x4910a4, Func Offset: 0x524 + // Line 607, Address: 0x4910b0, Func Offset: 0x530 + // Func End, Address: 0x4910f4, Func Offset: 0x574 } // load__13zSmokeEmitterFRCQ213zSmokeEmitter10asset_type // Start address: 0x491100 void zSmokeEmitter::load(asset_type& a) { - xMat3x3 dir_mat; - // Line 518, Address: 0x491100, Func Offset: 0 - // Line 519, Address: 0x491110, Func Offset: 0x10 - // Line 522, Address: 0x491114, Func Offset: 0x14 - // Line 523, Address: 0x491120, Func Offset: 0x20 - // Line 524, Address: 0x491124, Func Offset: 0x24 - // Line 523, Address: 0x49112c, Func Offset: 0x2c - // Line 524, Address: 0x491130, Func Offset: 0x30 - // Line 525, Address: 0x491134, Func Offset: 0x34 - // Line 528, Address: 0x491154, Func Offset: 0x54 - // Line 529, Address: 0x49123c, Func Offset: 0x13c - // Line 528, Address: 0x491240, Func Offset: 0x140 - // Line 529, Address: 0x491244, Func Offset: 0x144 - // Line 534, Address: 0x49133c, Func Offset: 0x23c - // Line 529, Address: 0x491340, Func Offset: 0x240 - // Line 530, Address: 0x49136c, Func Offset: 0x26c - // Line 532, Address: 0x49137c, Func Offset: 0x27c - // Line 534, Address: 0x491388, Func Offset: 0x288 - // Line 535, Address: 0x491394, Func Offset: 0x294 - // Line 536, Address: 0x4913b0, Func Offset: 0x2b0 - // Line 537, Address: 0x4913c0, Func Offset: 0x2c0 - // Line 538, Address: 0x491408, Func Offset: 0x308 - // Line 540, Address: 0x491450, Func Offset: 0x350 - // Line 542, Address: 0x491460, Func Offset: 0x360 - // Line 544, Address: 0x49147c, Func Offset: 0x37c - // Line 545, Address: 0x4914e8, Func Offset: 0x3e8 - // Line 546, Address: 0x491554, Func Offset: 0x454 - // Line 547, Address: 0x4915c0, Func Offset: 0x4c0 - // Line 550, Address: 0x491628, Func Offset: 0x528 - // Func End, Address: 0x49163c, Func Offset: 0x53c + xMat3x3 dir_mat; + // Line 518, Address: 0x491100, Func Offset: 0 + // Line 519, Address: 0x491110, Func Offset: 0x10 + // Line 522, Address: 0x491114, Func Offset: 0x14 + // Line 523, Address: 0x491120, Func Offset: 0x20 + // Line 524, Address: 0x491124, Func Offset: 0x24 + // Line 523, Address: 0x49112c, Func Offset: 0x2c + // Line 524, Address: 0x491130, Func Offset: 0x30 + // Line 525, Address: 0x491134, Func Offset: 0x34 + // Line 528, Address: 0x491154, Func Offset: 0x54 + // Line 529, Address: 0x49123c, Func Offset: 0x13c + // Line 528, Address: 0x491240, Func Offset: 0x140 + // Line 529, Address: 0x491244, Func Offset: 0x144 + // Line 534, Address: 0x49133c, Func Offset: 0x23c + // Line 529, Address: 0x491340, Func Offset: 0x240 + // Line 530, Address: 0x49136c, Func Offset: 0x26c + // Line 532, Address: 0x49137c, Func Offset: 0x27c + // Line 534, Address: 0x491388, Func Offset: 0x288 + // Line 535, Address: 0x491394, Func Offset: 0x294 + // Line 536, Address: 0x4913b0, Func Offset: 0x2b0 + // Line 537, Address: 0x4913c0, Func Offset: 0x2c0 + // Line 538, Address: 0x491408, Func Offset: 0x308 + // Line 540, Address: 0x491450, Func Offset: 0x350 + // Line 542, Address: 0x491460, Func Offset: 0x360 + // Line 544, Address: 0x49147c, Func Offset: 0x37c + // Line 545, Address: 0x4914e8, Func Offset: 0x3e8 + // Line 546, Address: 0x491554, Func Offset: 0x454 + // Line 547, Address: 0x4915c0, Func Offset: 0x4c0 + // Line 550, Address: 0x491628, Func Offset: 0x528 + // Func End, Address: 0x49163c, Func Offset: 0x53c } // load__13zSmokeEmitterFR5xBaseR9xDynAssetUi // Start address: 0x491640 void zSmokeEmitter::load(xBase& data, xDynAsset& asset) { - // Line 514, Address: 0x491640, Func Offset: 0 - // Func End, Address: 0x491648, Func Offset: 0x8 + // Line 514, Address: 0x491640, Func Offset: 0 + // Func End, Address: 0x491648, Func Offset: 0x8 } // zSmokeUpdate__Ff // Start address: 0x491650 void zSmokeUpdate(float32 dt) { - // Line 396, Address: 0x491650, Func Offset: 0 - // Line 397, Address: 0x491664, Func Offset: 0x14 - // Line 398, Address: 0x49166c, Func Offset: 0x1c - // Line 399, Address: 0x4916b8, Func Offset: 0x68 - // Func End, Address: 0x4916e8, Func Offset: 0x98 + // Line 396, Address: 0x491650, Func Offset: 0 + // Line 397, Address: 0x491664, Func Offset: 0x14 + // Line 398, Address: 0x49166c, Func Offset: 0x1c + // Line 399, Address: 0x4916b8, Func Offset: 0x68 + // Func End, Address: 0x4916e8, Func Offset: 0x98 } // zSmokeSceneExit__Fv // Start address: 0x4916f0 void zSmokeSceneExit() { - // Line 393, Address: 0x4916f0, Func Offset: 0 - // Func End, Address: 0x4916f8, Func Offset: 0x8 + // Line 393, Address: 0x4916f0, Func Offset: 0 + // Func End, Address: 0x4916f8, Func Offset: 0x8 } // zSmokeSceneEnter__Fv // Start address: 0x491700 void zSmokeSceneEnter() { - // Line 384, Address: 0x491700, Func Offset: 0 - // Line 381, Address: 0x491704, Func Offset: 0x4 - // Line 384, Address: 0x491708, Func Offset: 0x8 - // Line 383, Address: 0x491710, Func Offset: 0x10 - // Line 384, Address: 0x491714, Func Offset: 0x14 - // Line 383, Address: 0x49171c, Func Offset: 0x1c - // Line 384, Address: 0x491720, Func Offset: 0x20 - // Line 388, Address: 0x491724, Func Offset: 0x24 - // Func End, Address: 0x49172c, Func Offset: 0x2c + // Line 384, Address: 0x491700, Func Offset: 0 + // Line 381, Address: 0x491704, Func Offset: 0x4 + // Line 384, Address: 0x491708, Func Offset: 0x8 + // Line 383, Address: 0x491710, Func Offset: 0x10 + // Line 384, Address: 0x491714, Func Offset: 0x14 + // Line 383, Address: 0x49171c, Func Offset: 0x1c + // Line 384, Address: 0x491720, Func Offset: 0x20 + // Line 388, Address: 0x491724, Func Offset: 0x24 + // Func End, Address: 0x49172c, Func Offset: 0x2c } // update_wind__20@unnamed@zSmoke_cpp@Ff // Start address: 0x491730 void update_wind(float32 dt) { - float32 magnitude; - float32 yaw; - float32 pitch; - float32 t; - // Line 280, Address: 0x491730, Func Offset: 0 - // Line 282, Address: 0x491734, Func Offset: 0x4 - // Line 280, Address: 0x491738, Func Offset: 0x8 - // Line 283, Address: 0x49173c, Func Offset: 0xc - // Line 280, Address: 0x491740, Func Offset: 0x10 - // Line 282, Address: 0x491744, Func Offset: 0x14 - // Line 280, Address: 0x491748, Func Offset: 0x18 - // Line 283, Address: 0x49174c, Func Offset: 0x1c - // Line 280, Address: 0x491750, Func Offset: 0x20 - // Line 282, Address: 0x49175c, Func Offset: 0x2c - // Line 283, Address: 0x49176c, Func Offset: 0x3c - // Line 282, Address: 0x491774, Func Offset: 0x44 - // Line 283, Address: 0x49177c, Func Offset: 0x4c - // Line 285, Address: 0x4917a4, Func Offset: 0x74 - // Line 289, Address: 0x4917ac, Func Offset: 0x7c - // Line 285, Address: 0x4917b0, Func Offset: 0x80 - // Line 289, Address: 0x4917bc, Func Offset: 0x8c - // Line 290, Address: 0x4917c4, Func Offset: 0x94 - // Line 285, Address: 0x4917cc, Func Offset: 0x9c - // Line 289, Address: 0x4917e0, Func Offset: 0xb0 - // Line 290, Address: 0x4917f0, Func Offset: 0xc0 - // Line 292, Address: 0x491814, Func Offset: 0xe4 - // Line 296, Address: 0x49182c, Func Offset: 0xfc - // Line 297, Address: 0x491834, Func Offset: 0x104 - // Line 296, Address: 0x491838, Func Offset: 0x108 - // Line 297, Address: 0x49183c, Func Offset: 0x10c - // Line 292, Address: 0x491840, Func Offset: 0x110 - // Line 296, Address: 0x491858, Func Offset: 0x128 - // Line 297, Address: 0x491868, Func Offset: 0x138 - // Line 299, Address: 0x49188c, Func Offset: 0x15c - // Line 303, Address: 0x4918b8, Func Offset: 0x188 - // Line 304, Address: 0x4918d4, Func Offset: 0x1a4 - // Line 305, Address: 0x4918e8, Func Offset: 0x1b8 - // Line 306, Address: 0x4918ec, Func Offset: 0x1bc - // Line 307, Address: 0x4918f0, Func Offset: 0x1c0 - // Line 308, Address: 0x4918f4, Func Offset: 0x1c4 - // Line 306, Address: 0x4918f8, Func Offset: 0x1c8 - // Line 307, Address: 0x491904, Func Offset: 0x1d4 - // Line 308, Address: 0x491910, Func Offset: 0x1e0 - // Line 319, Address: 0x491918, Func Offset: 0x1e8 - // Line 283, Address: 0x491928, Func Offset: 0x1f8 - // Line 319, Address: 0x491950, Func Offset: 0x220 - // Line 283, Address: 0x491958, Func Offset: 0x228 - // Line 319, Address: 0x491970, Func Offset: 0x240 - // Line 290, Address: 0x491978, Func Offset: 0x248 - // Line 319, Address: 0x491994, Func Offset: 0x264 - // Line 290, Address: 0x49199c, Func Offset: 0x26c - // Line 319, Address: 0x4919b4, Func Offset: 0x284 - // Line 297, Address: 0x4919bc, Func Offset: 0x28c - // Line 319, Address: 0x4919d8, Func Offset: 0x2a8 - // Line 297, Address: 0x4919e0, Func Offset: 0x2b0 - // Line 319, Address: 0x4919f8, Func Offset: 0x2c8 - // Func End, Address: 0x491a18, Func Offset: 0x2e8 + float32 magnitude; + float32 yaw; + float32 pitch; + float32 t; + // Line 280, Address: 0x491730, Func Offset: 0 + // Line 282, Address: 0x491734, Func Offset: 0x4 + // Line 280, Address: 0x491738, Func Offset: 0x8 + // Line 283, Address: 0x49173c, Func Offset: 0xc + // Line 280, Address: 0x491740, Func Offset: 0x10 + // Line 282, Address: 0x491744, Func Offset: 0x14 + // Line 280, Address: 0x491748, Func Offset: 0x18 + // Line 283, Address: 0x49174c, Func Offset: 0x1c + // Line 280, Address: 0x491750, Func Offset: 0x20 + // Line 282, Address: 0x49175c, Func Offset: 0x2c + // Line 283, Address: 0x49176c, Func Offset: 0x3c + // Line 282, Address: 0x491774, Func Offset: 0x44 + // Line 283, Address: 0x49177c, Func Offset: 0x4c + // Line 285, Address: 0x4917a4, Func Offset: 0x74 + // Line 289, Address: 0x4917ac, Func Offset: 0x7c + // Line 285, Address: 0x4917b0, Func Offset: 0x80 + // Line 289, Address: 0x4917bc, Func Offset: 0x8c + // Line 290, Address: 0x4917c4, Func Offset: 0x94 + // Line 285, Address: 0x4917cc, Func Offset: 0x9c + // Line 289, Address: 0x4917e0, Func Offset: 0xb0 + // Line 290, Address: 0x4917f0, Func Offset: 0xc0 + // Line 292, Address: 0x491814, Func Offset: 0xe4 + // Line 296, Address: 0x49182c, Func Offset: 0xfc + // Line 297, Address: 0x491834, Func Offset: 0x104 + // Line 296, Address: 0x491838, Func Offset: 0x108 + // Line 297, Address: 0x49183c, Func Offset: 0x10c + // Line 292, Address: 0x491840, Func Offset: 0x110 + // Line 296, Address: 0x491858, Func Offset: 0x128 + // Line 297, Address: 0x491868, Func Offset: 0x138 + // Line 299, Address: 0x49188c, Func Offset: 0x15c + // Line 303, Address: 0x4918b8, Func Offset: 0x188 + // Line 304, Address: 0x4918d4, Func Offset: 0x1a4 + // Line 305, Address: 0x4918e8, Func Offset: 0x1b8 + // Line 306, Address: 0x4918ec, Func Offset: 0x1bc + // Line 307, Address: 0x4918f0, Func Offset: 0x1c0 + // Line 308, Address: 0x4918f4, Func Offset: 0x1c4 + // Line 306, Address: 0x4918f8, Func Offset: 0x1c8 + // Line 307, Address: 0x491904, Func Offset: 0x1d4 + // Line 308, Address: 0x491910, Func Offset: 0x1e0 + // Line 319, Address: 0x491918, Func Offset: 0x1e8 + // Line 283, Address: 0x491928, Func Offset: 0x1f8 + // Line 319, Address: 0x491950, Func Offset: 0x220 + // Line 283, Address: 0x491958, Func Offset: 0x228 + // Line 319, Address: 0x491970, Func Offset: 0x240 + // Line 290, Address: 0x491978, Func Offset: 0x248 + // Line 319, Address: 0x491994, Func Offset: 0x264 + // Line 290, Address: 0x49199c, Func Offset: 0x26c + // Line 319, Address: 0x4919b4, Func Offset: 0x284 + // Line 297, Address: 0x4919bc, Func Offset: 0x28c + // Line 319, Address: 0x4919d8, Func Offset: 0x2a8 + // Line 297, Address: 0x4919e0, Func Offset: 0x2b0 + // Line 319, Address: 0x4919f8, Func Offset: 0x2c8 + // Func End, Address: 0x491a18, Func Offset: 0x2e8 } // update_particles__20@unnamed@zSmoke_cpp@FPUciR10ptank_poolfPv // Start address: 0x491a20 int32 update_particles(uint8* mem, int32 count, ptank_pool& apool, float32 dt) { - ptank_pool__pos_color_size_uv2& pool; - smoke_particle* p; - smoke_particle* end; - float32 oldsize; - float32 t1; - float32 t2; - float32 alpha; - // Line 156, Address: 0x491a20, Func Offset: 0 - // Line 159, Address: 0x491a24, Func Offset: 0x4 - // Line 156, Address: 0x491a28, Func Offset: 0x8 - // Line 159, Address: 0x491a2c, Func Offset: 0xc - // Line 156, Address: 0x491a30, Func Offset: 0x10 - // Line 159, Address: 0x491a34, Func Offset: 0x14 - // Line 156, Address: 0x491a38, Func Offset: 0x18 - // Line 157, Address: 0x491a44, Func Offset: 0x24 - // Line 156, Address: 0x491a48, Func Offset: 0x28 - // Line 159, Address: 0x491a4c, Func Offset: 0x2c - // Line 156, Address: 0x491a50, Func Offset: 0x30 - // Line 159, Address: 0x491a54, Func Offset: 0x34 - // Line 156, Address: 0x491a58, Func Offset: 0x38 - // Line 161, Address: 0x491a5c, Func Offset: 0x3c - // Line 163, Address: 0x491a64, Func Offset: 0x44 - // Line 165, Address: 0x491a68, Func Offset: 0x48 - // Line 163, Address: 0x491a6c, Func Offset: 0x4c - // Line 165, Address: 0x491a74, Func Offset: 0x54 - // Line 163, Address: 0x491a7c, Func Offset: 0x5c - // Line 165, Address: 0x491a84, Func Offset: 0x64 - // Line 167, Address: 0x491a90, Func Offset: 0x70 - // Line 168, Address: 0x491a94, Func Offset: 0x74 - // Line 169, Address: 0x491b48, Func Offset: 0x128 - // Line 173, Address: 0x491b50, Func Offset: 0x130 - // Line 174, Address: 0x491b58, Func Offset: 0x138 - // Line 173, Address: 0x491b5c, Func Offset: 0x13c - // Line 175, Address: 0x491b68, Func Offset: 0x148 - // Line 173, Address: 0x491b6c, Func Offset: 0x14c - // Line 174, Address: 0x491b74, Func Offset: 0x154 - // Line 175, Address: 0x491b8c, Func Offset: 0x16c - // Line 178, Address: 0x491ba4, Func Offset: 0x184 - // Line 179, Address: 0x491bb8, Func Offset: 0x198 - // Line 180, Address: 0x491bcc, Func Offset: 0x1ac - // Line 183, Address: 0x491be0, Func Offset: 0x1c0 - // Line 182, Address: 0x491bec, Func Offset: 0x1cc - // Line 183, Address: 0x491bf0, Func Offset: 0x1d0 - // Line 184, Address: 0x491bfc, Func Offset: 0x1dc - // Line 186, Address: 0x491c44, Func Offset: 0x224 - // Line 187, Address: 0x491d78, Func Offset: 0x358 - // Line 190, Address: 0x491d84, Func Offset: 0x364 - // Line 193, Address: 0x491d8c, Func Offset: 0x36c - // Line 196, Address: 0x491d90, Func Offset: 0x370 - // Line 197, Address: 0x491d98, Func Offset: 0x378 - // Line 196, Address: 0x491d9c, Func Offset: 0x37c - // Line 197, Address: 0x491da0, Func Offset: 0x380 - // Line 196, Address: 0x491da4, Func Offset: 0x384 - // Line 197, Address: 0x491da8, Func Offset: 0x388 - // Line 196, Address: 0x491dac, Func Offset: 0x38c - // Line 197, Address: 0x491db0, Func Offset: 0x390 - // Line 196, Address: 0x491dbc, Func Offset: 0x39c - // Line 197, Address: 0x491dcc, Func Offset: 0x3ac - // Line 198, Address: 0x491e08, Func Offset: 0x3e8 - // Line 197, Address: 0x491e0c, Func Offset: 0x3ec - // Line 198, Address: 0x491e10, Func Offset: 0x3f0 - // Line 197, Address: 0x491e24, Func Offset: 0x404 - // Line 198, Address: 0x491e30, Func Offset: 0x410 - // Line 199, Address: 0x491e6c, Func Offset: 0x44c - // Line 198, Address: 0x491e70, Func Offset: 0x450 - // Line 199, Address: 0x491e74, Func Offset: 0x454 - // Line 198, Address: 0x491e88, Func Offset: 0x468 - // Line 199, Address: 0x491e94, Func Offset: 0x474 - // Line 206, Address: 0x491ed0, Func Offset: 0x4b0 - // Line 199, Address: 0x491ee4, Func Offset: 0x4c4 - // Line 206, Address: 0x491ee8, Func Offset: 0x4c8 - // Line 207, Address: 0x491eec, Func Offset: 0x4cc - // Line 202, Address: 0x491ef0, Func Offset: 0x4d0 - // Line 206, Address: 0x491ef4, Func Offset: 0x4d4 - // Line 199, Address: 0x491f08, Func Offset: 0x4e8 - // Line 207, Address: 0x491f0c, Func Offset: 0x4ec - // Line 206, Address: 0x491f10, Func Offset: 0x4f0 - // Line 199, Address: 0x491f18, Func Offset: 0x4f8 - // Line 206, Address: 0x491f1c, Func Offset: 0x4fc - // Line 207, Address: 0x491f20, Func Offset: 0x500 - // Line 208, Address: 0x491f30, Func Offset: 0x510 - // Line 209, Address: 0x491f68, Func Offset: 0x548 - // Line 208, Address: 0x491f70, Func Offset: 0x550 - // Line 209, Address: 0x491f78, Func Offset: 0x558 - // Line 208, Address: 0x491f7c, Func Offset: 0x55c - // Line 209, Address: 0x491f80, Func Offset: 0x560 - // Line 211, Address: 0x491fc8, Func Offset: 0x5a8 - // Line 212, Address: 0x491fe8, Func Offset: 0x5c8 - // Line 213, Address: 0x491ff4, Func Offset: 0x5d4 - // Line 214, Address: 0x492008, Func Offset: 0x5e8 - // Line 216, Address: 0x49201c, Func Offset: 0x5fc - // Line 217, Address: 0x492020, Func Offset: 0x600 - // Line 218, Address: 0x492024, Func Offset: 0x604 - // Line 219, Address: 0x492028, Func Offset: 0x608 - // Line 221, Address: 0x492030, Func Offset: 0x610 - // Line 222, Address: 0x492040, Func Offset: 0x620 - // Line 221, Address: 0x492058, Func Offset: 0x638 - // Line 222, Address: 0x492060, Func Offset: 0x640 - // Line 221, Address: 0x492064, Func Offset: 0x644 - // Line 222, Address: 0x49206c, Func Offset: 0x64c - // Func End, Address: 0x492074, Func Offset: 0x654 + ptank_pool__pos_color_size_uv2& pool; + smoke_particle* p; + smoke_particle* end; + float32 oldsize; + float32 t1; + float32 t2; + float32 alpha; + // Line 156, Address: 0x491a20, Func Offset: 0 + // Line 159, Address: 0x491a24, Func Offset: 0x4 + // Line 156, Address: 0x491a28, Func Offset: 0x8 + // Line 159, Address: 0x491a2c, Func Offset: 0xc + // Line 156, Address: 0x491a30, Func Offset: 0x10 + // Line 159, Address: 0x491a34, Func Offset: 0x14 + // Line 156, Address: 0x491a38, Func Offset: 0x18 + // Line 157, Address: 0x491a44, Func Offset: 0x24 + // Line 156, Address: 0x491a48, Func Offset: 0x28 + // Line 159, Address: 0x491a4c, Func Offset: 0x2c + // Line 156, Address: 0x491a50, Func Offset: 0x30 + // Line 159, Address: 0x491a54, Func Offset: 0x34 + // Line 156, Address: 0x491a58, Func Offset: 0x38 + // Line 161, Address: 0x491a5c, Func Offset: 0x3c + // Line 163, Address: 0x491a64, Func Offset: 0x44 + // Line 165, Address: 0x491a68, Func Offset: 0x48 + // Line 163, Address: 0x491a6c, Func Offset: 0x4c + // Line 165, Address: 0x491a74, Func Offset: 0x54 + // Line 163, Address: 0x491a7c, Func Offset: 0x5c + // Line 165, Address: 0x491a84, Func Offset: 0x64 + // Line 167, Address: 0x491a90, Func Offset: 0x70 + // Line 168, Address: 0x491a94, Func Offset: 0x74 + // Line 169, Address: 0x491b48, Func Offset: 0x128 + // Line 173, Address: 0x491b50, Func Offset: 0x130 + // Line 174, Address: 0x491b58, Func Offset: 0x138 + // Line 173, Address: 0x491b5c, Func Offset: 0x13c + // Line 175, Address: 0x491b68, Func Offset: 0x148 + // Line 173, Address: 0x491b6c, Func Offset: 0x14c + // Line 174, Address: 0x491b74, Func Offset: 0x154 + // Line 175, Address: 0x491b8c, Func Offset: 0x16c + // Line 178, Address: 0x491ba4, Func Offset: 0x184 + // Line 179, Address: 0x491bb8, Func Offset: 0x198 + // Line 180, Address: 0x491bcc, Func Offset: 0x1ac + // Line 183, Address: 0x491be0, Func Offset: 0x1c0 + // Line 182, Address: 0x491bec, Func Offset: 0x1cc + // Line 183, Address: 0x491bf0, Func Offset: 0x1d0 + // Line 184, Address: 0x491bfc, Func Offset: 0x1dc + // Line 186, Address: 0x491c44, Func Offset: 0x224 + // Line 187, Address: 0x491d78, Func Offset: 0x358 + // Line 190, Address: 0x491d84, Func Offset: 0x364 + // Line 193, Address: 0x491d8c, Func Offset: 0x36c + // Line 196, Address: 0x491d90, Func Offset: 0x370 + // Line 197, Address: 0x491d98, Func Offset: 0x378 + // Line 196, Address: 0x491d9c, Func Offset: 0x37c + // Line 197, Address: 0x491da0, Func Offset: 0x380 + // Line 196, Address: 0x491da4, Func Offset: 0x384 + // Line 197, Address: 0x491da8, Func Offset: 0x388 + // Line 196, Address: 0x491dac, Func Offset: 0x38c + // Line 197, Address: 0x491db0, Func Offset: 0x390 + // Line 196, Address: 0x491dbc, Func Offset: 0x39c + // Line 197, Address: 0x491dcc, Func Offset: 0x3ac + // Line 198, Address: 0x491e08, Func Offset: 0x3e8 + // Line 197, Address: 0x491e0c, Func Offset: 0x3ec + // Line 198, Address: 0x491e10, Func Offset: 0x3f0 + // Line 197, Address: 0x491e24, Func Offset: 0x404 + // Line 198, Address: 0x491e30, Func Offset: 0x410 + // Line 199, Address: 0x491e6c, Func Offset: 0x44c + // Line 198, Address: 0x491e70, Func Offset: 0x450 + // Line 199, Address: 0x491e74, Func Offset: 0x454 + // Line 198, Address: 0x491e88, Func Offset: 0x468 + // Line 199, Address: 0x491e94, Func Offset: 0x474 + // Line 206, Address: 0x491ed0, Func Offset: 0x4b0 + // Line 199, Address: 0x491ee4, Func Offset: 0x4c4 + // Line 206, Address: 0x491ee8, Func Offset: 0x4c8 + // Line 207, Address: 0x491eec, Func Offset: 0x4cc + // Line 202, Address: 0x491ef0, Func Offset: 0x4d0 + // Line 206, Address: 0x491ef4, Func Offset: 0x4d4 + // Line 199, Address: 0x491f08, Func Offset: 0x4e8 + // Line 207, Address: 0x491f0c, Func Offset: 0x4ec + // Line 206, Address: 0x491f10, Func Offset: 0x4f0 + // Line 199, Address: 0x491f18, Func Offset: 0x4f8 + // Line 206, Address: 0x491f1c, Func Offset: 0x4fc + // Line 207, Address: 0x491f20, Func Offset: 0x500 + // Line 208, Address: 0x491f30, Func Offset: 0x510 + // Line 209, Address: 0x491f68, Func Offset: 0x548 + // Line 208, Address: 0x491f70, Func Offset: 0x550 + // Line 209, Address: 0x491f78, Func Offset: 0x558 + // Line 208, Address: 0x491f7c, Func Offset: 0x55c + // Line 209, Address: 0x491f80, Func Offset: 0x560 + // Line 211, Address: 0x491fc8, Func Offset: 0x5a8 + // Line 212, Address: 0x491fe8, Func Offset: 0x5c8 + // Line 213, Address: 0x491ff4, Func Offset: 0x5d4 + // Line 214, Address: 0x492008, Func Offset: 0x5e8 + // Line 216, Address: 0x49201c, Func Offset: 0x5fc + // Line 217, Address: 0x492020, Func Offset: 0x600 + // Line 218, Address: 0x492024, Func Offset: 0x604 + // Line 219, Address: 0x492028, Func Offset: 0x608 + // Line 221, Address: 0x492030, Func Offset: 0x610 + // Line 222, Address: 0x492040, Func Offset: 0x620 + // Line 221, Address: 0x492058, Func Offset: 0x638 + // Line 222, Address: 0x492060, Func Offset: 0x640 + // Line 221, Address: 0x492064, Func Offset: 0x644 + // Line 222, Address: 0x49206c, Func Offset: 0x64c + // Func End, Address: 0x492074, Func Offset: 0x654 } - diff --git a/dwarf/SB04_Multi_Sku/Engine/Game/zWad2.cpp b/dwarf/SB04_Multi_Sku/Engine/Game/zWad2.cpp index 1dbac49..cc401e2 100644 --- a/dwarf/SB04_Multi_Sku/Engine/Game/zWad2.cpp +++ b/dwarf/SB04_Multi_Sku/Engine/Game/zWad2.cpp @@ -572,91 +572,91 @@ typedef enum _enum_3; typedef struct RwRGBAReal; typedef struct RwObject; -typedef void(*type_7)(xEnt*, xVec3*); -typedef void(*type_14)(void*, uint32, void*, int8*); -typedef void(*type_15)(EGGItem*); -typedef xFactoryInst*(*type_20)(int32, RyzMemGrow*, void*); -typedef void(*type_22)(xEnt*, xScene*, float32); -typedef void(*type_23)(xEnt*); -typedef int32(*type_24)(void*, xVec3*, zMovePoint*); -typedef void(*type_29)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef void(*type_31)(float32, EGGItem*); -typedef void(*type_34)(xFactoryInst*); -typedef void(*type_39)(xEnt*); -typedef int32(*type_42)(void*, uint32, void*, int32); -typedef void(*type_45)(tweak_info&); -typedef void(*type_46)(xEnt*, xScene*, float32, xEntFrame*); -typedef void(*type_49)(EGGItem*); -typedef int32(*type_50)(xGoal*, void*, en_trantype*, float32, void*); -typedef void(*type_51)(int32*, en_trantype*); -typedef void(*type_53)(xEnt*); -typedef RpAtomic*(*type_54)(RpAtomic*); -typedef void(*type_60)(void*, uint32); -typedef void(*type_70)(void*); -typedef void(*type_75)(xEnt*, xScene*, float32, xEntCollis*); -typedef void(*type_76)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef uint32(*type_85)(xEnt*, xEnt*, xScene*, float32, xCollis*); -typedef void(*type_86)(EGGItem*); -typedef void(*type_89)(xEnt*, xVec3*, xMat4x3*); -typedef void*(*type_101)(void*, uint32, void*, int32*, int32*); -typedef RpAtomic*(*type_102)(RpAtomic*); -typedef uint32(*type_104)(void*, void*); -typedef RpWorldSector*(*type_110)(RpWorldSector*); -typedef void(*type_116)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef void(*type_117)(zLightning*, RxObjSpace3DVertex*, RxObjSpace3DVertex*, uint32); -typedef void(*type_127)(void*); -typedef void(*type_131)(void*, uint32, void*); -typedef void(*type_134)(); -typedef void(*type_138)(zDestructible*, void*); -typedef uint32(*type_141)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); -typedef void*(*type_162)(void*, uint32, void*, uint32, uint32*); -typedef uint32(*type_167)(xAnimTransition*, xAnimSingle*, void*); -typedef void*(*type_168)(void*, uint32, void*, void*, uint32, uint32*); -typedef uint32(*type_173)(float32); -typedef int32(*type_181)(void*, xVec3*, zMovePoint*); -typedef void(*type_188)(_zLight*, float32); -typedef xBase*(*type_190)(uint32); -typedef void(*type_198)(zFrag*, zFragAsset*); -typedef void(*type_203)(xAnimState*, xAnimSingle*, void*); -typedef RwCamera*(*type_204)(RwCamera*); -typedef void(*type_205)(_zLight*); -typedef int8*(*type_212)(xBase*); -typedef RwCamera*(*type_213)(RwCamera*); -typedef void(*type_217)(xAnimPlay*, xQuat*, xVec3*, int32); -typedef void(*type_222)(zShrapnelAsset*, xModelInstance*, xVec3*, void(*)(zFrag*, zFragAsset*)); -typedef int8*(*type_225)(uint32); -typedef void(*type_234)(xAnimPlay*, xAnimState*, void*); -typedef void(*type_238)(tweak_info&); -typedef uint32(*type_243)(RxPipelineNode*, uint32, uint32, void*); -typedef int32(*type_252)(EGGItem*); -typedef void(*type_254)(); -typedef void(*type_255)(RwResEntry*); -typedef int32(*type_258)(RxPipelineNode*, RxPipeline*); -typedef RwObjectHasFrame*(*type_261)(RwObjectHasFrame*); -typedef xEnt*(*type_263)(xEnt*, xScene*, void*); -typedef void(*type_264)(); -typedef void(*type_267)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef void(*type_273)(RxPipelineNode*); -typedef void(*type_280)(); -typedef int32(*type_286)(RxPipelineNode*); -typedef void(*type_287)(); -typedef void(*type_289)(jot&, xtextbox&, float32, float32); -typedef void(*type_291)(tweak_info&); -typedef void(*type_295)(RxNodeDefinition*); -typedef int32(*type_304)(RxNodeDefinition*); -typedef void(*type_307)(jot&, xtextbox&, xtextbox&); -typedef void(*type_310)(); -typedef int32(*type_312)(RxPipelineNode*, RxPipelineNodeParam*); -typedef void(*type_320)(xMemPool*, void*); -typedef void(*type_323)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef void(*type_326)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -typedef RpClump*(*type_327)(RpClump*, void*); -typedef RpAtomic*(*type_329)(RpAtomic*); -typedef int32(*type_331)(void*, void*); -typedef void(*type_342)(jot&, xtextbox&, xtextbox&, split_tag&); -typedef int32(*type_350)(void*, void*); -typedef void(*type_361)(tweak_info&, void*); -typedef void(*type_382)(xEnt*); +typedef void (*type_7)(xEnt*, xVec3*); +typedef void (*type_14)(void*, uint32, void*, int8*); +typedef void (*type_15)(EGGItem*); +typedef xFactoryInst* (*type_20)(int32, RyzMemGrow*, void*); +typedef void (*type_22)(xEnt*, xScene*, float32); +typedef void (*type_23)(xEnt*); +typedef int32 (*type_24)(void*, xVec3*, zMovePoint*); +typedef void (*type_29)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef void (*type_31)(float32, EGGItem*); +typedef void (*type_34)(xFactoryInst*); +typedef void (*type_39)(xEnt*); +typedef int32 (*type_42)(void*, uint32, void*, int32); +typedef void (*type_45)(tweak_info&); +typedef void (*type_46)(xEnt*, xScene*, float32, xEntFrame*); +typedef void (*type_49)(EGGItem*); +typedef int32 (*type_50)(xGoal*, void*, en_trantype*, float32, void*); +typedef void (*type_51)(int32*, en_trantype*); +typedef void (*type_53)(xEnt*); +typedef RpAtomic* (*type_54)(RpAtomic*); +typedef void (*type_60)(void*, uint32); +typedef void (*type_70)(void*); +typedef void (*type_75)(xEnt*, xScene*, float32, xEntCollis*); +typedef void (*type_76)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef uint32 (*type_85)(xEnt*, xEnt*, xScene*, float32, xCollis*); +typedef void (*type_86)(EGGItem*); +typedef void (*type_89)(xEnt*, xVec3*, xMat4x3*); +typedef void* (*type_101)(void*, uint32, void*, int32*, int32*); +typedef RpAtomic* (*type_102)(RpAtomic*); +typedef uint32 (*type_104)(void*, void*); +typedef RpWorldSector* (*type_110)(RpWorldSector*); +typedef void (*type_116)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef void (*type_117)(zLightning*, RxObjSpace3DVertex*, RxObjSpace3DVertex*, uint32); +typedef void (*type_127)(void*); +typedef void (*type_131)(void*, uint32, void*); +typedef void (*type_134)(); +typedef void (*type_138)(zDestructible*, void*); +typedef uint32 (*type_141)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); +typedef void* (*type_162)(void*, uint32, void*, uint32, uint32*); +typedef uint32 (*type_167)(xAnimTransition*, xAnimSingle*, void*); +typedef void* (*type_168)(void*, uint32, void*, void*, uint32, uint32*); +typedef uint32 (*type_173)(float32); +typedef int32 (*type_181)(void*, xVec3*, zMovePoint*); +typedef void (*type_188)(_zLight*, float32); +typedef xBase* (*type_190)(uint32); +typedef void (*type_198)(zFrag*, zFragAsset*); +typedef void (*type_203)(xAnimState*, xAnimSingle*, void*); +typedef RwCamera* (*type_204)(RwCamera*); +typedef void (*type_205)(_zLight*); +typedef int8* (*type_212)(xBase*); +typedef RwCamera* (*type_213)(RwCamera*); +typedef void (*type_217)(xAnimPlay*, xQuat*, xVec3*, int32); +typedef void (*type_222)(zShrapnelAsset*, xModelInstance*, xVec3*, void (*)(zFrag*, zFragAsset*)); +typedef int8* (*type_225)(uint32); +typedef void (*type_234)(xAnimPlay*, xAnimState*, void*); +typedef void (*type_238)(tweak_info&); +typedef uint32 (*type_243)(RxPipelineNode*, uint32, uint32, void*); +typedef int32 (*type_252)(EGGItem*); +typedef void (*type_254)(); +typedef void (*type_255)(RwResEntry*); +typedef int32 (*type_258)(RxPipelineNode*, RxPipeline*); +typedef RwObjectHasFrame* (*type_261)(RwObjectHasFrame*); +typedef xEnt* (*type_263)(xEnt*, xScene*, void*); +typedef void (*type_264)(); +typedef void (*type_267)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef void (*type_273)(RxPipelineNode*); +typedef void (*type_280)(); +typedef int32 (*type_286)(RxPipelineNode*); +typedef void (*type_287)(); +typedef void (*type_289)(jot&, xtextbox&, float32, float32); +typedef void (*type_291)(tweak_info&); +typedef void (*type_295)(RxNodeDefinition*); +typedef int32 (*type_304)(RxNodeDefinition*); +typedef void (*type_307)(jot&, xtextbox&, xtextbox&); +typedef void (*type_310)(); +typedef int32 (*type_312)(RxPipelineNode*, RxPipelineNodeParam*); +typedef void (*type_320)(xMemPool*, void*); +typedef void (*type_323)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef void (*type_326)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +typedef RpClump* (*type_327)(RpClump*, void*); +typedef RpAtomic* (*type_329)(RpAtomic*); +typedef int32 (*type_331)(void*, void*); +typedef void (*type_342)(jot&, xtextbox&, xtextbox&, split_tag&); +typedef int32 (*type_350)(void*, void*); +typedef void (*type_361)(tweak_info&, void*); +typedef void (*type_382)(xEnt*); typedef uint32 type_0[21]; typedef uint32 type_1[16]; @@ -919,20 +919,20 @@ typedef xVec3 type_338[60]; typedef RpAtomic* type_339[2]; typedef uint8 type_340[22]; typedef float32 type_341[3]; -typedef void(*type_343)(_zLight*, float32)[18]; +typedef void (*type_343)(_zLight*, float32)[18]; typedef zMusicTrackInfo type_344[2]; typedef widget* type_345[5]; typedef uint8 type_346[22]; typedef uint32 type_347[16]; typedef _tagTRCPadInfo type_348[4]; -typedef type_349[4]; +typedef type_349[4]; typedef xVec3 type_351[2]; typedef xVec3 type_352[2][10]; typedef _tagxPad* type_353[4]; typedef uint32 type_354[7]; typedef RpLight* type_355[2]; typedef uint32 type_356[4]; -typedef void(*type_357)(_zLight*)[18]; +typedef void (*type_357)(_zLight*)[18]; typedef float32 type_358[5]; typedef uint32 type_359[20]; typedef uint32 type_360[16]; @@ -970,26 +970,26 @@ typedef float32 type_393[13]; struct zEntPickup : zEnt { - zAssetPickup* p; - void* anim; - float32 animTime; - float32 timer; - float32 fx_scale; - xVec3 grab_pos; - float32 reward_timer; - xVec3 vel; - xVec3 droppos; - xBase* followTarget; - xVec3 followOffset; - xBase* dropParent; - xEnt* useThisEntPos; - xEntDrive drv; - xShadowSimpleCache simpShadow_embedded; - uint32 state; - uint32 updateIndex; - uint8 pickupFlags; - uint8 flyflags; - uint8 flg_opts; + zAssetPickup* p; + void* anim; + float32 animTime; + float32 timer; + float32 fx_scale; + xVec3 grab_pos; + float32 reward_timer; + xVec3 vel; + xVec3 droppos; + xBase* followTarget; + xVec3 followOffset; + xBase* dropParent; + xEnt* useThisEntPos; + xEntDrive drv; + xShadowSimpleCache simpShadow_embedded; + uint32 state; + uint32 updateIndex; + uint8 pickupFlags; + uint8 flyflags; + uint8 flg_opts; }; struct NURBS @@ -998,213 +998,213 @@ struct NURBS struct zNPCTypeInfo { - uint32 id; - void(*scene_init)(); - void(*scene_enter)(); - void(*setup)(); - void(*reset)(); + uint32 id; + void (*scene_init)(); + void (*scene_enter)(); + void (*setup)(); + void (*reset)(); }; struct xVec3 { - union - { - RwV3d m_RwV3d; - float32 x; - }; - float32 y; - float32 z; - float32 a[3]; + union + { + RwV3d m_RwV3d; + float32 x; + }; + float32 y; + float32 z; + float32 a[3]; }; struct activity_data { - xFXRibbon* owner; - activity_data** position; - tier_queue joints; - int32 curve_index; - float32 ilife; - uint32 mtime; - uint32 mlife; + xFXRibbon* owner; + activity_data** position; + tier_queue joints; + int32 curve_index; + float32 ilife; + uint32 mtime; + uint32 mlife; }; struct xModelInstance { - xModelInstance* Next; - xModelInstance* Parent; - xModelPool* Pool; - xAnimPlay* Anim; - RpAtomic* Data; - xModelPipe Pipe; - uint8 InFrustum; - uint8 TrueClip; - int8 sortBias; - uint8 modelpad; - float32 RedMultiplier; - float32 GreenMultiplier; - float32 BlueMultiplier; - float32 Alpha; - float32 FadeStart; - float32 FadeEnd; - xSurface* Surf; - xModelBucket** Bucket; - xModelInstance* BucketNext; - xLightKit* LightKit; - void* Object; - uint16 Flags; - uint8 BoneCount; - uint8 BoneIndex; - uint8* BoneRemap; - RwMatrixTag* Mat; - xVec3 Scale; - xBox animBound; - xBox combinedAnimBound; - uint32 modelID; - uint32 shadowID; - RpAtomic* shadowmapAtomic; - _class_0 anim_coll; + xModelInstance* Next; + xModelInstance* Parent; + xModelPool* Pool; + xAnimPlay* Anim; + RpAtomic* Data; + xModelPipe Pipe; + uint8 InFrustum; + uint8 TrueClip; + int8 sortBias; + uint8 modelpad; + float32 RedMultiplier; + float32 GreenMultiplier; + float32 BlueMultiplier; + float32 Alpha; + float32 FadeStart; + float32 FadeEnd; + xSurface* Surf; + xModelBucket** Bucket; + xModelInstance* BucketNext; + xLightKit* LightKit; + void* Object; + uint16 Flags; + uint8 BoneCount; + uint8 BoneIndex; + uint8* BoneRemap; + RwMatrixTag* Mat; + xVec3 Scale; + xBox animBound; + xBox combinedAnimBound; + uint32 modelID; + uint32 shadowID; + RpAtomic* shadowmapAtomic; + _class_0 anim_coll; }; struct asset : xDynAsset { - xVec3 loc; - xVec3 size; + xVec3 loc; + xVec3 size; }; struct zHangable : xBase { - zHangableAsset* hangableAsset; - uint32 flags; + zHangableAsset* hangableAsset; + uint32 flags; }; struct xGroupAsset : xBaseAsset { - uint16 itemCount; - uint16 groupFlags; + uint16 itemCount; + uint16 groupFlags; }; struct tier_queue_allocator { - block_data* blocks; - uint32 _unit_size; - uint32 _block_size; - uint32 _block_size_shift; - uint32 _max_blocks; - uint32 _max_blocks_shift; - uint8 head; + block_data* blocks; + uint32 _unit_size; + uint32 _block_size; + uint32 _block_size_shift; + uint32 _max_blocks; + uint32 _max_blocks_shift; + uint8 head; }; struct zLightning { - uint32 type; - uint32 flags; - _class_12 func; - uint32 numStrips; - float32 alphaRamp; - xColor_tag color; - float32 time_left; - float32 time_total; - zLightning* nextBranch; - zLightning* prevBranch; - float32 parentSegment; - float32 lastParentSegment; - float32 segmentsPerMeter; - float32 branchSpeed; - int32 damage; - float32 knockBackSpeed; - RwRaster* mainTexture; - RwRaster* branchTexture; - float32 sparkTimer; - xVec3 collisionPoint; - float32 genTime; - uint8 randomizeBranchEndPoint; - uint8 collisionEnabled; - iSndHandle sndHandle; - xEnt* followStart; - xVec3 followStartOffset; - xEnt* followEnd; - xVec3 followEndOffset; - void(*renderCB)(zLightning*, RxObjSpace3DVertex*, RxObjSpace3DVertex*, uint32); - void* context; - float32 weightParam[12]; + uint32 type; + uint32 flags; + _class_12 func; + uint32 numStrips; + float32 alphaRamp; + xColor_tag color; + float32 time_left; + float32 time_total; + zLightning* nextBranch; + zLightning* prevBranch; + float32 parentSegment; + float32 lastParentSegment; + float32 segmentsPerMeter; + float32 branchSpeed; + int32 damage; + float32 knockBackSpeed; + RwRaster* mainTexture; + RwRaster* branchTexture; + float32 sparkTimer; + xVec3 collisionPoint; + float32 genTime; + uint8 randomizeBranchEndPoint; + uint8 collisionEnabled; + iSndHandle sndHandle; + xEnt* followStart; + xVec3 followStartOffset; + xEnt* followEnd; + xVec3 followEndOffset; + void (*renderCB)(zLightning*, RxObjSpace3DVertex*, RxObjSpace3DVertex*, uint32); + void* context; + float32 weightParam[12]; }; struct zUI : xBase { - zUIAsset* asset; - State current; - State startMovement; - float32 z; - zUIMotionAsset* selectedMotion; - zUIMotionAsset* unselectedMotion; - zUICustom* custom; - uint8 visible; - uint8 focus; - uint8 lastFocus; - uint8 selected; - uint8 brighten; - uint8 hdrPass; - uint8 locked; - zUIMotionAsset* motion; - float32 motionTime; - uint8 motionFiredEvent; - uint8 motionLoop; + zUIAsset* asset; + State current; + State startMovement; + float32 z; + zUIMotionAsset* selectedMotion; + zUIMotionAsset* unselectedMotion; + zUICustom* custom; + uint8 visible; + uint8 focus; + uint8 lastFocus; + uint8 selected; + uint8 brighten; + uint8 hdrPass; + uint8 locked; + zUIMotionAsset* motion; + float32 motionTime; + uint8 motionFiredEvent; + uint8 motionLoop; }; struct xFactoryInst : RyzMemData { - int32 itemType; - xFactoryInst* nextprod; - xFactoryInst* prevprod; + int32 itemType; + xFactoryInst* nextprod; + xFactoryInst* prevprod; }; struct xAnimTransitionList { - xAnimTransitionList* Next; - xAnimTransition* T; + xAnimTransitionList* Next; + xAnimTransition* T; }; struct RxClusterDefinition { - int8* name; - uint32 defaultStride; - uint32 defaultAttributes; - int8* attributeSet; + int8* name; + uint32 defaultStride; + uint32 defaultAttributes; + int8* attributeSet; }; struct xEnvAsset : xBaseAsset { - uint32 bspAssetID; - uint32 startCameraAssetID; - uint32 climateFlags; - float32 climateStrengthMin; - float32 climateStrengthMax; - uint32 bspLightKit; - uint32 objectLightKit; - uint32 flags; - uint32 bspCollisionAssetID; - uint32 bspFXAssetID; - uint32 bspCameraAssetID; - uint32 bspMapperID; - uint32 bspMapperCollisionID; - uint32 bspMapperFXID; - float32 loldHeight; - xVec3 minBounds; - xVec3 maxBounds; + uint32 bspAssetID; + uint32 startCameraAssetID; + uint32 climateFlags; + float32 climateStrengthMin; + float32 climateStrengthMax; + uint32 bspLightKit; + uint32 objectLightKit; + uint32 flags; + uint32 bspCollisionAssetID; + uint32 bspFXAssetID; + uint32 bspCameraAssetID; + uint32 bspMapperID; + uint32 bspMapperCollisionID; + uint32 bspMapperFXID; + float32 loldHeight; + xVec3 minBounds; + xVec3 maxBounds; }; struct RwRGBA { - uint8 red; - uint8 green; - uint8 blue; - uint8 alpha; + uint8 red; + uint8 green; + uint8 blue; + uint8 alpha; }; struct zCutsceneMgr : xCutsceneMgr { - uint8 pausedMusic; - uint8 sendDoneForDisabledCutscene; + uint8 pausedMusic; + uint8 sendDoneForDisabledCutscene; }; struct NitroMeter : ModelAndFontHideOnTextBox @@ -1213,19 +1213,19 @@ struct NitroMeter : ModelAndFontHideOnTextBox struct RpAtomic { - RwObjectHasFrame object; - RwResEntry* repEntry; - RpGeometry* geometry; - RwSphere boundingSphere; - RwSphere worldBoundingSphere; - RpClump* clump; - RwLLLink inClumpLink; - RpAtomic*(*renderCallBack)(RpAtomic*); - RpInterpolator interpolator; - uint16 renderFrame; - uint16 pad; - RwLinkList llWorldSectorsInAtomic; - RxPipeline* pipeline; + RwObjectHasFrame object; + RwResEntry* repEntry; + RpGeometry* geometry; + RwSphere boundingSphere; + RwSphere worldBoundingSphere; + RpClump* clump; + RwLLLink inClumpLink; + RpAtomic* (*renderCallBack)(RpAtomic*); + RpInterpolator interpolator; + uint16 renderFrame; + uint16 pad; + RwLinkList llWorldSectorsInAtomic; + RxPipeline* pipeline; }; struct st_XSAVEGAME_DATA @@ -1234,34 +1234,36 @@ struct st_XSAVEGAME_DATA struct zUICustomExtrasIcon : zUICustom { - float32 mOffsetX; - float32 mOffsetY; - float32 mWidth; - float32 mHeight; - uint8 mbFullReset; - uint8 misUnlocked; - uint8 mbIsHidden; - xModelInstance* munlockedModel; - xAnimTable* munlockedAtbl; - float32 munlockedOffsetX; - float32 munlockedOffsetY; - float32 munlockedWidth; - float32 munlockedHeight; - - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void PostUpdate(); - void PreUpdate(); - void PostInitMotion(); - void ResetMotion(); - void InitModel(zUIModel* model, zUIModel* placeholder, float32 globalOffsetX, float32 globalOffsetY); - void* __ct(zUI* ui); + float32 mOffsetX; + float32 mOffsetY; + float32 mWidth; + float32 mHeight; + uint8 mbFullReset; + uint8 misUnlocked; + uint8 mbIsHidden; + xModelInstance* munlockedModel; + xAnimTable* munlockedAtbl; + float32 munlockedOffsetX; + float32 munlockedOffsetY; + float32 munlockedWidth; + float32 munlockedHeight; + + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void PostUpdate(); + void PreUpdate(); + void PostInitMotion(); + void ResetMotion(); + void InitModel(zUIModel* model, zUIModel* placeholder, float32 globalOffsetX, + float32 globalOffsetY); + void* __ct(zUI* ui); }; struct zUICustomLoadingText : zUICustom { - - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void* __ct(zUI* ui); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void* __ct(zUI* ui); }; struct zUIMotionAsset @@ -1270,71 +1272,71 @@ struct zUIMotionAsset enum zFXGooState { - zFXGooStateNormal, - zFXGooStateFreezing, - zFXGooStateFrozen, - zFXGooStateMelting, - zFXGooStateInactive = 0xdeadbeef, - zFXGooStateForce32Bit = 0xffffffff + zFXGooStateNormal, + zFXGooStateFreezing, + zFXGooStateFrozen, + zFXGooStateMelting, + zFXGooStateInactive = 0xdeadbeef, + zFXGooStateForce32Bit = 0xffffffff }; struct zNMENPCWrapper : base { - void(*fun_setup)(xEnt*); - void(*fun_reset)(xEnt*); - int32 colFreq; - uint8 flg_colCheck; - uint8 flg_penCheck; - uint16 flg_unusedCollFlags; - struct - { - int32 aflg_basenme : 8; - int32 flg_upward : 8; - int32 flg_xtrarend : 1; - int32 flg_inUpdate : 1; - int32 flg_newtime : 1; - int32 flg_postproc : 1; - int32 flg_profProc : 1; - int32 flg_hudrend : 1; - int32 flg_moreUnusedSpace : 10; - }; + void (*fun_setup)(xEnt*); + void (*fun_reset)(xEnt*); + int32 colFreq; + uint8 flg_colCheck; + uint8 flg_penCheck; + uint16 flg_unusedCollFlags; + struct + { + int32 aflg_basenme : 8; + int32 flg_upward : 8; + int32 flg_xtrarend : 1; + int32 flg_inUpdate : 1; + int32 flg_newtime : 1; + int32 flg_postproc : 1; + int32 flg_profProc : 1; + int32 flg_hudrend : 1; + int32 flg_moreUnusedSpace : 10; + }; }; struct EGGItem { - int32(*fun_check)(EGGItem*); - EGGItemFuncs* funcs; - int32 enabled; - EGGData eggdata; + int32 (*fun_check)(EGGItem*); + EGGItemFuncs* funcs; + int32 enabled; + EGGData eggdata; }; struct config_type { - float32 life_time; - uint32 blend_src; - uint32 blend_dst; - float32 pivot; - int32 flags; - curve_node* curve; - int32 curve_size; - RwRaster* raster; + float32 life_time; + uint32 blend_src; + uint32 blend_dst; + float32 pivot; + int32 flags; + curve_node* curve; + int32 curve_size; + RwRaster* raster; }; struct xBase { - uint32 id; - uint8 baseType; - uint8 linkCount; - uint16 baseFlags; - xLinkAsset* link; - void(*eventFunc)(xBase*, xBase*, uint32, float32*, xBase*, uint32); + uint32 id; + uint8 baseType; + uint8 linkCount; + uint16 baseFlags; + xLinkAsset* link; + void (*eventFunc)(xBase*, xBase*, uint32, float32*, xBase*, uint32); }; struct xListItem { - int32 flg_travFilter; - xGoal* next; - xGoal* prev; + int32 flg_travFilter; + xGoal* next; + xGoal* prev; }; struct zMovePoint : xMovePoint @@ -1343,24 +1345,24 @@ struct zMovePoint : xMovePoint struct RyzMemGrow { - int32 flg_grow; - int32 amt; - int8* ptr; - xBase* user; - int32 amt_last; - int8* ptr_last; - xBase* user_last; + int32 flg_grow; + int32 amt; + int8* ptr; + xBase* user; + int32 amt_last; + int8* ptr_last; + xBase* user_last; }; struct _zLight : xBase { - uint32 flags; - zLightAsset* tasset; - iLight light; - xBase* attached_to; - int32 true_idx; - float32* reg; - int32 effect_idx; + uint32 flags; + zLightAsset* tasset; + iLight light; + xBase* attached_to; + int32 true_idx; + float32* reg; + int32 effect_idx; }; struct lightweight_system_base @@ -1369,181 +1371,182 @@ struct lightweight_system_base struct zUIModel : zUI { - xModelInstance* model; - xAnimTable* atbl; - xSurface* surf; + xModelInstance* model; + xAnimTable* atbl; + xSurface* surf; }; struct zLightningFuncPiece { - xVec3 coef0; - float32 param; - xVec3 coef1; - uint32 pad; + xVec3 coef0; + float32 param; + xVec3 coef1; + uint32 pad; }; struct xJSPHeader { - int8 idtag[4]; - uint32 version; - uint32 jspNodeCount; - RpClump* clump; - xClumpCollBSPTree* colltree; - xJSPNodeInfo* jspNodeList; - uint32 stripVecCount; - RwV3d* stripVecList; - uint16 vertDataFlags; - uint16 vertDataStride; - xJSPNodeTree* nodetree; - xJSPNodeLight* nodelight; + int8 idtag[4]; + uint32 version; + uint32 jspNodeCount; + RpClump* clump; + xClumpCollBSPTree* colltree; + xJSPNodeInfo* jspNodeList; + uint32 stripVecCount; + RwV3d* stripVecList; + uint16 vertDataFlags; + uint16 vertDataStride; + xJSPNodeTree* nodetree; + xJSPNodeLight* nodelight; }; struct PatTongueVert { - xVec3 pos; - xModelTagWithNormal tag; + xVec3 pos; + xModelTagWithNormal tag; }; struct RwTexture { - RwRaster* raster; - RwTexDictionary* dict; - RwLLLink lInDictionary; - int8 name[32]; - int8 mask[32]; - uint32 filterAddressing; - int32 refCount; + RwRaster* raster; + RwTexDictionary* dict; + RwLLLink lInDictionary; + int8 name[32]; + int8 mask[32]; + uint32 filterAddressing; + int32 refCount; }; struct sphericalEmitter : emitterBase { - sphericalEmitterAsset* pAsset; - float32 radiusSqrd; + sphericalEmitterAsset* pAsset; + float32 radiusSqrd; }; struct RwV3d { - float32 x; - float32 y; - float32 z; + float32 x; + float32 y; + float32 z; }; struct RpLight { - RwObjectHasFrame object; - float32 radius; - RwRGBAReal color; - float32 minusCosAngle; - RwLinkList WorldSectorsInLight; - RwLLLink inWorld; - uint16 lightFrame; - uint16 pad; + RwObjectHasFrame object; + float32 radius; + RwRGBAReal color; + float32 minusCosAngle; + RwLinkList WorldSectorsInLight; + RwLLLink inWorld; + uint16 lightFrame; + uint16 pad; }; struct xIniSection { - int8* sec; - int32 first; - int32 count; + int8* sec; + int32 first; + int32 count; }; struct xJSPNodeInfo { - int32 originalMatIndex; - uint16 nodeFlags; - int16 sortOrder; + int32 originalMatIndex; + uint16 nodeFlags; + int16 sortOrder; }; struct zPlayerCarryInfo { - xEnt* grabbed; - uint32 grabbedModelID; - xMat4x3 spin; - xEnt* throwTarget; - xEnt* flyingToTarget; - float32 minDist; - float32 maxDist; - float32 minHeight; - float32 maxHeight; - float32 maxCosAngle; - float32 throwMinDist; - float32 throwMaxDist; - float32 throwHammerMinDist; - float32 throwHammerMaxDist; - float32 throwMinHeight; - float32 throwMaxHeight; - float32 throwMaxStack; - float32 throwMaxCosAngle; - float32 throwTargetRotRate; - float32 targetRot; - uint32 grabTarget; - xVec3 grabOffset; - float32 grabLerpMin; - float32 grabLerpMax; - float32 grabLerpLast; - uint32 grabYclear; - float32 throwGravity; - float32 throwHeight; - float32 throwDistance; - float32 throwPowerAddDistance; - float32 fruitFloorDecayMin; - float32 fruitFloorDecayMax; - float32 fruitFloorBounce; - float32 fruitFloorFriction; - float32 fruitCeilingBounce; - float32 fruitWallBounce; - float32 fruitLifetime; - xEnt* patLauncher; + xEnt* grabbed; + uint32 grabbedModelID; + xMat4x3 spin; + xEnt* throwTarget; + xEnt* flyingToTarget; + float32 minDist; + float32 maxDist; + float32 minHeight; + float32 maxHeight; + float32 maxCosAngle; + float32 throwMinDist; + float32 throwMaxDist; + float32 throwHammerMinDist; + float32 throwHammerMaxDist; + float32 throwMinHeight; + float32 throwMaxHeight; + float32 throwMaxStack; + float32 throwMaxCosAngle; + float32 throwTargetRotRate; + float32 targetRot; + uint32 grabTarget; + xVec3 grabOffset; + float32 grabLerpMin; + float32 grabLerpMax; + float32 grabLerpLast; + uint32 grabYclear; + float32 throwGravity; + float32 throwHeight; + float32 throwDistance; + float32 throwPowerAddDistance; + float32 fruitFloorDecayMin; + float32 fruitFloorDecayMax; + float32 fruitFloorBounce; + float32 fruitFloorFriction; + float32 fruitCeilingBounce; + float32 fruitWallBounce; + float32 fruitLifetime; + xEnt* patLauncher; }; struct zLightAsset : xBaseAsset { - uint8 lightType; - uint8 lightEffect; - uint8 lightPad[2]; - uint32 lightFlags; - float32 lightColor[4]; - xVec3 lightDir; - float32 lightConeAngle; - xSphere lightSphere; - uint32 attachID; + uint8 lightType; + uint8 lightEffect; + uint8 lightPad[2]; + uint32 lightFlags; + float32 lightColor[4]; + xVec3 lightDir; + float32 lightConeAngle; + xSphere lightSphere; + uint32 attachID; }; struct zUICustomExtrasManager : zUICustom { - uint8 mCurRow; - uint8 mCurColumn; - uint8 mNumRows; - uint8 mNumColumns; - float32 mOffsetX; - float32 mOffsetY; - uint8 mbInSubScreen; - zUI** mGrid; - zUI** mIconTypes; - xGroup* mAuraGroup; - zUIText* mDescription; - zUIText* mActionText; - zUIText* mNextExtraText; - xGroup* mNextExtraGroup; - xSoundFX* mSoundMove; - xSoundFX* mSoundDeny; - xSoundFX* mSoundConfirm; - zUICustom** mSubScreens; - - void PostUpdate(float32 dt); - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void SelectCurrentIcon(); - void UpdateText(); - void MoveSelection(uint8 row, uint8 column, uint8 playSound); - void EnterScreen(); - void InitScreen(); - void* __ct(zUI* ui); - void InitExtrasList(xIniFile* ini); - void ResetExtrasStatus(); - uint32 GivePlayerTreasureChest(uint32 numChests); - uint32 IsCheatEnabled(eExtrasScreenCheats cheat); - uint32 IsCostumeEnabled(eSNDCurrentPlayer player); - uint8 GetNumChestsNeeded(); + uint8 mCurRow; + uint8 mCurColumn; + uint8 mNumRows; + uint8 mNumColumns; + float32 mOffsetX; + float32 mOffsetY; + uint8 mbInSubScreen; + zUI** mGrid; + zUI** mIconTypes; + xGroup* mAuraGroup; + zUIText* mDescription; + zUIText* mActionText; + zUIText* mNextExtraText; + xGroup* mNextExtraGroup; + xSoundFX* mSoundMove; + xSoundFX* mSoundDeny; + xSoundFX* mSoundConfirm; + zUICustom** mSubScreens; + + void PostUpdate(float32 dt); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void SelectCurrentIcon(); + void UpdateText(); + void MoveSelection(uint8 row, uint8 column, uint8 playSound); + void EnterScreen(); + void InitScreen(); + void* __ct(zUI* ui); + void InitExtrasList(xIniFile* ini); + void ResetExtrasStatus(); + uint32 GivePlayerTreasureChest(uint32 numChests); + uint32 IsCheatEnabled(eExtrasScreenCheats cheat); + uint32 IsCostumeEnabled(eSNDCurrentPlayer player); + uint8 GetNumChestsNeeded(); }; struct _anon0 @@ -1552,18 +1555,18 @@ struct _anon0 struct xModelAssetInfo { - uint32 Magic; - uint32 NumModelInst; - uint32 AnimTableID; - uint32 CombatID; - uint32 BrainID; + uint32 Magic; + uint32 NumModelInst; + uint32 AnimTableID; + uint32 CombatID; + uint32 BrainID; }; struct NPCBrainTableEntry { - int8* name; - en_npctyp type; - uint32 id; + int8* name; + en_npctyp type; + uint32 id; }; struct _anon1 @@ -1572,233 +1575,234 @@ struct _anon1 struct zUICustomExtrasSound : zUICustom { - uint8 mNumSounds; - uint8 mCurrentSound; - uint8 mExtraID; - xGroup* mSoundGroup; - xGroup* mTextGroup; - xSoundFX* mSoundMove; - xSoundFX* mSoundDeny; - xSoundFX* mCurrentSoundFX; + uint8 mNumSounds; + uint8 mCurrentSound; + uint8 mExtraID; + xGroup* mSoundGroup; + xGroup* mTextGroup; + xSoundFX* mSoundMove; + xSoundFX* mSoundDeny; + xSoundFX* mCurrentSoundFX; - void EnterScreen(); - void InitScreen(); - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); + void EnterScreen(); + void InitScreen(); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); }; struct base : xEnt, xFactoryInst { - int16 bound_bone; - uint16 sound_id_offset; - uint16 global_parameters_size; - uint16 local_parameters_size; - uint32 type; - xModelAssetParam* global_parameters; - xModelAssetParam* local_parameters; - union - { - xMovePoint* movepoint; - uint32 movepoint_asset_id; - }; - xEntNPCAssetIN* npc_asset; - xModelAssetInfo* model_asset; - float32 shadow_strength; - float32 shadow_cache_fudge_factor; - xVec3 bound_offset; - - void* __dt(); - uint8 get_parameter(int8* name, int8** value, int8* default_value); - uint8 get_parameter(int8* name, uint8* value, uint8 default_value); - void update_npc(float32 dt); - void update_bounds(); - void change_bounds(float32 scale, uint8 use_bounding_box); - iSndHandle play_sound(zAnimFxSoundGroup* sound); + int16 bound_bone; + uint16 sound_id_offset; + uint16 global_parameters_size; + uint16 local_parameters_size; + uint32 type; + xModelAssetParam* global_parameters; + xModelAssetParam* local_parameters; + union + { + xMovePoint* movepoint; + uint32 movepoint_asset_id; + }; + xEntNPCAssetIN* npc_asset; + xModelAssetInfo* model_asset; + float32 shadow_strength; + float32 shadow_cache_fudge_factor; + xVec3 bound_offset; + + void* __dt(); + uint8 get_parameter(int8* name, int8** value, int8* default_value); + uint8 get_parameter(int8* name, uint8* value, uint8 default_value); + void update_npc(float32 dt); + void update_bounds(); + void change_bounds(float32 scale, uint8 use_bounding_box); + iSndHandle play_sound(zAnimFxSoundGroup* sound); }; struct xEnt : xBase { - xEntAsset* asset; - uint16 idx; - uint8 flags; - uint8 miscflags; - uint8 subType; - uint8 pflags; - uint16 moreFlags; - struct - { - uint8 _isCulled : 2; - uint8 collisionEventReceived : 2; - }; - uint8 driving_count; - uint8 num_ffx; - uint8 collType; - uint8 collLev; - uint8 chkby; - uint8 penby; - void(*visUpdate)(xEnt*); - xModelInstance* model; - xModelInstance* collModel; - xModelInstance* camcollModel; - void(*update)(xEnt*, xScene*, float32); - void(*endUpdate)(xEnt*, xScene*, float32); - void(*bupdate)(xEnt*, xVec3*); - void(*move)(xEnt*, xScene*, float32, xEntFrame*); - void(*render)(xEnt*); - xEntFrame* frame; - xEntCollis* collis; - xGridBound gridb; - xBound bound; - void(*transl)(xEnt*, xVec3*, xMat4x3*); - xFFX* ffx; - xEnt* driver; - xEnt* driven; - int32 driveMode; - xShadowSimpleCache* simpShadow; - xEntShadow* entShadow; - anim_coll_data* anim_coll; - void* user_data; + xEntAsset* asset; + uint16 idx; + uint8 flags; + uint8 miscflags; + uint8 subType; + uint8 pflags; + uint16 moreFlags; + struct + { + uint8 _isCulled : 2; + uint8 collisionEventReceived : 2; + }; + uint8 driving_count; + uint8 num_ffx; + uint8 collType; + uint8 collLev; + uint8 chkby; + uint8 penby; + void (*visUpdate)(xEnt*); + xModelInstance* model; + xModelInstance* collModel; + xModelInstance* camcollModel; + void (*update)(xEnt*, xScene*, float32); + void (*endUpdate)(xEnt*, xScene*, float32); + void (*bupdate)(xEnt*, xVec3*); + void (*move)(xEnt*, xScene*, float32, xEntFrame*); + void (*render)(xEnt*); + xEntFrame* frame; + xEntCollis* collis; + xGridBound gridb; + xBound bound; + void (*transl)(xEnt*, xVec3*, xMat4x3*); + xFFX* ffx; + xEnt* driver; + xEnt* driven; + int32 driveMode; + xShadowSimpleCache* simpShadow; + xEntShadow* entShadow; + anim_coll_data* anim_coll; + void* user_data; }; struct RpInterpolator { - int32 flags; - int16 startMorphTarget; - int16 endMorphTarget; - float32 time; - float32 recipTime; - float32 position; + int32 flags; + int16 startMorphTarget; + int16 endMorphTarget; + float32 time; + float32 recipTime; + float32 position; }; struct entrail_data { - uint16 flags; - uint16 type; - xEnt* ent; - xVec3 loc; - xVec3 vel; - float32 emitted; + uint16 flags; + uint16 type; + xEnt* ent; + xVec3 loc; + xVec3 vel; + float32 emitted; }; struct zScene : xScene { - _zPortal* pendingPortal; - int32 num_base; - xBase** base; - uint32 num_update_base; - xBase** update_base; - int32 baseCount[141]; - xBase* baseList[141]; - _zEnv* zen; - zSceneParameters* parameters; - uint8 enableDrawing; + _zPortal* pendingPortal; + int32 num_base; + xBase** base; + uint32 num_update_base; + xBase** update_base; + int32 baseCount[141]; + xBase* baseList[141]; + _zEnv* zen; + zSceneParameters* parameters; + uint8 enableDrawing; }; struct zLODTable { - xModelBucket** baseBucket; - float32 noRenderDist; - uint32 flags; - xModelBucket** lodBucket[3]; - float32 lodDist[3]; + xModelBucket** baseBucket; + float32 noRenderDist; + uint32 flags; + xModelBucket** lodBucket[3]; + float32 lodDist[3]; }; struct RwFrustumPlane { - RwPlane plane; - uint8 closestX; - uint8 closestY; - uint8 closestZ; - uint8 pad; + RwPlane plane; + uint8 closestX; + uint8 closestY; + uint8 closestZ; + uint8 pad; }; enum RxNodeDefEditable { - rxNODEDEFCONST, - rxNODEDEFEDITABLE, - rxNODEDEFEDITABLEFORCEENUMSIZEINT = 0x7fffffff + rxNODEDEFCONST, + rxNODEDEFEDITABLE, + rxNODEDEFEDITABLEFORCEENUMSIZEINT = 0x7fffffff }; struct zFlameEmitter : xBase { - asset_type_1* asset; - xMat4x3 mat; - int32 flags; - handle* flames; - property_set props; - int32 flames_size; - int32 flames_allocated; - float32 oscil; - - void cb_dispatch(xBase* to, uint32 event); - void create_flames(int32 flags); - void fire_reset(); - void render_all(); - void update_all(float32 dt); - void setup_all(); - void scene_exit(); - void scene_enter(); - void get_bounding_box(xBox& box); - void load(xBase& data, xDynAsset& asset); + asset_type_1* asset; + xMat4x3 mat; + int32 flags; + handle* flames; + property_set props; + int32 flames_size; + int32 flames_allocated; + float32 oscil; + + void cb_dispatch(xBase* to, uint32 event); + void create_flames(int32 flags); + void fire_reset(); + void render_all(); + void update_all(float32 dt); + void setup_all(); + void scene_exit(); + void scene_enter(); + void get_bounding_box(xBox& box); + void load(xBase& data, xDynAsset& asset); }; struct zNMEAsset : xDynAsset { - xEntAsset ent_asset; + xEntAsset ent_asset; }; struct xEntNPCAsset { - int32 npcFlags; - int32 npcModel; - int32 npcProps; - uint32 movepoint; - uint32 taskWidgetPrime; - uint32 taskWidgetSecond; + int32 npcFlags; + int32 npcModel; + int32 npcProps; + uint32 movepoint; + uint32 taskWidgetPrime; + uint32 taskWidgetSecond; }; struct xAnimTransition { - xAnimTransition* Next; - xAnimState* Dest; - uint32(*Conditional)(xAnimTransition*, xAnimSingle*, void*); - uint32(*Callback)(xAnimTransition*, xAnimSingle*, void*); - uint32 Flags; - uint32 UserFlags; - float32 SrcTime; - float32 DestTime; - uint16 Priority; - uint16 QueuePriority; - float32 BlendRecip; - uint16* BlendOffset; + xAnimTransition* Next; + xAnimState* Dest; + uint32 (*Conditional)(xAnimTransition*, xAnimSingle*, void*); + uint32 (*Callback)(xAnimTransition*, xAnimSingle*, void*); + uint32 Flags; + uint32 UserFlags; + float32 SrcTime; + float32 DestTime; + uint16 Priority; + uint16 QueuePriority; + float32 BlendRecip; + uint16* BlendOffset; }; struct zPlayerSettings { - _zPlayerType pcType; - float32 MoveSpeed[6]; - float32 AnimSneak[3]; - float32 AnimWalk[3]; - float32 AnimRun[3]; - float32 JumpGravity; - float32 GravSmooth; - float32 FloatSpeed; - float32 ButtsmashSpeed; - zJumpParam Jump; - zJumpParam Bounce; - zJumpParam Spring; - zJumpParam Wall; - zJumpParam Double; - zJumpParam SlideDouble; - zJumpParam SlideJump; - float32 WallJumpVelocity; - zLedgeGrabParams ledge; - float32 spin_damp_xz; - float32 spin_damp_y; - uint8 talk_anims; - uint8 talk_filter_size; - uint8 talk_filter[4]; - uint32 Health; - uint32 MaxHealth; + _zPlayerType pcType; + float32 MoveSpeed[6]; + float32 AnimSneak[3]; + float32 AnimWalk[3]; + float32 AnimRun[3]; + float32 JumpGravity; + float32 GravSmooth; + float32 FloatSpeed; + float32 ButtsmashSpeed; + zJumpParam Jump; + zJumpParam Bounce; + zJumpParam Spring; + zJumpParam Wall; + zJumpParam Double; + zJumpParam SlideDouble; + zJumpParam SlideJump; + float32 WallJumpVelocity; + zLedgeGrabParams ledge; + float32 spin_damp_xz; + float32 spin_damp_y; + uint8 talk_anims; + uint8 talk_filter_size; + uint8 talk_filter[4]; + uint32 Health; + uint32 MaxHealth; }; struct _anon2 @@ -1807,80 +1811,80 @@ struct _anon2 struct xInternalMovieNode { - uint32 hash_id; - PKRAssetTOCInfo info; - MOVIE* pMovie; - RwTexture* pTexture; - uint8 used; - uint8 m_looping; - uint16 m_freezeframed; - uint32 m_startframe; - uint32 m_endframe; + uint32 hash_id; + PKRAssetTOCInfo info; + MOVIE* pMovie; + RwTexture* pTexture; + uint8 used; + uint8 m_looping; + uint16 m_freezeframed; + uint32 m_startframe; + uint32 m_endframe; }; struct RwCamera { - RwObjectHasFrame object; - RwCameraProjection projectionType; - RwCamera*(*beginUpdate)(RwCamera*); - RwCamera*(*endUpdate)(RwCamera*); - RwMatrixTag viewMatrix; - RwRaster* frameBuffer; - RwRaster* zBuffer; - RwV2d viewWindow; - RwV2d recipViewWindow; - RwV2d viewOffset; - float32 nearPlane; - float32 farPlane; - float32 fogPlane; - float32 zScale; - float32 zShift; - RwFrustumPlane frustumPlanes[6]; - RwBBox frustumBoundBox; - RwV3d frustumCorners[8]; + RwObjectHasFrame object; + RwCameraProjection projectionType; + RwCamera* (*beginUpdate)(RwCamera*); + RwCamera* (*endUpdate)(RwCamera*); + RwMatrixTag viewMatrix; + RwRaster* frameBuffer; + RwRaster* zBuffer; + RwV2d viewWindow; + RwV2d recipViewWindow; + RwV2d viewOffset; + float32 nearPlane; + float32 farPlane; + float32 fogPlane; + float32 zScale; + float32 zShift; + RwFrustumPlane frustumPlanes[6]; + RwBBox frustumBoundBox; + RwV3d frustumCorners[8]; }; struct xDestructibleAsset { - uint32 id; - uint32 nstates; - uint32 hit_points; - uint32 hit_filter; - uint32 launch_flag; - uint32 behaviour; - uint32 flags; - uint32 soundgroupidleID; - float32 respawn; - uint8 target_priority; - xDestructibleAssetState* states; + uint32 id; + uint32 nstates; + uint32 hit_points; + uint32 hit_filter; + uint32 launch_flag; + uint32 behaviour; + uint32 flags; + uint32 soundgroupidleID; + float32 respawn; + uint8 target_priority; + xDestructibleAssetState* states; }; struct xGoal : xListItem, xFactoryInst { - xPsyche* psyche; - en_GOALSTATE stat; - int32 flg_able; - int32(*fun_process)(xGoal*, void*, en_trantype*, float32, void*); - void* cbdata; + xPsyche* psyche; + en_GOALSTATE stat; + int32 flg_able; + int32 (*fun_process)(xGoal*, void*, en_trantype*, float32, void*); + void* cbdata; }; struct xPsyche : RyzMemData { - xBase* clt_owner; - xPSYNote* cb_notice; - int32 flg_psyche; - xGoal* goallist; - xGoal* goalstak[5]; - float32 tmr_stack[1][5]; - int32 staktop; - xGoal* pendgoal; - en_pendtype pendtype; - int32 gid_safegoal; - void(*fun_remap)(int32*, en_trantype*); - void* userContext; - int32 cnt_transLastTimestep; - PSY_BRAIN_STATUS psystat; - xBase fakebase; + xBase* clt_owner; + xPSYNote* cb_notice; + int32 flg_psyche; + xGoal* goallist; + xGoal* goalstak[5]; + float32 tmr_stack[1][5]; + int32 staktop; + xGoal* pendgoal; + en_pendtype pendtype; + int32 gid_safegoal; + void (*fun_remap)(int32*, en_trantype*); + void* userContext; + int32 cnt_transLastTimestep; + PSY_BRAIN_STATUS psystat; + xBase fakebase; }; struct RpSkin @@ -1889,102 +1893,102 @@ struct RpSkin struct zNPCMgr : RyzMemData { - st_XORDEREDARRAY npclist; - xFactory* npcFactory; - xBase selfbase; - int32 flg_createForAnim; - base* firstAllocList[104]; + st_XORDEREDARRAY npclist; + xFactory* npcFactory; + xBase selfbase; + int32 flg_createForAnim; + base* firstAllocList[104]; - xEnt* CreateDynNME(xEntAsset* ent_asset, xDynAsset* dyn_asset, int32 siz_dynass); - base* FindNPC(uint32 aid); - void Shutdown(); - void* __dt(); + xEnt* CreateDynNME(xEntAsset* ent_asset, xDynAsset* dyn_asset, int32 siz_dynass); + base* FindNPC(uint32 aid); + void Shutdown(); + void* __dt(); }; struct zFXGooInstance { - RpAtomic* atomic; - int32 freezeGroup; - xVec3* orig_verts; - RwRGBA* orig_colors; - float32 time; - float32 timer; - float32 w0; - float32 w2; - float32 warbc[4]; - float32 state_time[4]; - xVec3 center; - zFXGooState state; - float32 warb_time; - float32 alpha; - float32 min; - float32 max; - xVec3* ref_parentPos; - xVec3 pos_parentOnFreeze; - uint32 pipeFlags; - RpGeometry* geom2; + RpAtomic* atomic; + int32 freezeGroup; + xVec3* orig_verts; + RwRGBA* orig_colors; + float32 time; + float32 timer; + float32 w0; + float32 w2; + float32 warbc[4]; + float32 state_time[4]; + xVec3 center; + zFXGooState state; + float32 warb_time; + float32 alpha; + float32 min; + float32 max; + xVec3* ref_parentPos; + xVec3 pos_parentOnFreeze; + uint32 pipeFlags; + RpGeometry* geom2; }; struct _xCounter : xBase { - xCounterAsset* asset; - int16 count; - uint8 state; - uint8 pad; + xCounterAsset* asset; + int16 count; + uint8 state; + uint8 pad; }; struct sphericalEmitterAsset : xDynAsset { - uint32 effectID; - float32 radius; - xVec3 position; - uint8 onlyRumbleOnY; - uint8 fallOff; - uint8 onlyOnFloor; + uint32 effectID; + float32 radius; + xVec3 position; + uint8 onlyRumbleOnY; + uint8 fallOff; + uint8 onlyOnFloor; }; struct RwRaster { - RwRaster* parent; - uint8* cpPixels; - uint8* palette; - int32 width; - int32 height; - int32 depth; - int32 stride; - int16 nOffsetX; - int16 nOffsetY; - uint8 cType; - uint8 cFlags; - uint8 privateFlags; - uint8 cFormat; - uint8* originalPixels; - int32 originalWidth; - int32 originalHeight; - int32 originalStride; + RwRaster* parent; + uint8* cpPixels; + uint8* palette; + int32 width; + int32 height; + int32 depth; + int32 stride; + int16 nOffsetX; + int16 nOffsetY; + uint8 cType; + uint8 cFlags; + uint8 privateFlags; + uint8 cFormat; + uint8* originalPixels; + int32 originalWidth; + int32 originalHeight; + int32 originalStride; }; struct xAnimState { - xAnimState* Next; - int8* Name; - uint32 ID; - uint32 Flags; - uint32 UserFlags; - float32 Speed; - xAnimFile* Data; - xAnimEffect* Effects; - xAnimTransitionList* Default; - xAnimTransitionList* List; - float32* BoneBlend; - float32* TimeSnap; - float32 FadeRecip; - uint16* FadeOffset; - void* CallbackData; - xAnimMultiFile* MultiFile; - void(*BeforeEnter)(xAnimPlay*, xAnimState*, void*); - void(*StateCallback)(xAnimState*, xAnimSingle*, void*); - void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); + xAnimState* Next; + int8* Name; + uint32 ID; + uint32 Flags; + uint32 UserFlags; + float32 Speed; + xAnimFile* Data; + xAnimEffect* Effects; + xAnimTransitionList* Default; + xAnimTransitionList* List; + float32* BoneBlend; + float32* TimeSnap; + float32 FadeRecip; + uint16* FadeOffset; + void* CallbackData; + xAnimMultiFile* MultiFile; + void (*BeforeEnter)(xAnimPlay*, xAnimState*, void*); + void (*StateCallback)(xAnimState*, xAnimSingle*, void*); + void (*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; struct asset_type_0 @@ -1993,40 +1997,40 @@ struct asset_type_0 struct xQCControl { - float32 world_xmin; - float32 world_ymin; - float32 world_zmin; - float32 world_xmax; - float32 world_ymax; - float32 world_zmax; - float32 world_xsz; - float32 world_ysz; - float32 world_zsz; - float32 scale_x; - float32 scale_y; - float32 scale_z; - float32 center_x; - float32 center_y; - float32 center_z; + float32 world_xmin; + float32 world_ymin; + float32 world_zmin; + float32 world_xmax; + float32 world_ymax; + float32 world_zmax; + float32 world_xsz; + float32 world_ysz; + float32 world_zsz; + float32 scale_x; + float32 scale_y; + float32 scale_z; + float32 center_x; + float32 center_y; + float32 center_z; }; struct xEntAsset : xBaseAsset { - uint8 flags; - uint8 subtype; - uint8 pflags; - uint8 moreFlags; - uint32 surfaceID; - xVec3 ang; - xVec3 pos; - xVec3 scale; - float32 redMult; - float32 greenMult; - float32 blueMult; - float32 seeThru; - float32 seeThruSpeed; - uint32 modelInfoID; - uint32 animListID; + uint8 flags; + uint8 subtype; + uint8 pflags; + uint8 moreFlags; + uint32 surfaceID; + xVec3 ang; + xVec3 pos; + xVec3 scale; + float32 redMult; + float32 greenMult; + float32 blueMult; + float32 seeThru; + float32 seeThruSpeed; + uint32 modelInfoID; + uint32 animListID; }; struct xParSys @@ -2035,185 +2039,185 @@ struct xParSys struct _class_0 { - xVec3* verts; + xVec3* verts; }; struct popper_data { - state_enum state; - xEnt* ent; - RpAtomic* atomic[4]; - uint32 atomic_size; - float32 time; - float32 end_time; - union - { - xVec3 model_scale; - uint32 pipe_flags; - }; - float32 rate; - float32 vel; - float32 rloc; - float32 rvel; - float32 emitted; - float32 radius; - float32 area; - int32 faces; - int32 max_faces; - float32* weight; + state_enum state; + xEnt* ent; + RpAtomic* atomic[4]; + uint32 atomic_size; + float32 time; + float32 end_time; + union + { + xVec3 model_scale; + uint32 pipe_flags; + }; + float32 rate; + float32 vel; + float32 rloc; + float32 rvel; + float32 emitted; + float32 radius; + float32 area; + int32 faces; + int32 max_faces; + float32* weight; }; struct zUIAsset : xDynAsset { - float32 x; - float32 y; - float32 z; - float32 width; - float32 height; - int32 flags; - uint32 color; - uint32 selectedMotion; - uint32 unselectedMotion; - uint8 brightness; - uint8 pad[3]; - uint32 autoMenuUp; - uint32 autoMenuDown; - uint32 autoMenuLeft; - uint32 autoMenuRight; - uint32 custom; - uint32 customWidget; + float32 x; + float32 y; + float32 z; + float32 width; + float32 height; + int32 flags; + uint32 color; + uint32 selectedMotion; + uint32 unselectedMotion; + uint8 brightness; + uint8 pad[3]; + uint32 autoMenuUp; + uint32 autoMenuDown; + uint32 autoMenuLeft; + uint32 autoMenuRight; + uint32 custom; + uint32 customWidget; }; struct xModelBucket { - RpAtomic* Data; - RpAtomic* OriginalData; - union - { - xModelInstance* List; - xModelBucket** BackRef; - }; - int32 ClipFlags; - xModelPipe Pipe; + RpAtomic* Data; + RpAtomic* OriginalData; + union + { + xModelInstance* List; + xModelBucket** BackRef; + }; + int32 ClipFlags; + xModelPipe Pipe; }; struct zHangableObject { - zHangable* hangable; - xEnt* object; - float32 radius; - xVec3 vel; - xVec3 accel; - xVec3 handle; - xMat3x3 centerMat; - xVec3 rotAxis; - xVec3 lastDisp; - xVec3 objVel; + zHangable* hangable; + xEnt* object; + float32 radius; + xVec3 vel; + xVec3 accel; + xVec3 handle; + xMat3x3 centerMat; + xVec3 rotAxis; + xVec3 lastDisp; + xVec3 objVel; }; struct xInternalTextureNode { - PKRAssetTOCInfo info; - union - { - void* pAssetMemory; - RwTexture* pTexture; - }; - uint16 LRU; - uint8 refCount; - int8 state; - uint8 used; + PKRAssetTOCInfo info; + union + { + void* pAssetMemory; + RwTexture* pTexture; + }; + uint16 LRU; + uint8 refCount; + int8 state; + uint8 used; }; struct xBBox { - xVec3 center; - xBox box; + xVec3 center; + xBox box; }; enum RwFogType { - rwFOGTYPENAFOGTYPE, - rwFOGTYPELINEAR, - rwFOGTYPEEXPONENTIAL, - rwFOGTYPEEXPONENTIAL2, - rwFOGTYPEFORCEENUMSIZEINT = 0x7fffffff + rwFOGTYPENAFOGTYPE, + rwFOGTYPELINEAR, + rwFOGTYPEEXPONENTIAL, + rwFOGTYPEEXPONENTIAL2, + rwFOGTYPEFORCEENUMSIZEINT = 0x7fffffff }; struct zGrapple : xBase { - zGrappleAsset* grappleAsset; + zGrappleAsset* grappleAsset; }; struct RpTie { - RwLLLink lAtomicInWorldSector; - RpAtomic* apAtom; - RwLLLink lWorldSectorInAtomic; - RpWorldSector* worldSector; + RwLLLink lAtomicInWorldSector; + RpAtomic* apAtom; + RwLLLink lWorldSectorInAtomic; + RpWorldSector* worldSector; }; struct zJumpParam { - float32 PeakHeight; - float32 TimeGravChange; - float32 TimeHold; - float32 ImpulseVel; + float32 PeakHeight; + float32 TimeGravChange; + float32 TimeHold; + float32 ImpulseVel; }; struct rxHeapBlockHeader { - rxHeapBlockHeader* prev; - rxHeapBlockHeader* next; - uint32 size; - rxHeapFreeBlock* freeEntry; - uint32 pad[4]; + rxHeapBlockHeader* prev; + rxHeapBlockHeader* next; + uint32 size; + rxHeapFreeBlock* freeEntry; + uint32 pad[4]; }; struct tweak_info { - substr name; - void* value; - tweak_callback* cb; - void* context; - uint8 type; - uint8 value_size; - uint16 flags; - union - { - _class_13 int_context; - _class_17 uint_context; - _class_20 float_context; - _class_24 bool_context; - _class_1 select_context; - _class_3 flag_context; - _class_6 all_context; - }; + substr name; + void* value; + tweak_callback* cb; + void* context; + uint8 type; + uint8 value_size; + uint16 flags; + union + { + _class_13 int_context; + _class_17 uint_context; + _class_20 float_context; + _class_24 bool_context; + _class_1 select_context; + _class_3 flag_context; + _class_6 all_context; + }; }; struct _zEnv : xBase { - xEnvAsset* easset; + xEnvAsset* easset; }; struct taskEntry { - int8 name[4]; - uint8 taskStatus[8]; - uint32 numTasks; + int8 name[4]; + uint8 taskStatus[8]; + uint32 numTasks; }; struct zHitSourceMapEntry { - int8* name; - zHitSource sourcetype; + int8* name; + zHitSource sourcetype; }; enum _enum_0 { - YJ_TOP, - YJ_CENTER, - YJ_BOTTOM + YJ_TOP, + YJ_CENTER, + YJ_BOTTOM }; struct _anon3 @@ -2226,93 +2230,93 @@ struct zReactiveAnimationData struct xSerial { - uint32 idtag; - int32 baseoff; - st_SERIAL_CLIENTINFO* ctxtdata; - int32 warned; - int32 curele; - int32 bitidx; - int32 bittally; + uint32 idtag; + int32 baseoff; + st_SERIAL_CLIENTINFO* ctxtdata; + int32 warned; + int32 curele; + int32 bitidx; + int32 bittally; }; struct xVec4 { - float32 x; - float32 y; - float32 z; - float32 w; + float32 x; + float32 y; + float32 z; + float32 w; }; enum en_vis { - VIS_PREPARE_TO_DIE, - VIS_HORROR_FLIK, - VIS_OH_DEAR_GAHD, - VIS_GET_BACK_HERE, - VIS_I_SEEE_YOUUU, - VIS_GREY_AND_FOGGY, - VIS_LIKE_A_BIRDIE, - VIS_EARTHWORM_JIM, - VIS_NOBODY_AROUND, - VIS_NOMORE + VIS_PREPARE_TO_DIE, + VIS_HORROR_FLIK, + VIS_OH_DEAR_GAHD, + VIS_GET_BACK_HERE, + VIS_I_SEEE_YOUUU, + VIS_GREY_AND_FOGGY, + VIS_LIKE_A_BIRDIE, + VIS_EARTHWORM_JIM, + VIS_NOBODY_AROUND, + VIS_NOMORE }; struct xAnimTable { - int8* Name; - xAnimTransition* TransitionList; - xAnimState* StateList; - uint32 AnimIndex; - uint32 MorphIndex; - uint32 UserFlags; + int8* Name; + xAnimTransition* TransitionList; + xAnimState* StateList; + uint32 AnimIndex; + uint32 MorphIndex; + uint32 UserFlags; }; struct xSndGroup { - xSndGroupHeader header; - xSndGroupInfo aSndGroupInfo[0]; + xSndGroupHeader header; + xSndGroupInfo aSndGroupInfo[0]; }; struct xSndGroupInfo { - uint32 uSoundNameHash; - float32 fVolume; - float32 fMinPitchMult; - float32 fMaxPitchMult; + uint32 uSoundNameHash; + float32 fVolume; + float32 fMinPitchMult; + float32 fMaxPitchMult; }; struct xPERect { - float32 x_len; - float32 z_len; + float32 x_len; + float32 z_len; }; struct RxIoSpec { - uint32 numClustersOfInterest; - RxClusterRef* clustersOfInterest; - RxClusterValidityReq* inputRequirements; - uint32 numOutputs; - RxOutputSpec* outputs; + uint32 numClustersOfInterest; + RxClusterRef* clustersOfInterest; + RxClusterValidityReq* inputRequirements; + uint32 numOutputs; + RxOutputSpec* outputs; }; struct asset_type_1 : xDynAsset { - uint32 flags; - xVec3 loc; - xVec3 dir; - xVec3 scale; - float32 heat_random; - float32 damage; - float32 knockback; + uint32 flags; + xVec3 loc; + xVec3 dir; + xVec3 scale; + float32 heat_random; + float32 damage; + float32 knockback; }; struct model_widget : widget { - uint32 mid; - xModelInstance* model; - float32 x_scale; - float32 y_scale; + uint32 mid; + xModelInstance* model; + float32 x_scale; + float32 y_scale; }; struct _anon4 @@ -2321,39 +2325,39 @@ struct _anon4 struct RpClump { - RwObject object; - RwLinkList atomicList; - RwLinkList lightList; - RwLinkList cameraList; - RwLLLink inWorldLink; - RpClump*(*callback)(RpClump*, void*); + RwObject object; + RwLinkList atomicList; + RwLinkList lightList; + RwLinkList cameraList; + RwLLLink inWorldLink; + RpClump* (*callback)(RpClump*, void*); }; struct _tagPartLink { - void* data; - _tagPartLink* next; + void* data; + _tagPartLink* next; }; struct RpMorphTarget { - RpGeometry* parentGeom; - RwSphere boundingSphere; - RwV3d* verts; - RwV3d* normals; + RpGeometry* parentGeom; + RwSphere boundingSphere; + RwV3d* verts; + RwV3d* normals; }; enum en_nmesimp { - NME_SIMP_HAPPY, - NME_SIMP_DEAD, - NME_SIMP_IGNORANT, - NME_SIMP_WARYDETECT, - NME_SIMP_WARY, - NME_SIMP_WORRIED, - NME_SIMP_CONFUSED, - NME_SIMP_BIGBULLY, - NPC_STAT_NOMORE + NME_SIMP_HAPPY, + NME_SIMP_DEAD, + NME_SIMP_IGNORANT, + NME_SIMP_WARYDETECT, + NME_SIMP_WARY, + NME_SIMP_WORRIED, + NME_SIMP_CONFUSED, + NME_SIMP_BIGBULLY, + NPC_STAT_NOMORE }; struct zReactiveGenre @@ -2362,33 +2366,33 @@ struct zReactiveGenre struct RpWorld { - RwObject object; - uint32 flags; - RpWorldRenderOrder renderOrder; - RpMaterialList matList; - RpSector* rootSector; - int32 numTexCoordSets; - int32 numClumpsInWorld; - RwLLLink* currentClumpLink; - RwLinkList clumpList; - RwLinkList lightList; - RwLinkList directionalLightList; - RwV3d worldOrigin; - RwBBox boundingBox; - RpWorldSector*(*renderCallBack)(RpWorldSector*); - RxPipeline* pipeline; + RwObject object; + uint32 flags; + RpWorldRenderOrder renderOrder; + RpMaterialList matList; + RpSector* rootSector; + int32 numTexCoordSets; + int32 numClumpsInWorld; + RwLLLink* currentClumpLink; + RwLinkList clumpList; + RwLinkList lightList; + RwLinkList directionalLightList; + RwV3d worldOrigin; + RwBBox boundingBox; + RpWorldSector* (*renderCallBack)(RpWorldSector*); + RxPipeline* pipeline; }; struct ztextbox : xBase { - _class_8 flag; - asset_type_2* asset; - xtextbox tb; - int8* segments[16]; - uint32 segments_size; - ztextbox* next; - ztextbox* prev; - RwRaster* bgtex; + _class_8 flag; + asset_type_2* asset; + xtextbox tb; + int8* segments[16]; + uint32 segments_size; + ztextbox* next; + ztextbox* prev; + RwRaster* bgtex; }; struct _anon5 @@ -2397,67 +2401,67 @@ struct _anon5 struct _class_1 { - uint32 value_def; - uint32 labels_size; - int8** labels; - void* values; + uint32 value_def; + uint32 labels_size; + int8** labels; + void* values; }; struct xShadowSimpleCache { - uint16 flags; - uint8 alpha; - uint8 pad; - uint32 collPriority; - xVec3 pos; - xVec3 at; - float32 tol_movement; - float32 radiusOptional; - xEnt* castOnEnt; - xShadowSimplePoly poly; - float32 envHeight; - float32 shadowHeight; - union - { - uint32 raster; - RwRaster* ptr_raster; - }; - float32 dydx; - float32 dydz; - xVec3 corner[4]; - void* collSkipsItem; + uint16 flags; + uint8 alpha; + uint8 pad; + uint32 collPriority; + xVec3 pos; + xVec3 at; + float32 tol_movement; + float32 radiusOptional; + xEnt* castOnEnt; + xShadowSimplePoly poly; + float32 envHeight; + float32 shadowHeight; + union + { + uint32 raster; + RwRaster* ptr_raster; + }; + float32 dydx; + float32 dydz; + xVec3 corner[4]; + void* collSkipsItem; }; struct _tagLightningAdd { - uint32 type; - float32 setup_degrees; - float32 move_degrees; - float32 rot_radius; - xVec3* start; - xVec3* end; - int16 total_points; - int16 end_points; - float32 time; - float32 arc_height; - float32 thickness; - float32 segmentsPerMeter; - xColor_tag color; - float32 rand_radius; - uint32 flags; - float32 zeus_normal_offset; - float32 zeus_back_offset; - float32 zeus_side_offset; - float32 branchSpeed; - uint32 mainTexture; - uint32 branchTexture; - int32 damage; - float32 knockBackSpeed; - xEnt* followStart; - xEnt* followEnd; - iSndHandle sndHandle; - uint8 collisionEnabled; - uint8 isMain; + uint32 type; + float32 setup_degrees; + float32 move_degrees; + float32 rot_radius; + xVec3* start; + xVec3* end; + int16 total_points; + int16 end_points; + float32 time; + float32 arc_height; + float32 thickness; + float32 segmentsPerMeter; + xColor_tag color; + float32 rand_radius; + uint32 flags; + float32 zeus_normal_offset; + float32 zeus_back_offset; + float32 zeus_side_offset; + float32 branchSpeed; + uint32 mainTexture; + uint32 branchTexture; + int32 damage; + float32 knockBackSpeed; + xEnt* followStart; + xEnt* followEnd; + iSndHandle sndHandle; + uint8 collisionEnabled; + uint8 isMain; }; struct _anon6 @@ -2466,106 +2470,106 @@ struct _anon6 struct xLightKit { - uint32 tagID; - uint32 groupID; - uint32 lightCount; - xLightKitLight* lightList; + uint32 tagID; + uint32 groupID; + uint32 lightCount; + xLightKitLight* lightList; }; struct zGrappleAsset : xDynAsset { - uint32 object; + uint32 object; }; struct xMat4x3 : xMat3x3 { - xVec3 pos; - uint32 pad3; + xVec3 pos; + uint32 pad3; }; struct xGroup : xBase { - xGroupAsset* asset; - xBase** item; - uint32 last_index; - int32 flg_group; + xGroupAsset* asset; + xBase** item; + uint32 last_index; + int32 flg_group; }; struct xRay3 { - xVec3 origin; - xVec3 dir; - float32 min_t; - float32 max_t; - int32 flags; + xVec3 origin; + xVec3 dir; + float32 min_t; + float32 max_t; + int32 flags; }; struct zUITextAsset : zUIAsset { - uint32 textID; - uint8 font; - uint8 fontSizeW; - uint8 fontSizeH; - uint8 fontSpacingX; - uint8 fontSpacingY; - uint8 textBoxInsetTop; - uint8 textBoxInsetLeft; - uint8 textBoxInsetRight; - uint8 textBoxInsetBottom; - uint8 justifyX; - uint8 justifyY; - uint8 textFlags; - xColor_tag shadowColor; - float32 shadowOffsetX; - float32 shadowOffsetY; - float32 textScaleX; - float32 textScaleY; + uint32 textID; + uint8 font; + uint8 fontSizeW; + uint8 fontSizeH; + uint8 fontSpacingX; + uint8 fontSpacingY; + uint8 textBoxInsetTop; + uint8 textBoxInsetLeft; + uint8 textBoxInsetRight; + uint8 textBoxInsetBottom; + uint8 justifyX; + uint8 justifyY; + uint8 textFlags; + xColor_tag shadowColor; + float32 shadowOffsetX; + float32 shadowOffsetY; + float32 textScaleX; + float32 textScaleY; }; struct font_meter_widget : meter_widget { - font_context font; - font_context start_font; - int32 precision; - int8 buffer[12]; - int32 last_value; - xfont xf; + font_context font; + font_context start_font; + int32 precision; + int8 buffer[12]; + int32 last_value; + xfont xf; }; struct zGooParams { - float32 depth; - float32 orig_depth; - xEnt* goo_ent; + float32 depth; + float32 orig_depth; + xEnt* goo_ent; }; struct xEntMotion { - xEntMotionAsset* asset; - uint8 type; - uint8 pad; - uint16 ent_motion_flags; - float32 t; - float32 tmr; - float32 d; - union - { - xEntERData er; - xEntOrbitData orb; - xEntSplineData spl; - xEntMPData mp; - xEntMechData mech; - xEntPenData pen; - }; - xEnt* owner; - xEnt* target; + xEntMotionAsset* asset; + uint8 type; + uint8 pad; + uint16 ent_motion_flags; + float32 t; + float32 tmr; + float32 d; + union + { + xEntERData er; + xEntOrbitData orb; + xEntSplineData spl; + xEntMPData mp; + xEntMechData mech; + xEntPenData pen; + }; + xEnt* owner; + xEnt* target; }; struct xAnimPhysicsData { - xVec3* tranTable; - float32* yawTable; - int32 tranCount; + xVec3* tranTable; + float32* yawTable; + int32 tranCount; }; struct zEntHangable @@ -2574,291 +2578,292 @@ struct zEntHangable struct xClumpCollBSPTree { - int32 numBranchNodes; - xClumpCollBSPBranchNode* branchNodes; - int32 numTriangles; - xClumpCollBSPTriangle* triangles; + int32 numBranchNodes; + xClumpCollBSPBranchNode* branchNodes; + int32 numTriangles; + xClumpCollBSPTriangle* triangles; }; struct analog_data { - xVec2 offset; - xVec2 dir; - float32 mag; - float32 ang; + xVec2 offset; + xVec2 dir; + float32 mag; + float32 ang; }; struct xEntFrame { - xMat4x3 mat; - xMat4x3 oldmat; - xVec3 oldvel; - xRot oldrot; - xRot drot; - xRot rot; - xVec3 dvel; - xVec3 vel; - uint32 mode; - xVec3 dpos; + xMat4x3 mat; + xMat4x3 oldmat; + xVec3 oldvel; + xRot oldrot; + xRot drot; + xRot rot; + xVec3 dvel; + xVec3 vel; + uint32 mode; + xVec3 dpos; }; struct RwBBox { - RwV3d sup; - RwV3d inf; + RwV3d sup; + RwV3d inf; }; struct zUICustomImageSlideshow : zUICustom { - uint32 m_CurrentImage; - uint32 m_NumImages; - xGroup* m_TextureGroup; + uint32 m_CurrentImage; + uint32 m_NumImages; + xGroup* m_TextureGroup; }; struct _zPortal : xBase { - xPortalAsset* passet; + xPortalAsset* passet; }; struct xCamCoordCylinder { - xVec3 origin; - float32 dist; - float32 height; - float32 theta; + xVec3 origin; + float32 dist; + float32 height; + float32 theta; }; struct xAnimEffect { - xAnimEffect* Next; - uint16 Flags; - uint16 Probability; - float32 StartTime; - float32 EndTime; - uint32(*Callback)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); + xAnimEffect* Next; + uint16 Flags; + uint16 Probability; + float32 StartTime; + float32 EndTime; + uint32 (*Callback)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); }; struct EGGItemFuncs { - void(*fun_update)(float32, EGGItem*); - void(*fun_init)(EGGItem*); - void(*fun_reset)(EGGItem*); - void(*fun_done)(EGGItem*); + void (*fun_update)(float32, EGGItem*); + void (*fun_init)(EGGItem*); + void (*fun_reset)(EGGItem*); + void (*fun_done)(EGGItem*); }; struct xParInterp { - float32 val[2]; - uint32 interp; - float32 freq; - float32 oofreq; + float32 val[2]; + uint32 interp; + float32 freq; + float32 oofreq; }; struct zSimpleMgr { - xSphere worldBound; - float32 noRenderDist; - float32 lodDist0; - float32 fadeDist; - uint32 flags; - xModelBucket** lodBucket[2]; - RpAtomic* lodAtomic[2]; - RwMatrixTag* mat; - xModelInstance* model; - zEntSimpleObj* ent; - xLightKit* lkit; + xSphere worldBound; + float32 noRenderDist; + float32 lodDist0; + float32 fadeDist; + uint32 flags; + xModelBucket** lodBucket[2]; + RpAtomic* lodAtomic[2]; + RwMatrixTag* mat; + xModelInstance* model; + zEntSimpleObj* ent; + xLightKit* lkit; }; struct RwLLLink { - RwLLLink* next; - RwLLLink* prev; + RwLLLink* next; + RwLLLink* prev; }; struct zEnt : xEnt { - xAnimTable* atbl; + xAnimTable* atbl; }; struct zUICustomExtrasArt : zUICustom { - uint8 mExtraID; - zUIImage* mImage; - zUIText* mDescription; - xGroup* mImageGroup; - xSoundFX* mSoundMove; - long32 mImageTime; + uint8 mExtraID; + zUIImage* mImage; + zUIText* mDescription; + xGroup* mImageGroup; + xSoundFX* mSoundMove; + long32 mImageTime; - void InitScreen(); - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); + void InitScreen(); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); }; struct xCutsceneInfo { - uint32 Magic; - uint32 AssetID; - uint32 NumData; - uint32 NumTime; - uint32 MaxModel; - uint32 MaxBufEven; - uint32 MaxBufOdd; - uint32 HeaderSize; - uint32 VisCount; - uint32 VisSize; - uint32 BreakCount; - uint32 pad; - xCutsceneAudioTrack AudioTracks[32]; + uint32 Magic; + uint32 AssetID; + uint32 NumData; + uint32 NumTime; + uint32 MaxModel; + uint32 MaxBufEven; + uint32 MaxBufOdd; + uint32 HeaderSize; + uint32 VisCount; + uint32 VisSize; + uint32 BreakCount; + uint32 pad; + xCutsceneAudioTrack AudioTracks[32]; }; struct xEntMotionMPData { - uint32 flags; - uint32 mp_id; - float32 speed; + uint32 flags; + uint32 mp_id; + float32 speed; }; struct zNMECommon : zNMENPCWrapper { - zNMEAsset* nmeass; - int32 siz_nmeass; - xPsyche* psy_self; - NMECfgCommon* cfg_common; - NMEShadParms* cfg_shadparm; - int32 flg_vuln; - int32 flg_move; - int32 flg_misc; - int32 flg_able; - float32 spd_throttle; - NMERuntime runtimeData; - zNMEDriver* drv_data; - zNMENavNet* navnet; - union - { - float32 tmr_common[3]; - float32 tmr_invuln; - }; - float32 tmr_scary; - float32 tmr_lastAlert; - zNMECommon* npc_duplodude; - zNMESoundTable* snd_table; - iSndHandle sndID[10]; - zShrapnelAsset* shrapnelAsset; + zNMEAsset* nmeass; + int32 siz_nmeass; + xPsyche* psy_self; + NMECfgCommon* cfg_common; + NMEShadParms* cfg_shadparm; + int32 flg_vuln; + int32 flg_move; + int32 flg_misc; + int32 flg_able; + float32 spd_throttle; + NMERuntime runtimeData; + zNMEDriver* drv_data; + zNMENavNet* navnet; + union + { + float32 tmr_common[3]; + float32 tmr_invuln; + }; + float32 tmr_scary; + float32 tmr_lastAlert; + zNMECommon* npc_duplodude; + zNMESoundTable* snd_table; + iSndHandle sndID[10]; + zShrapnelAsset* shrapnelAsset; }; struct xGrid { - uint8 ingrid_id; - uint8 pad[3]; - uint16 nx; - uint16 nz; - float32 minx; - float32 minz; - float32 maxx; - float32 maxz; - float32 csizex; - float32 csizez; - float32 inv_csizex; - float32 inv_csizez; - float32 maxr; - xGridBound** cells; - xGridBound* other; - int32 iter_active; + uint8 ingrid_id; + uint8 pad[3]; + uint16 nx; + uint16 nz; + float32 minx; + float32 minz; + float32 maxx; + float32 maxz; + float32 csizex; + float32 csizez; + float32 inv_csizex; + float32 inv_csizez; + float32 maxr; + xGridBound** cells; + xGridBound* other; + int32 iter_active; }; struct XCSNNosey { - void* userdata; - int32 flg_nosey; + void* userdata; + int32 flg_nosey; }; enum ePOWERUPMENU { - ePOWERUPMENU_KarateSpin, - ePOWERUPMENU_Bash, - ePOWERUPMENU_BubbleBowl, - ePOWERUPMENU_SonicWave, - ePOWERUPMENU_BellyBump, - ePOWERUPMENU_Cartwheel, - ePOWERUPMENU_BellyFlop, - ePOWERUPMENU_Throw, - ePOWERUPMENU_SBHealth, - ePOWERUPMENU_PatHealth, - ePOWERUPMENU_PointsAvail, - ePOWERUPMENU_Max + ePOWERUPMENU_KarateSpin, + ePOWERUPMENU_Bash, + ePOWERUPMENU_BubbleBowl, + ePOWERUPMENU_SonicWave, + ePOWERUPMENU_BellyBump, + ePOWERUPMENU_Cartwheel, + ePOWERUPMENU_BellyFlop, + ePOWERUPMENU_Throw, + ePOWERUPMENU_SBHealth, + ePOWERUPMENU_PatHealth, + ePOWERUPMENU_PointsAvail, + ePOWERUPMENU_Max }; struct xEntMotionAsset { - uint8 type; - uint8 use_banking; - uint16 ent_motion_flags; - union - { - xEntMotionERData er; - xEntMotionOrbitData orb; - xEntMotionSplineData spl; - xEntMotionMPData mp; - xEntMotionMechData mech; - xEntMotionPenData pen; - }; + uint8 type; + uint8 use_banking; + uint16 ent_motion_flags; + union + { + xEntMotionERData er; + xEntMotionOrbitData orb; + xEntMotionSplineData spl; + xEntMotionMPData mp; + xEntMotionMechData mech; + xEntMotionPenData pen; + }; }; enum eSNDCurrentPlayer { - eCurrentPlayerSpongeBob, - eCurrentPlayerPatrick, - eCurrentPlayerCar, - eCurrentPlayerSpongePat, - eCurrentPlayerCount + eCurrentPlayerSpongeBob, + eCurrentPlayerPatrick, + eCurrentPlayerCar, + eCurrentPlayerSpongePat, + eCurrentPlayerCount }; struct xEntCollis { - uint8 chk; - uint8 pen; - uint8 env_sidx; - uint8 env_eidx; - uint8 npc_sidx; - uint8 npc_eidx; - uint8 dyn_sidx; - uint8 dyn_eidx; - uint8 stat_sidx; - uint8 stat_eidx; - uint8 idx; - xCollis colls[18]; - void(*post)(xEnt*, xScene*, float32, xEntCollis*); - uint32(*depenq)(xEnt*, xEnt*, xScene*, float32, xCollis*); + uint8 chk; + uint8 pen; + uint8 env_sidx; + uint8 env_eidx; + uint8 npc_sidx; + uint8 npc_eidx; + uint8 dyn_sidx; + uint8 dyn_eidx; + uint8 stat_sidx; + uint8 stat_eidx; + uint8 idx; + xCollis colls[18]; + void (*post)(xEnt*, xScene*, float32, xEntCollis*); + uint32 (*depenq)(xEnt*, xEnt*, xScene*, float32, xCollis*); }; struct xAnimMultiFileEntry { - uint32 ID; - xAnimFile* File; + uint32 ID; + xAnimFile* File; }; struct xFuncPiece { - float32 coef[5]; - float32 end; - int32 order; - xFuncPiece* next; + float32 coef[5]; + float32 end; + int32 order; + xFuncPiece* next; }; struct RxPipeline { - int32 locked; - uint32 numNodes; - RxPipelineNode* nodes; - uint32 packetNumClusterSlots; - rxEmbeddedPacketState embeddedPacketState; - RxPacket* embeddedPacket; - uint32 numInputRequirements; - RxPipelineRequiresCluster* inputRequirements; - void* superBlock; - uint32 superBlockSize; - uint32 entryPoint; - uint32 pluginId; - uint32 pluginData; + int32 locked; + uint32 numNodes; + RxPipelineNode* nodes; + uint32 packetNumClusterSlots; + rxEmbeddedPacketState embeddedPacketState; + RxPacket* embeddedPacket; + uint32 numInputRequirements; + RxPipelineRequiresCluster* inputRequirements; + void* superBlock; + uint32 superBlockSize; + uint32 entryPoint; + uint32 pluginId; + uint32 pluginData; }; struct xPlatformAsset @@ -2867,64 +2872,64 @@ struct xPlatformAsset struct zDestructibleStateAttachedAnimList { - uint32 nanimations; - void** animData; + uint32 nanimations; + void** animData; }; struct IMLightKit { - xVec4 lightdir[3]; - xVec4 lightcol[5]; - xVec4 extraLightdir[3]; - xVec4 extraLightcol[4]; - int32 extraLights; + xVec4 lightdir[3]; + xVec4 lightcol[5]; + xVec4 extraLightdir[3]; + xVec4 extraLightcol[4]; + int32 extraLights; }; struct XGOFTypeInfo { - int32 tid; - xFactoryInst*(*creator)(int32, RyzMemGrow*, void*); - void(*destroyer)(xFactoryInst*); + int32 tid; + xFactoryInst* (*creator)(int32, RyzMemGrow*, void*); + void (*destroyer)(xFactoryInst*); }; struct zPlatform : zEnt { - xPlatformAsset* plat_asset; - xEntMotion motion; - uint16 state; - uint16 plat_flags; - float32 tmr; - int32 ctr; - xMovePoint* src; - xModelInstance* am; - xModelInstance* bm; - int32 moving; - xEntDrive drv; - zPlatFMRunTime* fmrt; - zDestructible* destructible; - float32 elapsedTime; - xEntOpacity opacity; - iSndHandle sndID; + xPlatformAsset* plat_asset; + xEntMotion motion; + uint16 state; + uint16 plat_flags; + float32 tmr; + int32 ctr; + xMovePoint* src; + xModelInstance* am; + xModelInstance* bm; + int32 moving; + xEntDrive drv; + zPlatFMRunTime* fmrt; + zDestructible* destructible; + float32 elapsedTime; + xEntOpacity opacity; + iSndHandle sndID; }; struct xCutsceneModelHack { - xModelPipe* pipe; + xModelPipe* pipe; }; struct xUpdateCullMgr { - uint32 entCount; - uint32 entActive; - void** ent; - xUpdateCullEnt** mgr; - uint32 mgrCount; - uint32 mgrCurr; - xUpdateCullEnt* mgrList; - uint32 grpCount; - xUpdateCullGroup* grpList; - void(*activateCB)(void*); - void(*deactivateCB)(void*); + uint32 entCount; + uint32 entActive; + void** ent; + xUpdateCullEnt** mgr; + uint32 mgrCount; + uint32 mgrCurr; + xUpdateCullEnt* mgrList; + uint32 grpCount; + xUpdateCullGroup* grpList; + void (*activateCB)(void*); + void (*deactivateCB)(void*); }; struct xVolumeAsset @@ -2933,262 +2938,262 @@ struct xVolumeAsset struct RxPacket { - uint16 flags; - uint16 numClusters; - RxPipeline* pipeline; - uint32* inputToClusterSlot; - uint32* slotsContinue; - RxPipelineCluster** slotClusterRefs; - RxCluster clusters[1]; + uint16 flags; + uint16 numClusters; + RxPipeline* pipeline; + uint32* inputToClusterSlot; + uint32* slotsContinue; + RxPipelineCluster** slotClusterRefs; + RxCluster clusters[1]; }; struct zUICustomPalRedirector : zUICustom { - - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void* __ct(zUI* ui); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void* __ct(zUI* ui); }; struct RwPlane { - RwV3d normal; - float32 distance; + RwV3d normal; + float32 distance; }; struct zLassoGuide { - xModelInstance* poly; - xAnimState* lassoAnim; - int32 vertMap[16]; + xModelInstance* poly; + xAnimState* lassoAnim; + int32 vertMap[16]; }; enum _enum_1 { - EX_UP, - EX_CENTER, - EX_DOWN, - MAX_EX + EX_UP, + EX_CENTER, + EX_DOWN, + MAX_EX }; struct xModelTag { - xVec3 v; - uint32 matidx; - float32 wt[4]; + xVec3 v; + uint32 matidx; + float32 wt[4]; }; struct _class_2 { - int8* skip; - int8* noskip; - int8* quit; - int8* noquit; - int8* yesno; + int8* skip; + int8* noskip; + int8* quit; + int8* noquit; + int8* yesno; }; struct xSurface : xBase { - uint32 idx; - uint32 type; - union - { - uint32 mat_idx; - xEnt* ent; - void* obj; - }; - float32 friction; - uint8 state; - uint8 pad[3]; - void* moprops; + uint32 idx; + uint32 type; + union + { + uint32 mat_idx; + xEnt* ent; + void* obj; + }; + float32 friction; + uint8 state; + uint8 pad[3]; + void* moprops; }; struct xPEEntBound { - uint8 flags; - uint8 type; - uint8 pad1; - uint8 pad2; - float32 expand; - float32 deflection; + uint8 flags; + uint8 type; + uint8 pad1; + uint8 pad2; + float32 expand; + float32 deflection; }; struct handle { - entry_data* node; + entry_data* node; }; struct ztalkbox : xBase { - _class_22 flag; - asset_type_0* asset; - ztextbox* dialog_box; - ztextbox* prompt_box; - ztextbox* quit_box; - _class_2 prompt; - uint32 triggerPads; - base* npc; - - void permit(uint32 add_flags, uint32 remove_flags); - ztalkbox* get_active(); - void reset_all(); - void render_all(); - void update_all(xScene& s, float32 dt); - void load(xBase& data, xDynAsset& asset); - void init(); - void load_settings(xIniFile& ini); + _class_22 flag; + asset_type_0* asset; + ztextbox* dialog_box; + ztextbox* prompt_box; + ztextbox* quit_box; + _class_2 prompt; + uint32 triggerPads; + base* npc; + + void permit(uint32 add_flags, uint32 remove_flags); + ztalkbox* get_active(); + void reset_all(); + void render_all(); + void update_all(xScene& s, float32 dt); + void load(xBase& data, xDynAsset& asset); + void init(); + void load_settings(xIniFile& ini); }; struct xEntMPData { - xEntSpeedData speed_data; - float32 curdist; - xMovePoint* dest; - xMovePoint* src; - xSpline3* spl; - float32 dist; - uint32 padalign; - xQuat aquat; - xQuat bquat; + xEntSpeedData speed_data; + float32 curdist; + xMovePoint* dest; + xMovePoint* src; + xSpline3* spl; + float32 dist; + uint32 padalign; + xQuat aquat; + xQuat bquat; }; struct RxOutputSpec { - int8* name; - RxClusterValid* outputClusters; - RxClusterValid allOtherClusters; + int8* name; + RxClusterValid* outputClusters; + RxClusterValid allOtherClusters; }; struct zNMESoundTable { - iSndGroupHandle sndGroupHandle[10]; - int8* assetNames[10]; - float32 timer[10]; - float32 time[10]; - int32 flags[10]; + iSndGroupHandle sndGroupHandle[10]; + int8* assetNames[10]; + float32 timer[10]; + float32 time[10]; + int32 flags[10]; }; struct xAnimFile { - xAnimFile* Next; - int8* Name; - uint32 ID; - uint32 FileFlags; - float32 Duration; - float32 TimeOffset; - uint16 BoneCount; - uint8 NumAnims[2]; - void** RawData; - xAnimPhysicsData* PhysicsData; + xAnimFile* Next; + int8* Name; + uint32 ID; + uint32 FileFlags; + float32 Duration; + float32 TimeOffset; + uint16 BoneCount; + uint8 NumAnims[2]; + void** RawData; + xAnimPhysicsData* PhysicsData; }; struct xAnimActiveEffect { - xAnimEffect* Effect; - union - { - uint32 Handle; - iSndHandle SndHandle; - }; + xAnimEffect* Effect; + union + { + uint32 Handle; + iSndHandle SndHandle; + }; }; struct property_set { - float32 damage; - float32 knockback; - iSndGroupHandle sound_group; + float32 damage; + float32 knockback; + iSndGroupHandle sound_group; }; enum pause_ability { - PA_NONE, - PA_MENU, - PA_STALL + PA_NONE, + PA_MENU, + PA_STALL }; struct xParEmitterAsset : xBaseAsset { - uint8 emit_flags; - uint8 emit_type; - uint16 pad; - uint32 propID; - union - { - xPECircle e_circle; - xPESphere e_sphere; - xPERect e_rect; - xPELine e_line; - xPEVolume e_volume; - xPEOffsetPoint e_offsetp; - xPEVCyl e_vcyl; - xPEEntBone e_entbone; - xPEEntBound e_entbound; - }; - uint32 attachToID; - xVec3 pos; - xVec3 vel; - float32 vel_angle_variation; - uint32 cull_mode; - float32 cull_dist_sqr; + uint8 emit_flags; + uint8 emit_type; + uint16 pad; + uint32 propID; + union + { + xPECircle e_circle; + xPESphere e_sphere; + xPERect e_rect; + xPELine e_line; + xPEVolume e_volume; + xPEOffsetPoint e_offsetp; + xPEVCyl e_vcyl; + xPEEntBone e_entbone; + xPEEntBound e_entbound; + }; + uint32 attachToID; + xVec3 pos; + xVec3 vel; + float32 vel_angle_variation; + uint32 cull_mode; + float32 cull_dist_sqr; }; struct zUIText : zUI { - xColor_tag shadowColor; - int8* text; + xColor_tag shadowColor; + int8* text; }; struct zDestructibleState { - xModelInstance* model; - zShrapnelAsset* shrapnel; - zShrapnelAsset* shrapnelhit; - uint32 percent; - iSndGroupHandle sg_handle_idle; - iSndGroupHandle sg_handle_hit; - iSndGroupHandle sg_handle_hit_switch; - iSndHandle sh_handle_idle; - iSndHandle sh_handle_hit; - iSndHandle sh_handle_hit_switch; - uint32 sg_fx_id; - uint32 sg_fx_id_switch; - sphericalEmitter* rumbleHit; - sphericalEmitter* rumbleSwitch; - zDestructibleStateAttachedAnimList* animList; - zDestructibleStateFXList fxList; + xModelInstance* model; + zShrapnelAsset* shrapnel; + zShrapnelAsset* shrapnelhit; + uint32 percent; + iSndGroupHandle sg_handle_idle; + iSndGroupHandle sg_handle_hit; + iSndGroupHandle sg_handle_hit_switch; + iSndHandle sh_handle_idle; + iSndHandle sh_handle_hit; + iSndHandle sh_handle_hit_switch; + uint32 sg_fx_id; + uint32 sg_fx_id_switch; + sphericalEmitter* rumbleHit; + sphericalEmitter* rumbleSwitch; + zDestructibleStateAttachedAnimList* animList; + zDestructibleStateFXList fxList; }; struct CollisionInfo { - xVec3 hitDir; - int32 damage; - float32 knockBackSpeed; - zLightning* l; - iSndGroupHandle soundHit1; - iSndGroupHandle soundHit2; + xVec3 hitDir; + int32 damage; + float32 knockBackSpeed; + zLightning* l; + iSndGroupHandle soundHit1; + iSndGroupHandle soundHit2; }; struct xBound { - xQCData qcd; - uint8 type; - uint8 pad[3]; - union - { - xSphere sph; - xBBox box; - xCylinder cyl; - }; - xMat4x3* mat; + xQCData qcd; + uint8 type; + uint8 pad[3]; + union + { + xSphere sph; + xBBox box; + xCylinder cyl; + }; + xMat4x3* mat; }; struct xLightKitLight { - uint32 type; - RwRGBAReal color; - float32 matrix[16]; - float32 radius; - float32 angle; - RpLight* platLight; + uint32 type; + RwRGBAReal color; + float32 matrix[16]; + float32 radius; + float32 angle; + RpLight* platLight; }; struct _anon7 @@ -3197,25 +3202,25 @@ struct _anon7 struct xIniValue { - int8* tok; - int8* val; + int8* tok; + int8* val; }; struct zUICustom { - zUI* ui; + zUI* ui; }; struct RwMatrixTag { - RwV3d right; - uint32 flags; - RwV3d up; - uint32 pad1; - RwV3d at; - uint32 pad2; - RwV3d pos; - uint32 pad3; + RwV3d right; + uint32 flags; + RwV3d up; + uint32 pad1; + RwV3d at; + uint32 pad2; + RwV3d pos; + uint32 pad3; }; struct _anon8 @@ -3224,44 +3229,44 @@ struct _anon8 struct zLoadingScreen : Screen { - zUI* controls[16]; - int32 controlCount; - void* allocations[32]; - int32 allocationCount; + zUI* controls[16]; + int32 controlCount; + void* allocations[32]; + int32 allocationCount; }; struct xDynAsset : xBaseAsset { - uint32 type; - uint16 version; - uint16 handle; + uint32 type; + uint16 version; + uint16 handle; }; struct xPortalAsset : xBaseAsset { - uint32 assetCameraID; - uint32 assetMarkerID; - float32 ang; - uint32 sceneID; + uint32 assetCameraID; + uint32 assetMarkerID; + float32 ang; + uint32 sceneID; }; struct xAnimPlay { - xAnimPlay* Next; - uint16 NumSingle; - uint16 BoneCount; - xAnimSingle* Single; - void* Object; - xAnimTable* Table; - xMemPool* Pool; - xModelInstance* ModelInst; - void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); + xAnimPlay* Next; + uint16 NumSingle; + uint16 BoneCount; + xAnimSingle* Single; + void* Object; + xAnimTable* Table; + xMemPool* Pool; + xModelInstance* ModelInst; + void (*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; struct RwTexCoords { - float32 u; - float32 v; + float32 u; + float32 v; }; struct _anon9 @@ -3270,46 +3275,46 @@ struct _anon9 struct zLasso { - uint32 flags; - float32 secsTotal; - float32 secsLeft; - float32 stRadius; - float32 tgRadius; - float32 crRadius; - xVec3 stCenter; - xVec3 tgCenter; - xVec3 crCenter; - xVec3 stNormal; - xVec3 tgNormal; - xVec3 crNormal; - xVec3 honda; - float32 stSlack; - float32 stSlackDist; - float32 tgSlack; - float32 tgSlackDist; - float32 crSlack; - float32 currDist; - float32 lastDist; - xVec3 lastRefs[5]; - uint8 reindex[5]; - uint8 pad[3]; - xVec3 anchor; - xModelTag tag; - xModelInstance* model; - uint32 patTongue; - RpAtomic* tipModel; - xMat4x3* tipMatrix; - float32 tipDelay; - float32 tipLerp; - xSpline3* spl; - uint32 spldata[59]; + uint32 flags; + float32 secsTotal; + float32 secsLeft; + float32 stRadius; + float32 tgRadius; + float32 crRadius; + xVec3 stCenter; + xVec3 tgCenter; + xVec3 crCenter; + xVec3 stNormal; + xVec3 tgNormal; + xVec3 crNormal; + xVec3 honda; + float32 stSlack; + float32 stSlackDist; + float32 tgSlack; + float32 tgSlackDist; + float32 crSlack; + float32 currDist; + float32 lastDist; + xVec3 lastRefs[5]; + uint8 reindex[5]; + uint8 pad[3]; + xVec3 anchor; + xModelTag tag; + xModelInstance* model; + uint32 patTongue; + RpAtomic* tipModel; + xMat4x3* tipMatrix; + float32 tipDelay; + float32 tipLerp; + xSpline3* spl; + uint32 spldata[59]; }; struct xCamBlend : xCam { - xCam* src; - xCam* dst; - float32 time; + xCam* src; + xCam* dst; + float32 time; }; struct xFFX @@ -3322,88 +3327,88 @@ struct _anon10 struct zShrapnelAsset { - int32 fassetCount; - uint32 shrapnelID; - void(*initCB)(zShrapnelAsset*, xModelInstance*, xVec3*, void(*)(zFrag*, zFragAsset*)); + int32 fassetCount; + uint32 shrapnelID; + void (*initCB)(zShrapnelAsset*, xModelInstance*, xVec3*, void (*)(zFrag*, zFragAsset*)); }; struct xJSPNodeTreeLeaf { - int32 nodeIndex; - int32 leafCount; - RwBBox box; + int32 nodeIndex; + int32 leafCount; + RwBBox box; }; struct xDestructibleAssetState { - uint32 percent; - uint32 modelID; - uint32 shrapnelID; - uint32 shrapnelhitID; - uint32 soundgroupidleID; - uint32 soundgroupfxID; - uint32 soundgrouphitID; - uint32 soundgroupfxIDswitch; - uint32 soundgrouphitIDswitch; - uint32 rumbleIDhit; - uint32 rumbleIDswitch; - uint32 fx_flags; - xDestructibleAssetAttachedAnimList* animlist; + uint32 percent; + uint32 modelID; + uint32 shrapnelID; + uint32 shrapnelhitID; + uint32 soundgroupidleID; + uint32 soundgroupfxID; + uint32 soundgrouphitID; + uint32 soundgroupfxIDswitch; + uint32 soundgrouphitIDswitch; + uint32 rumbleIDhit; + uint32 rumbleIDswitch; + uint32 fx_flags; + xDestructibleAssetAttachedAnimList* animlist; }; struct xMovePoint : xBase { - xMovePointAsset* asset; - xVec3* pos; - xMovePoint** nodes; - xMovePoint* prev; - uint32 node_wt_sum; - uint8 on; - uint8 pad[3]; - float32 delay; - xSpline3* spl; + xMovePointAsset* asset; + xVec3* pos; + xMovePoint** nodes; + xMovePoint* prev; + uint32 node_wt_sum; + uint8 on; + uint8 pad[3]; + float32 delay; + xSpline3* spl; }; struct xPELine { - xVec3 pos1; - xVec3 pos2; - float32 radius; + xVec3 pos1; + xVec3 pos2; + float32 radius; }; struct zGrapplePoint { - uint32 flags; - xVec3* pos; + uint32 flags; + xVec3* pos; }; struct xSphere { - xVec3 center; - float32 r; + xVec3 center; + float32 r; }; struct xClumpCollBSPBranchNode { - uint32 leftInfo; - uint32 rightInfo; - float32 leftValue; - float32 rightValue; + uint32 leftInfo; + uint32 rightInfo; + float32 leftValue; + float32 rightValue; }; struct RpMesh { - uint16* indices; - uint32 numIndices; - RpMaterial* material; + uint16* indices; + uint32 numIndices; + RpMaterial* material; }; struct xJSPNodeTree { - int32 numBranchNodes; - xJSPNodeTreeBranch* branchNodes; - int32 numLeafNodes; - xJSPNodeTreeLeaf* leafNodes; + int32 numBranchNodes; + xJSPNodeTreeBranch* branchNodes; + int32 numLeafNodes; + xJSPNodeTreeLeaf* leafNodes; }; struct BINK @@ -3416,64 +3421,64 @@ struct zAssetPickupTable struct xColor_tag { - uint8 r; - uint8 g; - uint8 b; - uint8 a; - RwRGBA rgba; + uint8 r; + uint8 g; + uint8 b; + uint8 a; + RwRGBA rgba; }; struct RpWorldSector { - int32 type; - RpTriangle* triangles; - RwV3d* vertices; - RpVertexNormal* normals; - RwTexCoords* texCoords[8]; - RwRGBA* preLitLum; - RwResEntry* repEntry; - RwLinkList collAtomicsInWorldSector; - RwLinkList lightsInWorldSector; - RwBBox boundingBox; - RwBBox tightBoundingBox; - RpMeshHeader* mesh; - RxPipeline* pipeline; - uint16 matListWindowBase; - uint16 numVertices; - uint16 numTriangles; - uint16 pad; + int32 type; + RpTriangle* triangles; + RwV3d* vertices; + RpVertexNormal* normals; + RwTexCoords* texCoords[8]; + RwRGBA* preLitLum; + RwResEntry* repEntry; + RwLinkList collAtomicsInWorldSector; + RwLinkList lightsInWorldSector; + RwBBox boundingBox; + RwBBox tightBoundingBox; + RpMeshHeader* mesh; + RxPipeline* pipeline; + uint16 matListWindowBase; + uint16 numVertices; + uint16 numTriangles; + uint16 pad; }; struct RwSphere { - RwV3d center; - float32 radius; + RwV3d center; + float32 radius; }; struct xCam { - xMat4x3 mat; - float32 fov; - int32 flags; - uint32 owner; - xCamGroup* group; - analog_data analog; - float32 motion_factor; - xCamCoordType coord_type; - xCamOrientType orient_type; - _class_10 coord; - _class_15 orient; - xCamConfigCommon cfg_common; - int32 group_index; - int32 group_flags; - xCamBlend* blender; + xMat4x3 mat; + float32 fov; + int32 flags; + uint32 owner; + xCamGroup* group; + analog_data analog; + float32 motion_factor; + xCamCoordType coord_type; + xCamOrientType orient_type; + _class_10 coord; + _class_15 orient; + xCamConfigCommon cfg_common; + int32 group_index; + int32 group_flags; + xCamBlend* blender; }; struct curve_node { - float32 time; - xColor_tag color; - float32 scale; + float32 time; + xColor_tag color; + float32 scale; }; struct _anon11 @@ -3482,370 +3487,370 @@ struct _anon11 struct RpGeometry { - RwObject object; - uint32 flags; - uint16 lockedSinceLastInst; - int16 refCount; - int32 numTriangles; - int32 numVertices; - int32 numMorphTargets; - int32 numTexCoordSets; - RpMaterialList matList; - RpTriangle* triangles; - RwRGBA* preLitLum; - RwTexCoords* texCoords[8]; - RpMeshHeader* mesh; - RwResEntry* repEntry; - RpMorphTarget* morphTarget; + RwObject object; + uint32 flags; + uint16 lockedSinceLastInst; + int16 refCount; + int32 numTriangles; + int32 numVertices; + int32 numMorphTargets; + int32 numTexCoordSets; + RpMaterialList matList; + RpTriangle* triangles; + RwRGBA* preLitLum; + RwTexCoords* texCoords[8]; + RpMeshHeader* mesh; + RwResEntry* repEntry; + RpMorphTarget* morphTarget; }; struct xEntNPCAssetIN : xEntNPCAsset { - uint32 navigation_mesh_id; - uint32 settings; + uint32 navigation_mesh_id; + uint32 settings; }; struct xRot { - xVec3 axis; - float32 angle; + xVec3 axis; + float32 angle; }; struct xEntBoulder : xEnt { - xEntBoulderAsset* basset; - xShadowSimpleCache simpShadow_embedded; - xEntShadow entShadow_embedded; - xVec3 localCenter; - xVec3 vel; - xVec3 rotVec; - xVec3 force; - xVec3 instForce; - float32 angVel; - float32 timeToLive; - int32 hitpoints; - float32 fOOSphRadius; - iSndHandle currSndFX; - uint32 lastRolling; - uint32 rollingID; - uint8 collis_chk; - uint8 collis_pen; - uint8 pad1[2]; + xEntBoulderAsset* basset; + xShadowSimpleCache simpShadow_embedded; + xEntShadow entShadow_embedded; + xVec3 localCenter; + xVec3 vel; + xVec3 rotVec; + xVec3 force; + xVec3 instForce; + float32 angVel; + float32 timeToLive; + int32 hitpoints; + float32 fOOSphRadius; + iSndHandle currSndFX; + uint32 lastRolling; + uint32 rollingID; + uint8 collis_chk; + uint8 collis_pen; + uint8 pad1[2]; }; struct xGridBound { - void* data; - uint16 gx; - uint16 gz; - uint8 oversize; - uint8 deleted; - uint8 gpad; - uint8 pad; - xGrid* grid; - xGridBound** head; - xGridBound* next; + void* data; + uint16 gx; + uint16 gz; + uint8 oversize; + uint8 deleted; + uint8 gpad; + uint8 pad; + xGrid* grid; + xGridBound** head; + xGridBound* next; }; struct xAnimSingle { - uint32 SingleFlags; - xAnimState* State; - float32 Time; - float32 CurrentSpeed; - float32 BilinearLerp[2]; - xAnimEffect* Effect; - uint32 ActiveCount; - float32 LastTime; - xAnimActiveEffect* ActiveList; - xAnimPlay* Play; - xAnimTransition* Sync; - xAnimTransition* Tran; - xAnimSingle* Blend; - float32 BlendFactor; - xVec3 PhysDisp; - float32 YawDisp; - uint32 pad[1]; + uint32 SingleFlags; + xAnimState* State; + float32 Time; + float32 CurrentSpeed; + float32 BilinearLerp[2]; + xAnimEffect* Effect; + uint32 ActiveCount; + float32 LastTime; + xAnimActiveEffect* ActiveList; + xAnimPlay* Play; + xAnimTransition* Sync; + xAnimTransition* Tran; + xAnimSingle* Blend; + float32 BlendFactor; + xVec3 PhysDisp; + float32 YawDisp; + uint32 pad[1]; }; struct zLODManager { - int32 numextra; - zLODTable* lod; - xModelInstance* model; - float32 adjustNoRenderDist; + int32 numextra; + zLODTable* lod; + xModelInstance* model; + float32 adjustNoRenderDist; }; struct RxCluster { - uint16 flags; - uint16 stride; - void* data; - void* currentData; - uint32 numAlloced; - uint32 numUsed; - RxPipelineCluster* clusterRef; - uint32 attributes; + uint16 flags; + uint16 stride; + void* data; + void* currentData; + uint32 numAlloced; + uint32 numUsed; + RxPipelineCluster* clusterRef; + uint32 attributes; }; struct sound_queue { - iSndHandle _playing[5]; - int32 head; - int32 tail; + iSndHandle _playing[5]; + int32 head; + int32 tail; }; struct xSpline3 { - uint16 type; - uint16 flags; - uint32 N; - uint32 allocN; - xVec3* points; - float32* time; - xVec3* p12; - xVec3* bctrl; - float32* knot; - xCoef3* coef; - uint32 arcSample; - float32* arcLength; + uint16 type; + uint16 flags; + uint32 N; + uint32 allocN; + xVec3* points; + float32* time; + xVec3* p12; + xVec3* bctrl; + float32* knot; + xCoef3* coef; + uint32 arcSample; + float32* arcLength; }; struct xJSPNodeLight { - RpAtomic* atomic; - int32 lightCount; - RpTie dummyTie; - RpWorldSector dummySector; - xJSPMiniLightTie dummyLightTie[16]; + RpAtomic* atomic; + int32 lightCount; + RpTie dummyTie; + RpWorldSector dummySector; + xJSPMiniLightTie dummyLightTie[16]; }; struct rxHeapSuperBlockDescriptor { - void* start; - uint32 size; - rxHeapSuperBlockDescriptor* next; + void* start; + uint32 size; + rxHeapSuperBlockDescriptor* next; }; struct xIniFile { - int32 NumValues; - int32 NumSections; - xIniValue* Values; - xIniSection* Sections; - void* mem; - int8 name[256]; - int8 pathname[256]; + int32 NumValues; + int32 NumSections; + xIniValue* Values; + xIniSection* Sections; + void* mem; + int8 name[256]; + int8 pathname[256]; }; struct _tagPartSpace { - int32 total; - _tagPartLink head; + int32 total; + _tagPartLink head; }; struct zEntSimpleObj : zEnt { - xSimpleObjAsset* sasset; - uint32 sflags; - zReactiveAnimationData* reactiveAnimationData; - zReactiveGenre* reactGenre; - zSimpleMgr* smgrExtra; - void* anim; - float32 animTime; - RwMatrixTag* fastMatList; - zDestructible* destructible; - zSimpleMgr* smgr; - xEntOpacity opacity; + xSimpleObjAsset* sasset; + uint32 sflags; + zReactiveAnimationData* reactiveAnimationData; + zReactiveGenre* reactGenre; + zSimpleMgr* smgrExtra; + void* anim; + float32 animTime; + RwMatrixTag* fastMatList; + zDestructible* destructible; + zSimpleMgr* smgr; + xEntOpacity opacity; }; enum RxClusterValid { - rxCLVALID_NOCHANGE, - rxCLVALID_VALID, - rxCLVALID_INVALID, - rxCLUSTERVALIDFORCEENUMSIZEINT = 0x7fffffff + rxCLVALID_NOCHANGE, + rxCLVALID_VALID, + rxCLVALID_INVALID, + rxCLUSTERVALIDFORCEENUMSIZEINT = 0x7fffffff }; struct xSndGroupHeader : xBaseAsset { - uint32 uPlayedMask; - uint8 uInfoCount; - uint8 uSetBits; - int8 nMaxPlays; - uint8 uPriority; - uint8 uFlags; - uint8 eSoundCategory; - uint8 ePlayRule; - uint8 uInfoPad0; - float32 fInnerRadius; - float32 fOuterRadius; - int8* pszGroupName; + uint32 uPlayedMask; + uint8 uInfoCount; + uint8 uSetBits; + int8 nMaxPlays; + uint8 uPriority; + uint8 uFlags; + uint8 eSoundCategory; + uint8 ePlayRule; + uint8 uInfoPad0; + float32 fInnerRadius; + float32 fOuterRadius; + int8* pszGroupName; }; struct zDestructible { - xDestructibleAsset* asset; - uint32 id; - uint32 cur_hit_pts; - uint32 curstateidx; - uint32 nstates; - uint32 hit_pts; - uint32 hit_filter; - uint32 launch_flag; - uint32 behaviour; - uint32 base_modelID; - iSndGroupHandle sg_handle_idle; - iSndHandle sh_handle_idle; - xModelInstance* base_model; - xModelInstance* base_collision; - zDestructibleState* dstates; - float32 hit_to_destroy_timer; - float32 timer; - float32 respawn_time; - void(*destroy_notify)(zDestructible*, void*); - void* notify_context; - xEnt* root_ent; - uint32 flags; - uint8 has_animation; - uint8 active; + xDestructibleAsset* asset; + uint32 id; + uint32 cur_hit_pts; + uint32 curstateidx; + uint32 nstates; + uint32 hit_pts; + uint32 hit_filter; + uint32 launch_flag; + uint32 behaviour; + uint32 base_modelID; + iSndGroupHandle sg_handle_idle; + iSndHandle sh_handle_idle; + xModelInstance* base_model; + xModelInstance* base_collision; + zDestructibleState* dstates; + float32 hit_to_destroy_timer; + float32 timer; + float32 respawn_time; + void (*destroy_notify)(zDestructible*, void*); + void* notify_context; + xEnt* root_ent; + uint32 flags; + uint8 has_animation; + uint8 active; }; struct xCamCoordSphere { - xVec3 origin; - float32 dist; - xQuat dir; + xVec3 origin; + float32 dist; + xQuat dir; }; struct RxObjSpace3DVertex { - RwV3d objVertex; - RxColorUnion c; - RwV3d objNormal; - float32 u; - float32 v; + RwV3d objVertex; + RxColorUnion c; + RwV3d objNormal; + float32 u; + float32 v; }; struct xCylinder { - xVec3 center; - float32 r; - float32 h; + xVec3 center; + float32 r; + float32 h; }; struct xEntMotionMechData { - uint8 type; - uint8 flags; - uint8 sld_axis; - uint8 rot_axis; - uint8 scale_axis; - float32 sld_dist; - float32 sld_tm; - float32 sld_acc_tm; - float32 sld_dec_tm; - float32 rot_dist; - float32 rot_tm; - float32 rot_acc_tm; - float32 rot_dec_tm; - float32 ret_delay; - float32 post_ret_delay; - float32 scale_amount; - float32 scale_duration; + uint8 type; + uint8 flags; + uint8 sld_axis; + uint8 rot_axis; + uint8 scale_axis; + float32 sld_dist; + float32 sld_tm; + float32 sld_acc_tm; + float32 sld_dec_tm; + float32 rot_dist; + float32 rot_tm; + float32 rot_acc_tm; + float32 rot_dec_tm; + float32 ret_delay; + float32 post_ret_delay; + float32 scale_amount; + float32 scale_duration; }; struct xModelPool { - xModelPool* Next; - uint32 NumMatrices; - xModelInstance* List; + xModelPool* Next; + uint32 NumMatrices; + xModelInstance* List; }; struct RpSector { - int32 type; + int32 type; }; struct xAnimMultiFileBase { - uint32 Count; + uint32 Count; }; struct text_widget : widget { - int8 text[256]; - xtextbox tb; + int8 text[256]; + xtextbox tb; }; enum en_trantype { - GOAL_TRAN_NONE, - GOAL_TRAN_SET, - GOAL_TRAN_PUSH, - GOAL_TRAN_POP, - GOAL_TRAN_POPTO, - GOAL_TRAN_POPALL, - GOAL_TRAN_POPBASE, - GOAL_TRAN_POPSAFE, - GOAL_TRAN_SWAP, - GOAL_TRAN_NOMORE, - GOAL_TRAN_FORCE = 0x7fffffff + GOAL_TRAN_NONE, + GOAL_TRAN_SET, + GOAL_TRAN_PUSH, + GOAL_TRAN_POP, + GOAL_TRAN_POPTO, + GOAL_TRAN_POPALL, + GOAL_TRAN_POPBASE, + GOAL_TRAN_POPSAFE, + GOAL_TRAN_SWAP, + GOAL_TRAN_NOMORE, + GOAL_TRAN_FORCE = 0x7fffffff }; struct KrabbyPattyMeter : hud_element { - unit_meter_widget* krabbyPattyMeter; - uint32 lastHealth; - uint32 lastMaxHealth; - uint8 firstTime; + unit_meter_widget* krabbyPattyMeter; + uint32 lastHealth; + uint32 lastMaxHealth; + uint8 firstTime; }; struct _class_3 { - uint32 value_def; - uint32 mask; + uint32 value_def; + uint32 mask; }; struct NMEShadParms { - SimpShadParm simpshad; - FullShadParm fullshad; - ShadowRadii shadrad; + SimpShadParm simpshad; + FullShadParm fullshad; + ShadowRadii shadrad; }; struct xModelAssetParam { - uint32 HashID; - uint8 WordLength; - uint8 String[3]; + uint32 HashID; + uint8 WordLength; + uint8 String[3]; }; struct xFactory : RyzMemData { - XGOFTypeInfo* infopool; - st_XORDEREDARRAY infolist; - xFactoryInst* products; - RyzMemGrow growContextData; + XGOFTypeInfo* infopool; + st_XORDEREDARRAY infolist; + xFactoryInst* products; + RyzMemGrow growContextData; }; struct zLightningAsset : xDynAsset { - xVec3 start; - xVec3 end; - xColor_tag color; - float32 thickness; - float32 branchSpeed; - uint32 mainTexture; - uint32 branchTexture; - int32 damage; - float32 knockBackSpeed; - uint32 sound; - uint32 soundHit1; - uint32 soundHit2; - uint32 followStart; - uint32 followEnd; - uint32 collisionEnabled; + xVec3 start; + xVec3 end; + xColor_tag color; + float32 thickness; + float32 branchSpeed; + uint32 mainTexture; + uint32 branchTexture; + int32 damage; + float32 knockBackSpeed; + uint32 sound; + uint32 soundHit1; + uint32 soundHit2; + uint32 followStart; + uint32 followEnd; + uint32 collisionEnabled; }; struct motive_node @@ -3854,60 +3859,60 @@ struct motive_node struct xUpdateCullEnt { - uint16 index; - int16 groupIndex; - uint32(*update_cull_cb)(void*, void*); - void* cbdata; - xUpdateCullEnt* nextInGroup; + uint16 index; + int16 groupIndex; + uint32 (*update_cull_cb)(void*, void*); + void* cbdata; + xUpdateCullEnt* nextInGroup; }; enum eGameMode { - eGameMode_Boot, - eGameMode_Intro, - eGameMode_Title, - eGameMode_Start, - eGameMode_Load, - eGameMode_Options, - eGameMode_Save, - eGameMode_Pause, - eGameMode_Stall, - eGameMode_WorldMap, - eGameMode_MonsterGallery, - eGameMode_ConceptArtGallery, - eGameMode_Game, - eGameMode_Count + eGameMode_Boot, + eGameMode_Intro, + eGameMode_Title, + eGameMode_Start, + eGameMode_Load, + eGameMode_Options, + eGameMode_Save, + eGameMode_Pause, + eGameMode_Stall, + eGameMode_WorldMap, + eGameMode_MonsterGallery, + eGameMode_ConceptArtGallery, + eGameMode_Game, + eGameMode_Count }; struct xEntOpacity { - float32 delta_opacity; - float32 delta_opacity_2; + float32 delta_opacity; + float32 delta_opacity_2; }; struct zSceneParameters : xDynAsset { - uint32 idle03ExtraCount; - xAnimFile** idle03Extras; - uint32 idle04ExtraCount; - xAnimFile** idle04Extras; - uint8 bombCount; - uint8 extraIdleDelay; - uint8 hdrGlow; - uint8 hdrDarken; - uint32 uDefaultMusicHash; - uint32 flags; - float32 waterTileWidth; - float32 lodFadeDistance; - uint32 pad[4]; + uint32 idle03ExtraCount; + xAnimFile** idle03Extras; + uint32 idle04ExtraCount; + xAnimFile** idle04Extras; + uint8 bombCount; + uint8 extraIdleDelay; + uint8 hdrGlow; + uint8 hdrDarken; + uint32 uDefaultMusicHash; + uint32 flags; + float32 waterTileWidth; + float32 lodFadeDistance; + uint32 pad[4]; }; struct xFXRibbon { - float32 texture_offset; - float32 texture_increment_scale; - activity_data* act; - config_type* cfg; + float32 texture_offset; + float32 texture_increment_scale; + activity_data* act; + config_type* cfg; }; struct _anon12 @@ -3920,139 +3925,139 @@ struct _anon13 struct meter_widget : widget { - meter_asset* res; - float32 value; - float32 min_value; - float32 max_value; - float32 inc_value; - float32 end_value; - float32 inc_accel; - float32 ping_delay; - sound_queue pings; + meter_asset* res; + float32 value; + float32 min_value; + float32 max_value; + float32 inc_value; + float32 end_value; + float32 inc_accel; + float32 ping_delay; + sound_queue pings; }; struct xEntShadow { - xVec3 pos; - xVec3 vec; - RpAtomic* shadowModel; - float32 dst_cast; - float32 radius[2]; - struct - { - int32 flg_castOnOneDFF : 1; - int32 flg_castOnAllDFF : 1; - int32 flg_disableEnvCast : 1; - int32 flg_shadowUnused : 29; - }; + xVec3 pos; + xVec3 vec; + RpAtomic* shadowModel; + float32 dst_cast; + float32 radius[2]; + struct + { + int32 flg_castOnOneDFF : 1; + int32 flg_castOnAllDFF : 1; + int32 flg_disableEnvCast : 1; + int32 flg_shadowUnused : 29; + }; }; struct PKRAssetType { - uint32 typetag; - uint32 tflags; - int32 typalign; - void*(*readXForm)(void*, uint32, void*, uint32, uint32*); - void*(*writeXForm)(void*, uint32, void*, void*, uint32, uint32*); - int32(*assetLoaded)(void*, uint32, void*, int32); - void*(*makeData)(void*, uint32, void*, int32*, int32*); - void(*cleanup)(void*, uint32, void*); - void(*assetUnloaded)(void*, uint32); - void(*writePeek)(void*, uint32, void*, int8*); + uint32 typetag; + uint32 tflags; + int32 typalign; + void* (*readXForm)(void*, uint32, void*, uint32, uint32*); + void* (*writeXForm)(void*, uint32, void*, void*, uint32, uint32*); + int32 (*assetLoaded)(void*, uint32, void*, int32); + void* (*makeData)(void*, uint32, void*, int32*, int32*); + void (*cleanup)(void*, uint32, void*); + void (*assetUnloaded)(void*, uint32); + void (*writePeek)(void*, uint32, void*, int8*); }; struct zPlatFMRunTime { - uint32 flags; - float32 tmrs[13]; - float32 ttms[13]; - float32 atms[13]; - float32 dtms[13]; - float32 vms[13]; - float32 dss[13]; - float32 total_change[13]; + uint32 flags; + float32 tmrs[13]; + float32 ttms[13]; + float32 atms[13]; + float32 dtms[13]; + float32 vms[13]; + float32 dss[13]; + float32 total_change[13]; }; struct xQCData { - int8 xmin; - int8 ymin; - int8 zmin; - int8 zmin_dup; - int8 xmax; - int8 ymax; - int8 zmax; - int8 zmax_dup; - xVec3 min; - xVec3 max; + int8 xmin; + int8 ymin; + int8 zmin; + int8 zmin_dup; + int8 xmax; + int8 ymax; + int8 zmax; + int8 zmax_dup; + xVec3 min; + xVec3 max; }; struct RwFrame { - RwObject object; - RwLLLink inDirtyListLink; - RwMatrixTag modelling; - RwMatrixTag ltm; - RwLinkList objectList; - RwFrame* child; - RwFrame* next; - RwFrame* root; + RwObject object; + RwLLLink inDirtyListLink; + RwMatrixTag modelling; + RwMatrixTag ltm; + RwLinkList objectList; + RwFrame* child; + RwFrame* next; + RwFrame* root; }; struct zHangableAsset : xDynAsset { - uint32 object; - xVec3 pivot; - xVec3 handle; - float32 onGravity; - float32 offGravity; - float32 maxAngVel; - float32 minArcDegrees; - uint32 hangFlags; + uint32 object; + xVec3 pivot; + xVec3 handle; + float32 onGravity; + float32 offGravity; + float32 maxAngVel; + float32 minArcDegrees; + uint32 hangFlags; }; enum _GameOstrich { - eGameOstrich_Loading, - eGameOstrich_PlayingMovie, - eGameOstrich_InScene, - eGameOstrich_Total + eGameOstrich_Loading, + eGameOstrich_PlayingMovie, + eGameOstrich_InScene, + eGameOstrich_Total }; struct EGGMisc { - int32 other; + int32 other; }; struct zLightningWidget : xBase { - zLightning* l; - zLightningAsset* asset; + zLightning* l; + zLightningAsset* asset; - void EventCB(xBase* to, uint32 toEvent); - void Init(xBase& data, xDynAsset& asset); + void EventCB(xBase* to, uint32 toEvent); + void Init(xBase& data, xDynAsset& asset); }; struct GECheat { - uint32* key_code; - void(*fun_cheat)(); - int32 flg_keep; - int32 flg_mode; + uint32* key_code; + void (*fun_cheat)(); + int32 flg_keep; + int32 flg_mode; }; struct xBox { - xVec3 upper; - xVec3 lower; + xVec3 upper; + xVec3 lower; }; struct _xFColor { - float32 r; - float32 g; - float32 b; - float32 a; + float32 r; + float32 g; + float32 b; + float32 a; }; struct xPSYNote @@ -4061,72 +4066,72 @@ struct xPSYNote struct spawn_data { - uint32 flags; - xVec3 loc; - xVec3 up; - float32 radius; - float32 fuel; - float32 heat; - float32 heat_absorb; - xEnt* driver; - property_set* props; + uint32 flags; + xVec3 loc; + xVec3 up; + float32 radius; + float32 fuel; + float32 heat; + float32 heat_absorb; + xEnt* driver; + property_set* props; }; struct SimpShadParm { - float32 rad_shadow; - int8* nam_shadowTexture; - RwRaster* rast_shadow; + float32 rad_shadow; + int8* nam_shadowTexture; + RwRaster* rast_shadow; }; struct _class_4 { - struct - { - uint8 invisible : 1; - uint8 ethereal : 1; - uint8 merge : 1; - uint8 word_break : 1; - uint8 word_end : 1; - uint8 line_break : 1; - uint8 stop : 1; - uint8 tab : 1; - }; - struct - { - uint8 insert : 1; - uint8 dynamic : 1; - uint8 page_break : 1; - uint8 stateful : 1; - uint8 japanese_break : 1; - }; - uint16 dummy : 3; + struct + { + uint8 invisible : 1; + uint8 ethereal : 1; + uint8 merge : 1; + uint8 word_break : 1; + uint8 word_end : 1; + uint8 line_break : 1; + uint8 stop : 1; + uint8 tab : 1; + }; + struct + { + uint8 insert : 1; + uint8 dynamic : 1; + uint8 page_break : 1; + uint8 stateful : 1; + uint8 japanese_break : 1; + }; + uint16 dummy : 3; }; struct extraEntry { - uint8 type; - uint8 id; - uint8 chestsNeeded; - uint8 status; + uint8 type; + uint8 id; + uint8 chestsNeeded; + uint8 status; }; enum _tagTRCState { - TRC_Unknown, - TRC_PadMissing, - TRC_PadInserted, - TRC_PadInvalidNoAnalog, - TRC_PadInvalidType, - TRC_DiskNotIdentified, - TRC_DiskIdentified, - TRC_DiskTrayOpen, - TRC_DiskTrayClosed, - TRC_DiskNoDisk, - TRC_DiskInvalid, - TRC_DiskRetry, - TRC_DiskFatal, - TRC_Total + TRC_Unknown, + TRC_PadMissing, + TRC_PadInserted, + TRC_PadInvalidNoAnalog, + TRC_PadInvalidType, + TRC_DiskNotIdentified, + TRC_DiskIdentified, + TRC_DiskTrayOpen, + TRC_DiskTrayClosed, + TRC_DiskNoDisk, + TRC_DiskInvalid, + TRC_DiskRetry, + TRC_DiskFatal, + TRC_Total }; struct anim_coll_data @@ -4135,210 +4140,210 @@ struct anim_coll_data enum xSndMode { - xSndMode_Mono, - xSndMode_Stereo, - xSndMode_Dolby, - xSndMode_Count + xSndMode_Mono, + xSndMode_Stereo, + xSndMode_Dolby, + xSndMode_Count }; struct zUICustomDialogPlayer : zUICustom { - - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void* __ct(zUI* ui); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void* __ct(zUI* ui); }; struct RwV2d { - float32 x; - float32 y; + float32 x; + float32 y; }; struct xMat3x3 { - xVec3 right; - int32 flags; - xVec3 up; - uint32 pad1; - xVec3 at; - uint32 pad2; + xVec3 right; + int32 flags; + xVec3 up; + uint32 pad1; + xVec3 at; + uint32 pad2; }; struct xModelPipe { - uint32 Flags; - uint8 Layer; - uint8 AlphaDiscard; - uint16 PipePad; + uint32 Flags; + uint8 Layer; + uint8 AlphaDiscard; + uint16 PipePad; }; struct ModelAndFontHideOnTextBox : ModelAndFont { - uint8 delayedShow; - uint8 hidden; + uint8 delayedShow; + uint8 hidden; }; struct zDestructibleStateFXParams { - float32 timer; - uint32 flags; - zParEmitter* emitter; - uint32(*fn)(float32); + float32 timer; + uint32 flags; + zParEmitter* emitter; + uint32 (*fn)(float32); }; enum en_npctyp { - NPC_TYPE_UNKNOWN, - NME_TYPE_UNKNOWN = 0, - NPC_TYPE_BASIC, - NPC_TYPE_COMMON, - NPC_TYPE_MELEE, - NPC_TYPE_MELEE_BOT, - NPC_TYPE_MINE, - NPC_TYPE_ORACLE, - NPC_TYPE_TURRET, - NPC_TYPE_SPIN_TURRET, - NPC_TYPE_SHOOTER, - NPC_TYPE_VIOLET_GUN, - NPC_TYPE_SECURITY_BIRD, - NPC_TYPE_FIRE_STREAMER, - NPC_TYPE_WATER_STREAMER, - NPC_TYPE_CAR, - NPC_TYPE_FRIENDLY, - NPC_TYPE_TANK, - NPC_TYPE_MELEE_SHIELDED, - NPC_TYPE_LOBBER, - NPC_TYPE_FLY_ROCKET, - NPC_TYPE_FLY_SHOOTER, - NPC_TYPE_FLY_LOBBER, - NPC_TYPE_VELOCIPOD, - NPC_TYPE_VELOCIPOD_DASH, - NPC_TYPE_MISSILE, - NPC_TYPE_HELIBOT, - NPC_TYPE_VIPER, - NPC_TYPE_BOT_LOB_WATER, - NPC_TYPE_BOT_LEAP, - NPC_TYPE_MONOPOD, - NPC_TYPE_INCREDIBALL, - NPC_TYPE_FROZONE, - NPC_TYPE_BOSS_OMNIDROID, - NPC_TYPE_BOSS_OMNIDROID10, - NPC_TYPE_BOSS_BOMB_CHOPPER, - PLAYER_TYPE_MR_INCREDIBLE_YOUNG, - PLAYER_TYPE_MR_INCREDIBLE_DISGUISED, - PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_BLUE, - PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_RED, - PLAYER_TYPE_MR_INCREDIBLE_OLD_FIT, - PLAYER_TYPE_ELASTI_GIRL_YOUNG, - PLAYER_TYPE_ELASTI_GIRL_OLD, - PLAYER_TYPE_DASH_REGULAR, - PLAYER_TYPE_DASH_COSTUMED, - PLAYER_TYPE_INCREDI_BALL, - PLAYER_TYPE_VIOLET, - NME_TYPE_COMMON, - NME_TYPE_TIKI, - NME_TYPE_TIKI_WOOD, - NME_TYPE_TIKI_LOVEY, - NME_TYPE_TIKI_QUIET, - NME_TYPE_TIKI_THUNDER, - NME_TYPE_TIKI_STONE, - NME_TYPE_FIRST_SEE_TYPE, - NME_TYPE_CRITTER = 0x35, - NME_TYPE_CRITBASIC, - NME_TYPE_CRITJELLY, - NME_TYPE_BUCKETJELLY, - NME_TYPE_TURRET, - NME_TYPE_TURBARREL_V1, - NME_TYPE_TURBARREL_V2, - NME_TYPE_TURBARREL_V3, - NME_TYPE_TURSPIRAL, - NME_TYPE_TURPOPUP, - NME_TYPE_TURTURNER, - NME_TYPE_TURTRACE, - NME_TYPE_TURARTY, - NME_TYPE_STANDARD, - NME_TYPE_FOGGER_V1, - NME_TYPE_FOGGER_V2, - NME_TYPE_FOGGER_V3, - NME_TYPE_SLAMMER_V1, - NME_TYPE_SLAMMER_V2, - NME_TYPE_SLAMMER_V3, - NME_TYPE_FLINGER_V1, - NME_TYPE_FLINGER_V2, - NME_TYPE_FLINGER_V3, - NME_TYPE_SPINNER_V1, - NME_TYPE_SPINNER_V2, - NME_TYPE_SPINNER_V3, - NME_TYPE_POPPER_V1, - NME_TYPE_POPPER_V2, - NME_TYPE_POPPER_V3, - NME_TYPE_ZAPPER_V1, - NME_TYPE_ZAPPER_V2, - NME_TYPE_ZAPPER_V3, - NME_TYPE_MERVYN_V1, - NME_TYPE_MERVYN_V2, - NME_TYPE_MERVYN_V3, - NME_TYPE_BUCKOTRON_V1, - NME_TYPE_BUCKOTRON_V2, - NME_TYPE_BUCKOTRON_V3, - NME_TYPE_BUCKOTRON_V4, - NME_TYPE_BUCKOTRON_V5, - NME_TYPE_BUCKOTRON_V6, - NME_TYPE_BUCKOTRON_V7, - NME_TYPE_LAST_SEE_TYPE = 0x5e, - NME_TYPE_FROGFISH, - NME_TYPE_DENNIS_V1, - NME_TYPE_DENNIS_V2, - NME_TYPE_NEPTUNE, - NME_TYPE_SBBAT, - NME_TYPE_TONGUESPIN, - NME_TYPE_MINDY, - NME_TYPE_SPONGEBOB, - NME_TYPE_PATRICK, - NPC_TYPE_NOMORE, - NPC_TYPE_FORCE = 0x7fffffff + NPC_TYPE_UNKNOWN, + NME_TYPE_UNKNOWN = 0, + NPC_TYPE_BASIC, + NPC_TYPE_COMMON, + NPC_TYPE_MELEE, + NPC_TYPE_MELEE_BOT, + NPC_TYPE_MINE, + NPC_TYPE_ORACLE, + NPC_TYPE_TURRET, + NPC_TYPE_SPIN_TURRET, + NPC_TYPE_SHOOTER, + NPC_TYPE_VIOLET_GUN, + NPC_TYPE_SECURITY_BIRD, + NPC_TYPE_FIRE_STREAMER, + NPC_TYPE_WATER_STREAMER, + NPC_TYPE_CAR, + NPC_TYPE_FRIENDLY, + NPC_TYPE_TANK, + NPC_TYPE_MELEE_SHIELDED, + NPC_TYPE_LOBBER, + NPC_TYPE_FLY_ROCKET, + NPC_TYPE_FLY_SHOOTER, + NPC_TYPE_FLY_LOBBER, + NPC_TYPE_VELOCIPOD, + NPC_TYPE_VELOCIPOD_DASH, + NPC_TYPE_MISSILE, + NPC_TYPE_HELIBOT, + NPC_TYPE_VIPER, + NPC_TYPE_BOT_LOB_WATER, + NPC_TYPE_BOT_LEAP, + NPC_TYPE_MONOPOD, + NPC_TYPE_INCREDIBALL, + NPC_TYPE_FROZONE, + NPC_TYPE_BOSS_OMNIDROID, + NPC_TYPE_BOSS_OMNIDROID10, + NPC_TYPE_BOSS_BOMB_CHOPPER, + PLAYER_TYPE_MR_INCREDIBLE_YOUNG, + PLAYER_TYPE_MR_INCREDIBLE_DISGUISED, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_BLUE, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_RED, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FIT, + PLAYER_TYPE_ELASTI_GIRL_YOUNG, + PLAYER_TYPE_ELASTI_GIRL_OLD, + PLAYER_TYPE_DASH_REGULAR, + PLAYER_TYPE_DASH_COSTUMED, + PLAYER_TYPE_INCREDI_BALL, + PLAYER_TYPE_VIOLET, + NME_TYPE_COMMON, + NME_TYPE_TIKI, + NME_TYPE_TIKI_WOOD, + NME_TYPE_TIKI_LOVEY, + NME_TYPE_TIKI_QUIET, + NME_TYPE_TIKI_THUNDER, + NME_TYPE_TIKI_STONE, + NME_TYPE_FIRST_SEE_TYPE, + NME_TYPE_CRITTER = 0x35, + NME_TYPE_CRITBASIC, + NME_TYPE_CRITJELLY, + NME_TYPE_BUCKETJELLY, + NME_TYPE_TURRET, + NME_TYPE_TURBARREL_V1, + NME_TYPE_TURBARREL_V2, + NME_TYPE_TURBARREL_V3, + NME_TYPE_TURSPIRAL, + NME_TYPE_TURPOPUP, + NME_TYPE_TURTURNER, + NME_TYPE_TURTRACE, + NME_TYPE_TURARTY, + NME_TYPE_STANDARD, + NME_TYPE_FOGGER_V1, + NME_TYPE_FOGGER_V2, + NME_TYPE_FOGGER_V3, + NME_TYPE_SLAMMER_V1, + NME_TYPE_SLAMMER_V2, + NME_TYPE_SLAMMER_V3, + NME_TYPE_FLINGER_V1, + NME_TYPE_FLINGER_V2, + NME_TYPE_FLINGER_V3, + NME_TYPE_SPINNER_V1, + NME_TYPE_SPINNER_V2, + NME_TYPE_SPINNER_V3, + NME_TYPE_POPPER_V1, + NME_TYPE_POPPER_V2, + NME_TYPE_POPPER_V3, + NME_TYPE_ZAPPER_V1, + NME_TYPE_ZAPPER_V2, + NME_TYPE_ZAPPER_V3, + NME_TYPE_MERVYN_V1, + NME_TYPE_MERVYN_V2, + NME_TYPE_MERVYN_V3, + NME_TYPE_BUCKOTRON_V1, + NME_TYPE_BUCKOTRON_V2, + NME_TYPE_BUCKOTRON_V3, + NME_TYPE_BUCKOTRON_V4, + NME_TYPE_BUCKOTRON_V5, + NME_TYPE_BUCKOTRON_V6, + NME_TYPE_BUCKOTRON_V7, + NME_TYPE_LAST_SEE_TYPE = 0x5e, + NME_TYPE_FROGFISH, + NME_TYPE_DENNIS_V1, + NME_TYPE_DENNIS_V2, + NME_TYPE_NEPTUNE, + NME_TYPE_SBBAT, + NME_TYPE_TONGUESPIN, + NME_TYPE_MINDY, + NME_TYPE_SPONGEBOB, + NME_TYPE_PATRICK, + NPC_TYPE_NOMORE, + NPC_TYPE_FORCE = 0x7fffffff }; struct RxPipelineCluster { - RxClusterDefinition* clusterRef; - uint32 creationAttributes; + RxClusterDefinition* clusterRef; + uint32 creationAttributes; }; struct xCounterAsset : xBaseAsset { - int16 count; + int16 count; }; struct tag_xFile { - int8 relname[32]; - tag_iFile ps; - void* user_data; + int8 relname[32]; + tag_iFile ps; + void* user_data; }; struct zPlayer : zEnt { - xVec3 trigLastFramePos; - int32 zPlayerFlags; - uint32 lorezModelID; - xModelInstance* lorezModel; - xModelInstance* hirezModel; + xVec3 trigLastFramePos; + int32 zPlayerFlags; + uint32 lorezModelID; + xModelInstance* lorezModel; + xModelInstance* hirezModel; }; enum RxClusterValidityReq { - rxCLREQ_DONTWANT, - rxCLREQ_REQUIRED, - rxCLREQ_OPTIONAL, - rxCLUSTERVALIDITYREQFORCEENUMSIZEINT = 0x7fffffff + rxCLREQ_DONTWANT, + rxCLREQ_REQUIRED, + rxCLREQ_OPTIONAL, + rxCLUSTERVALIDITYREQFORCEENUMSIZEINT = 0x7fffffff }; struct extraCostumeEntry { - uint32 costumeID; - eSNDCurrentPlayer player; - uint32 gameExtrasFlag; + uint32 costumeID; + eSNDCurrentPlayer player; + uint32 gameExtrasFlag; }; struct zVolume : xVolume @@ -4347,74 +4352,74 @@ struct zVolume : xVolume struct xJSPNodeTreeBranch { - uint16 leftNode; - uint16 rightNode; - uint8 leftType; - uint8 rightType; - uint16 coord; - float32 leftValue; - float32 rightValue; + uint16 leftNode; + uint16 rightNode; + uint8 leftType; + uint8 rightType; + uint16 coord; + float32 leftValue; + float32 rightValue; }; struct xPEVolume { - uint32 emit_volumeID; + uint32 emit_volumeID; }; struct xEntBoulderAsset { - float32 gravity; - float32 mass; - float32 bounce; - float32 friction; - float32 maxVel; - float32 maxAngVel; - float32 stickiness; - float32 bounceDamp; - uint32 flags; - float32 killtimer; - uint32 hitpoints; - union - { - uint32 uSoundGroupHash; - iSndGroupHandle soundID; - }; - float32 minSoundVel; - float32 maxSoundVel; - float32 fSphereRadius; - uint8 uPad0; - uint8 uPad1; - uint8 uPad2; - uint8 uBoneIndex; + float32 gravity; + float32 mass; + float32 bounce; + float32 friction; + float32 maxVel; + float32 maxAngVel; + float32 stickiness; + float32 bounceDamp; + uint32 flags; + float32 killtimer; + uint32 hitpoints; + union + { + uint32 uSoundGroupHash; + iSndGroupHandle soundID; + }; + float32 minSoundVel; + float32 maxSoundVel; + float32 fSphereRadius; + uint8 uPad0; + uint8 uPad1; + uint8 uPad2; + uint8 uBoneIndex; }; struct xMovePointAsset : xBaseAsset { - xVec3 pos; - uint16 wt; - uint8 on; - uint8 bezIndex; - uint8 flg_props; - uint8 pad; - uint16 numPoints; - float32 delay; - float32 zoneRadius; - float32 arenaRadius; + xVec3 pos; + uint16 wt; + uint8 on; + uint8 bezIndex; + uint8 flg_props; + uint8 pad; + uint16 numPoints; + float32 delay; + float32 zoneRadius; + float32 arenaRadius; }; struct RxClusterRef { - RxClusterDefinition* clusterDef; - RxClusterForcePresent forcePresent; - uint32 reserved; + RxClusterDefinition* clusterDef; + RxClusterForcePresent forcePresent; + uint32 reserved; }; struct pointer_asset : xDynAsset { - xVec3 loc; - float32 yaw; - float32 pitch; - float32 roll; + xVec3 loc; + float32 yaw; + float32 pitch; + float32 roll; }; struct _anon14 @@ -4423,81 +4428,81 @@ struct _anon14 struct iLight { - uint32 type; - RpLight* hw; - xSphere sph; - float32 radius_sq; - _xFColor color; - xVec3 dir; - float32 coneangle; + uint32 type; + RpLight* hw; + xSphere sph; + float32 radius_sq; + _xFColor color; + xVec3 dir; + float32 coneangle; }; struct GoofyGooberMeter : ModelAndFontHideOnTextBox { - zUIText* autoSave; + zUIText* autoSave; }; struct block_data { - uint8 prev; - uint8 next; - uint16 flags; - void* data; + uint8 prev; + uint8 next; + uint16 flags; + void* data; }; struct zNMEDriver { - xEnt* ent_driver; - float32 tym_mount; - xMat4x3 mat_parLast; - xMat4x3 mat_ownerLast; - struct - { - int32 flg_inContact : 1; - int32 flg_matchOrient : 1; - int32 flg_unused : 30; - }; + xEnt* ent_driver; + float32 tym_mount; + xMat4x3 mat_parLast; + xMat4x3 mat_ownerLast; + struct + { + int32 flg_inContact : 1; + int32 flg_matchOrient : 1; + int32 flg_unused : 30; + }; }; enum _zPlayerType { - ePlayer_SB, - ePlayer_Patrick, - ePlayer_MAXTYPES + ePlayer_SB, + ePlayer_Patrick, + ePlayer_MAXTYPES }; struct _tagiTRCPadInfo { - _tagPadInit pad_init; + _tagPadInit pad_init; }; struct emitterBase : xBase { - effectAsset* pEffectAsset; + effectAsset* pEffectAsset; }; enum en_GOALSTATE { - GOAL_STAT_UNKNOWN, - GOAL_STAT_PROCESS, - GOAL_STAT_ENTER, - GOAL_STAT_EXIT, - GOAL_STAT_SUSPEND, - GOAL_STAT_RESUME, - GOAL_STAT_PAUSED, - GOAL_STAT_DONE, - GOAL_STAT_NOMORE, - GOAL_STAT_FORCE = 0x7fffffff + GOAL_STAT_UNKNOWN, + GOAL_STAT_PROCESS, + GOAL_STAT_ENTER, + GOAL_STAT_EXIT, + GOAL_STAT_SUSPEND, + GOAL_STAT_RESUME, + GOAL_STAT_PAUSED, + GOAL_STAT_DONE, + GOAL_STAT_NOMORE, + GOAL_STAT_FORCE = 0x7fffffff }; struct meter_asset : asset { - float32 start_value; - float32 min_value; - float32 max_value; - float32 increment_time; - float32 decrement_time; - _class_16 sound; + float32 start_value; + float32 min_value; + float32 max_value; + float32 increment_time; + float32 decrement_time; + _class_16 sound; }; struct zParEmitter : xParEmitter @@ -4506,38 +4511,38 @@ struct zParEmitter : xParEmitter struct _class_5 { - uint32 type; - color_type color; - uint32 texture; - float32 borderU; - float32 borderV; - float32 borderWidth; - float32 borderHeight; + uint32 type; + color_type color; + uint32 texture; + float32 borderU; + float32 borderV; + float32 borderWidth; + float32 borderHeight; }; struct xFXRing { - uint32 texture; - float32 lifetime; - xVec3 pos; - float32 time; - float32 ring_radius; - float32 ring_radius_delta; - float32 ring_tilt; - float32 ring_tilt_delta; - float32 ring_height; - float32 ring_height_delta; - xColor_tag ring_color; - uint16 ring_segs; - uint8 u_repeat; - uint8 v_repeat; - xFXRing** parent; - RwRaster* rast_ring; + uint32 texture; + float32 lifetime; + xVec3 pos; + float32 time; + float32 ring_radius; + float32 ring_radius_delta; + float32 ring_tilt; + float32 ring_tilt_delta; + float32 ring_height; + float32 ring_height_delta; + xColor_tag ring_color; + uint16 ring_segs; + uint8 u_repeat; + uint8 v_repeat; + xFXRing** parent; + RwRaster* rast_ring; }; struct xAnimMultiFile : xAnimMultiFileBase { - xAnimMultiFileEntry Files[1]; + xAnimMultiFileEntry Files[1]; }; struct _anon15 @@ -4546,98 +4551,99 @@ struct _anon15 enum eTrackReason { - eMusic, - eNewMusic, - eTempMusic + eMusic, + eNewMusic, + eTempMusic }; struct _class_6 { - uint8 pad[16]; + uint8 pad[16]; }; struct xParEmitterPropsAsset : xBaseAsset { - uint32 parSysID; - union - { - xParInterp rate; - xParInterp value[1]; - }; - xParInterp life; - xParInterp size_birth; - xParInterp size_death; - xParInterp color_birth[4]; - xParInterp color_death[4]; - xParInterp vel_scale; - xParInterp vel_angle; - xVec3 vel; - uint32 emit_limit; - float32 emit_limit_reset_time; + uint32 parSysID; + union + { + xParInterp rate; + xParInterp value[1]; + }; + xParInterp life; + xParInterp size_birth; + xParInterp size_death; + xParInterp color_birth[4]; + xParInterp color_death[4]; + xParInterp vel_scale; + xParInterp vel_angle; + xVec3 vel; + uint32 emit_limit; + float32 emit_limit_reset_time; }; struct xCutsceneTime { - float32 StartTime; - float32 EndTime; - uint32 NumData; - uint32 ChunkIndex; + float32 StartTime; + float32 EndTime; + uint32 NumData; + uint32 ChunkIndex; }; struct zUICustomUpgradeTutorialContoller : zUICustom { - ztalkbox* upgradeTutorialTalkBox; - zUIText* autoSave; - uint32 upgradeTutorialID; + ztalkbox* upgradeTutorialTalkBox; + zUIText* autoSave; + uint32 upgradeTutorialID; - uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, uint32 toParamWidgetID); - void PreUpdate(); - void Reset(); - void* __ct(zUI* ui); + uint8 HandleEvent(xBase* from, uint32 toEvent, float32* toParam, xBase* toParamWidget, + uint32 toParamWidgetID); + void PreUpdate(); + void Reset(); + void* __ct(zUI* ui); }; struct EGGData { - union - { - int32 placeholder; - EGGMisc misc; - }; + union + { + int32 placeholder; + EGGMisc misc; + }; }; struct _tagPartition { - xVec3 min; - xVec3 max; - xVec3 space_dim; - int32 total_x; - int32 total_y; - int32 total_z; - _tagPartSpace* space; - _tagPartSpace global; + xVec3 min; + xVec3 max; + xVec3 space_dim; + int32 total_x; + int32 total_y; + int32 total_z; + _tagPartSpace* space; + _tagPartSpace global; }; struct zUIModelAsset : zUIAsset { - uint32 model; - uint32 animationList; - uint32 surface; + uint32 model; + uint32 animationList; + uint32 surface; }; struct State { - float32 x; - float32 y; - float32 width; - float32 height; - xColor_tag color; - uint8 brightness; - uint8 pad[3]; + float32 x; + float32 y; + float32 width; + float32 height; + xColor_tag color; + uint8 brightness; + uint8 pad[3]; }; struct xModelTagWithNormal : xModelTag { - xVec3 normal; + xVec3 normal; }; struct _anon16 @@ -4646,70 +4652,70 @@ struct _anon16 struct effectAsset : xDynAsset { - float32 time; - float32 intensity; - uint32 id; - uint8 priority; - uint8 type; - uint8 rumbleInPause; - uint8 pad; - float32 param1; - float32 param2; - float32 shakeMagnitude; - float32 shakeCycleMax; - float32 shakeRotationalMagnitude; - uint8 shakeY; + float32 time; + float32 intensity; + uint32 id; + uint8 priority; + uint8 type; + uint8 rumbleInPause; + uint8 pad; + float32 param1; + float32 param2; + float32 shakeMagnitude; + float32 shakeCycleMax; + float32 shakeRotationalMagnitude; + uint8 shakeY; }; struct RpMaterialList { - RpMaterial** materials; - int32 numMaterials; - int32 space; + RpMaterial** materials; + int32 numMaterials; + int32 space; }; struct zNMEArena { - int32 flg_arena; - xVec3 pos_arena; - float32 rad_arena; - zMovePoint* nav_arena; - zMovePoint* nav_refer_dest; - zMovePoint* nav_refer_curr; + int32 flg_arena; + xVec3 pos_arena; + float32 rad_arena; + zMovePoint* nav_arena; + zMovePoint* nav_refer_dest; + zMovePoint* nav_refer_curr; }; struct PowerUpMenuTableEntry { - ePOWERUPMENU entry; - int8* name; - int32 powerup; - _xCounter* counter; + ePOWERUPMENU entry; + int8* name; + int32 powerup; + _xCounter* counter; }; struct iFogParams { - RwFogType type; - float32 start; - float32 stop; - float32 density; - RwRGBA fogcolor; - RwRGBA bgcolor; - uint8* table; + RwFogType type; + float32 start; + float32 stop; + float32 density; + RwRGBA fogcolor; + RwRGBA bgcolor; + uint8* table; }; struct xCoef3 { - xCoef x; - xCoef y; - xCoef z; + xCoef x; + xCoef y; + xCoef z; }; enum state_enum { - STATE_NONE, - STATE_OFF, - STATE_ON, - STATE_CONSTANT + STATE_NONE, + STATE_OFF, + STATE_ON, + STATE_CONSTANT }; struct _anon17 @@ -4718,21 +4724,21 @@ struct _anon17 struct xCutsceneData { - uint32 DataType; - uint32 AssetID; - uint32 ChunkSize; - union - { - uint32 FileOffset; - void* DataPtr; - }; + uint32 DataType; + uint32 AssetID; + uint32 ChunkSize; + union + { + uint32 FileOffset; + void* DataPtr; + }; }; enum xSndListener { - xSndListener_CAMERA, - xSndListener_PLAYER, - xSndListener_MAX_TYPES + xSndListener_CAMERA, + xSndListener_PLAYER, + xSndListener_MAX_TYPES }; struct st_SERIAL_CLIENTINFO @@ -4741,143 +4747,143 @@ struct st_SERIAL_CLIENTINFO struct xEntERData { - xVec3 a; - xVec3 b; - xVec3 dir; - float32 et; - float32 wet; - float32 rt; - float32 wrt; - float32 p; - float32 brt; - float32 ert; - int32 state; + xVec3 a; + xVec3 b; + xVec3 dir; + float32 et; + float32 wet; + float32 rt; + float32 wrt; + float32 p; + float32 brt; + float32 ert; + int32 state; }; struct xCamGroup { - xMat4x3 mat; - xVec3 vel; - float32 fov; - float32 fov_default; - int32 flags; - xCam* primary; - analog_data analog; - xCam* owned[32]; - int32 size; - int32 primary_index; - int32 child_flags; - int32 child_flags_mask; - xCamBlend* blend_cam[4]; + xMat4x3 mat; + xVec3 vel; + float32 fov; + float32 fov_default; + int32 flags; + xCam* primary; + analog_data analog; + xCam* owned[32]; + int32 size; + int32 primary_index; + int32 child_flags; + int32 child_flags_mask; + xCamBlend* blend_cam[4]; }; struct zPlayerSB : zPlayer { - uint8 inited; - ManlinessMeter manlinessMeter; - KrabbyPattyMeter krabbyPattyMeter; - TreasureChest treasureChest; - GoofyGooberMeter goofyGooberMeter; - NitroMeter nitroMeter; - - void LoadCheckPoint(); - void StoreCheckPoint(); - void Exit(); - void Move(); - void EndUpdate(); - void BeginUpdate(); - void SceneSetup(); - void InitPlayerSpecifics(ePlayerEnum playerEnum); - void BoundUpdate(); - uint8 IsDead(); + uint8 inited; + ManlinessMeter manlinessMeter; + KrabbyPattyMeter krabbyPattyMeter; + TreasureChest treasureChest; + GoofyGooberMeter goofyGooberMeter; + NitroMeter nitroMeter; + + void LoadCheckPoint(); + void StoreCheckPoint(); + void Exit(); + void Move(); + void EndUpdate(); + void BeginUpdate(); + void SceneSetup(); + void InitPlayerSpecifics(ePlayerEnum playerEnum); + void BoundUpdate(); + uint8 IsDead(); }; struct tagiRenderArrays { - uint16 m_index[960]; - RxObjSpace3DVertex m_vertex[480]; - float32 m_vertexTZ[480]; + uint16 m_index[960]; + RxObjSpace3DVertex m_vertex[480]; + float32 m_vertexTZ[480]; }; struct xCamera : xBase { - RwCamera* lo_cam; - xMat4x3 mat; - xMat4x3 omat; - xMat3x3 mbasis; - xBound bound; - xMat4x3* tgt_mat; - xMat4x3* tgt_omat; - xBound* tgt_bound; - xVec3 focus; - xScene* sc; - xVec3 tran_accum; - float32 fov; - uint32 flags; - float32 tmr; - float32 tm_acc; - float32 tm_dec; - float32 ltmr; - float32 ltm_acc; - float32 ltm_dec; - float32 dmin; - float32 dmax; - float32 dcur; - float32 dgoal; - float32 hmin; - float32 hmax; - float32 hcur; - float32 hgoal; - float32 pmin; - float32 pmax; - float32 pcur; - float32 pgoal; - float32 depv; - float32 hepv; - float32 pepv; - float32 orn_epv; - float32 yaw_epv; - float32 pitch_epv; - float32 roll_epv; - xQuat orn_cur; - xQuat orn_goal; - xQuat orn_diff; - float32 yaw_cur; - float32 yaw_goal; - float32 pitch_cur; - float32 pitch_goal; - float32 roll_cur; - float32 roll_goal; - float32 dct; - float32 dcd; - float32 dccv; - float32 dcsv; - float32 hct; - float32 hcd; - float32 hccv; - float32 hcsv; - float32 pct; - float32 pcd; - float32 pccv; - float32 pcsv; - float32 orn_ct; - float32 orn_cd; - float32 orn_ccv; - float32 orn_csv; - float32 yaw_ct; - float32 yaw_cd; - float32 yaw_ccv; - float32 yaw_csv; - float32 pitch_ct; - float32 pitch_cd; - float32 pitch_ccv; - float32 pitch_csv; - float32 roll_ct; - float32 roll_cd; - float32 roll_ccv; - float32 roll_csv; - xVec4 frustplane[12]; - float32 smoothOutwardSlidePos; + RwCamera* lo_cam; + xMat4x3 mat; + xMat4x3 omat; + xMat3x3 mbasis; + xBound bound; + xMat4x3* tgt_mat; + xMat4x3* tgt_omat; + xBound* tgt_bound; + xVec3 focus; + xScene* sc; + xVec3 tran_accum; + float32 fov; + uint32 flags; + float32 tmr; + float32 tm_acc; + float32 tm_dec; + float32 ltmr; + float32 ltm_acc; + float32 ltm_dec; + float32 dmin; + float32 dmax; + float32 dcur; + float32 dgoal; + float32 hmin; + float32 hmax; + float32 hcur; + float32 hgoal; + float32 pmin; + float32 pmax; + float32 pcur; + float32 pgoal; + float32 depv; + float32 hepv; + float32 pepv; + float32 orn_epv; + float32 yaw_epv; + float32 pitch_epv; + float32 roll_epv; + xQuat orn_cur; + xQuat orn_goal; + xQuat orn_diff; + float32 yaw_cur; + float32 yaw_goal; + float32 pitch_cur; + float32 pitch_goal; + float32 roll_cur; + float32 roll_goal; + float32 dct; + float32 dcd; + float32 dccv; + float32 dcsv; + float32 hct; + float32 hcd; + float32 hccv; + float32 hcsv; + float32 pct; + float32 pcd; + float32 pccv; + float32 pcsv; + float32 orn_ct; + float32 orn_cd; + float32 orn_ccv; + float32 orn_csv; + float32 yaw_ct; + float32 yaw_cd; + float32 yaw_ccv; + float32 yaw_csv; + float32 pitch_ct; + float32 pitch_cd; + float32 pitch_ccv; + float32 pitch_csv; + float32 roll_ct; + float32 roll_cd; + float32 roll_ccv; + float32 roll_csv; + xVec4 frustplane[12]; + float32 smoothOutwardSlidePos; }; struct zFrag @@ -4886,216 +4892,216 @@ struct zFrag struct OriginalBackupData { - struct - { - int32 flg_enableWander : 1; - int32 flg_enablePatrol : 1; - int32 flg_enableDetect : 1; - int32 flg_activeOn : 1; - int32 flg_takeNoDamage : 1; - int32 flg_unused : 27; - }; - union - { - en_allow overrideDetect; - int32 alignmeproperly; - }; - union - { - en_allow overrideAttack; - int32 alignmeproperlyToo; - }; + struct + { + int32 flg_enableWander : 1; + int32 flg_enablePatrol : 1; + int32 flg_enableDetect : 1; + int32 flg_activeOn : 1; + int32 flg_takeNoDamage : 1; + int32 flg_unused : 27; + }; + union + { + en_allow overrideDetect; + int32 alignmeproperly; + }; + union + { + en_allow overrideAttack; + int32 alignmeproperlyToo; + }; }; struct RpVertexNormal { - int8 x; - int8 y; - int8 z; - uint8 pad; + int8 x; + int8 y; + int8 z; + uint8 pad; }; struct _class_7 { - uint32 address; - uint32 size; + uint32 address; + uint32 size; }; enum en_npcgol { - NME_GOAL_UNKNOWN, - NME_GOAL_CRIT_IDLE = 0x4e474300, - NME_GOAL_CRIT_PATROL, - NME_GOAL_CRIT_DYING, - NME_GOAL_CRIT_DEAD, - NME_GOAL_CRIT_BATTACK, - NME_GOAL_CRIT_JATTACK, - NME_GOAL_CRIT_JDYING, - NME_GOAL_TURR_IDLE = 0x4e474700, - NME_GOAL_TURR_RELOAD, - NME_GOAL_TURR_HURT, - NME_GOAL_TURR_DEAD, - NME_GOAL_TURR_TREADY, - NME_GOAL_TURR_TTURN, - NME_GOAL_TURR_TSHOOT, - NME_GOAL_TURR_PDORMANT, - NME_GOAL_TURR_PALERT, - NME_GOAL_TURR_PPATALPHA, - NME_GOAL_TURR_BIDLE, - NME_GOAL_TURR_BTURN, - NME_GOAL_TURR_BSHOOT, - NME_GOAL_TURR_BHURT, - NME_GOAL_TURR_SPIRAL, - NME_GOAL_IDLE = 0x4e474e00, - NME_GOAL_PATROL, - NME_GOAL_WANDER, - NME_GOAL_FIDGET, - NME_GOAL_WAITING, - NME_GOAL_DEAD, - NME_GOAL_NOMANLAND, - NME_GOAL_LIMBO, - NME_GOAL_DEV_ANIMVIEW = 0x4e474400, - NME_GOAL_DEV_HEROMODE, - NME_GOAL_TIKI_IDLE = 0x4e475400, - NME_GOAL_TIKI_PATROL, - NME_GOAL_TIKI_HIDE, - NME_GOAL_TIKI_COUNT, - NME_GOAL_TIKI_DYING, - NME_GOAL_TIKI_DEAD, - NME_GOAL_AFTERLIFE = 0x4e475300, - NME_GOAL_SPAWN, - NME_GOAL_WOUND, - NME_GOAL_SPOOKED, - NME_GOAL_NOTICE, - NME_GOAL_SCAREWAIT, - NME_GOAL_SCARE, - NME_GOAL_TAUNT, - NME_GOAL_EVILPAT = 0x4e475000, - NME_GOAL_STUNNED, - NME_GOAL_PATCARRY, - NME_GOAL_PATTWIRL, - NME_GOAL_PATTHROW, - NME_GOAL_TRIGGER_NORMAL = 0x4e475800, - NME_GOAL_TRIGGER_SCARY, - NME_GOAL_TRIGGER_DETECT, - NME_GOAL_TRIGGER_ALERT, - NME_GOAL_TRIGGER_BATTLE, - NME_GOAL_TRIGGER_WOUND, - NME_GOAL_TRIGGER_ATTACK, - NME_GOAL_TRIGGER_VINIVICIVIDI, - NME_GOAL_FOGGER_AWARE = 0x4e474500, - NME_GOAL_FOGGER_BATTLE, - NME_GOAL_FOGGER_ATTACK, - NME_GOAL_SLAMMER_AWARE, - NME_GOAL_SLAMMER_BATTLE, - NME_GOAL_SLAMMER_ATTACK, - NME_GOAL_SPINNER_AWARE, - NME_GOAL_SPINNER_BATTLE, - NME_GOAL_FLINGER_NORMAL, - NME_GOAL_FLINGER_AWARE, - NME_GOAL_FLINGER_BATTLE, - NME_GOAL_FLINGER_ATTACK, - NME_GOAL_FLINGER_BOING, - NME_GOAL_FLINGER_FLEE, - NME_GOAL_FLINGER_PANIC, - NME_GOAL_FLINGER_MOVE, - NME_GOAL_POPPER_NORMAL, - NME_GOAL_POPPER_AWARE, - NME_GOAL_POPPER_WOUND, - NME_GOAL_POPPER_EVADE, - NME_GOAL_POPPER_BATTLE, - NME_GOAL_POPPER_ATTACK, - NME_GOAL_ZAP_NORMAL, - NME_GOAL_ZAP_AWARE, - NME_GOAL_ZAP_BATTLE, - NME_GOAL_ZAP_WOUND, - NME_GOAL_ZAP_ZAP, - NME_GOAL_ZAP_MOVE, - NME_GOAL_MERV_NORMAL, - NME_GOAL_MERV_AWARE, - NME_GOAL_MERV_BATTLE, - NME_GOAL_MERV_ZAP, - NME_GOAL_MERV_BOMB, - NME_GOAL_MERV_BOWL, - NME_GOAL_MERV_WOUND, - NME_GOAL_MERV_MOVE, - NME_GOAL_BUCK_RUNNING, - NME_GOAL_BUCK_BIRTHING, - NME_GOAL_BUCK_DYING, - NME_GOAL_BUCK_DEAD, - NME_GOAL_DENNIS_NORMAL, - NME_GOAL_DENNIS_EVADE, - NME_GOAL_DENNIS_BATTLE, - NME_GOAL_DENNIS_ATTACK, - NME_GOAL_DENNIS_TAUNT, - NME_GOAL_DENNIS_DAMAGE, - NME_GOAL_DENNIS_DEAD, - NME_GOAL_DENTOO_NORMAL, - NME_GOAL_DENTOO_EVADE, - NME_GOAL_DENTOO_BATTLE, - NME_GOAL_DENTOO_ATTACK, - NME_GOAL_DENTOO_TAUNT, - NME_GOAL_DENTOO_DAMAGE, - NME_GOAL_DENTOO_DEAD, - NME_GOAL_SBBAT_IDLE, - NME_GOAL_SBBAT_DEAD, - NME_GOAL_NOMORE, - NME_GOAL_FORCE = 0x7fffffff + NME_GOAL_UNKNOWN, + NME_GOAL_CRIT_IDLE = 0x4e474300, + NME_GOAL_CRIT_PATROL, + NME_GOAL_CRIT_DYING, + NME_GOAL_CRIT_DEAD, + NME_GOAL_CRIT_BATTACK, + NME_GOAL_CRIT_JATTACK, + NME_GOAL_CRIT_JDYING, + NME_GOAL_TURR_IDLE = 0x4e474700, + NME_GOAL_TURR_RELOAD, + NME_GOAL_TURR_HURT, + NME_GOAL_TURR_DEAD, + NME_GOAL_TURR_TREADY, + NME_GOAL_TURR_TTURN, + NME_GOAL_TURR_TSHOOT, + NME_GOAL_TURR_PDORMANT, + NME_GOAL_TURR_PALERT, + NME_GOAL_TURR_PPATALPHA, + NME_GOAL_TURR_BIDLE, + NME_GOAL_TURR_BTURN, + NME_GOAL_TURR_BSHOOT, + NME_GOAL_TURR_BHURT, + NME_GOAL_TURR_SPIRAL, + NME_GOAL_IDLE = 0x4e474e00, + NME_GOAL_PATROL, + NME_GOAL_WANDER, + NME_GOAL_FIDGET, + NME_GOAL_WAITING, + NME_GOAL_DEAD, + NME_GOAL_NOMANLAND, + NME_GOAL_LIMBO, + NME_GOAL_DEV_ANIMVIEW = 0x4e474400, + NME_GOAL_DEV_HEROMODE, + NME_GOAL_TIKI_IDLE = 0x4e475400, + NME_GOAL_TIKI_PATROL, + NME_GOAL_TIKI_HIDE, + NME_GOAL_TIKI_COUNT, + NME_GOAL_TIKI_DYING, + NME_GOAL_TIKI_DEAD, + NME_GOAL_AFTERLIFE = 0x4e475300, + NME_GOAL_SPAWN, + NME_GOAL_WOUND, + NME_GOAL_SPOOKED, + NME_GOAL_NOTICE, + NME_GOAL_SCAREWAIT, + NME_GOAL_SCARE, + NME_GOAL_TAUNT, + NME_GOAL_EVILPAT = 0x4e475000, + NME_GOAL_STUNNED, + NME_GOAL_PATCARRY, + NME_GOAL_PATTWIRL, + NME_GOAL_PATTHROW, + NME_GOAL_TRIGGER_NORMAL = 0x4e475800, + NME_GOAL_TRIGGER_SCARY, + NME_GOAL_TRIGGER_DETECT, + NME_GOAL_TRIGGER_ALERT, + NME_GOAL_TRIGGER_BATTLE, + NME_GOAL_TRIGGER_WOUND, + NME_GOAL_TRIGGER_ATTACK, + NME_GOAL_TRIGGER_VINIVICIVIDI, + NME_GOAL_FOGGER_AWARE = 0x4e474500, + NME_GOAL_FOGGER_BATTLE, + NME_GOAL_FOGGER_ATTACK, + NME_GOAL_SLAMMER_AWARE, + NME_GOAL_SLAMMER_BATTLE, + NME_GOAL_SLAMMER_ATTACK, + NME_GOAL_SPINNER_AWARE, + NME_GOAL_SPINNER_BATTLE, + NME_GOAL_FLINGER_NORMAL, + NME_GOAL_FLINGER_AWARE, + NME_GOAL_FLINGER_BATTLE, + NME_GOAL_FLINGER_ATTACK, + NME_GOAL_FLINGER_BOING, + NME_GOAL_FLINGER_FLEE, + NME_GOAL_FLINGER_PANIC, + NME_GOAL_FLINGER_MOVE, + NME_GOAL_POPPER_NORMAL, + NME_GOAL_POPPER_AWARE, + NME_GOAL_POPPER_WOUND, + NME_GOAL_POPPER_EVADE, + NME_GOAL_POPPER_BATTLE, + NME_GOAL_POPPER_ATTACK, + NME_GOAL_ZAP_NORMAL, + NME_GOAL_ZAP_AWARE, + NME_GOAL_ZAP_BATTLE, + NME_GOAL_ZAP_WOUND, + NME_GOAL_ZAP_ZAP, + NME_GOAL_ZAP_MOVE, + NME_GOAL_MERV_NORMAL, + NME_GOAL_MERV_AWARE, + NME_GOAL_MERV_BATTLE, + NME_GOAL_MERV_ZAP, + NME_GOAL_MERV_BOMB, + NME_GOAL_MERV_BOWL, + NME_GOAL_MERV_WOUND, + NME_GOAL_MERV_MOVE, + NME_GOAL_BUCK_RUNNING, + NME_GOAL_BUCK_BIRTHING, + NME_GOAL_BUCK_DYING, + NME_GOAL_BUCK_DEAD, + NME_GOAL_DENNIS_NORMAL, + NME_GOAL_DENNIS_EVADE, + NME_GOAL_DENNIS_BATTLE, + NME_GOAL_DENNIS_ATTACK, + NME_GOAL_DENNIS_TAUNT, + NME_GOAL_DENNIS_DAMAGE, + NME_GOAL_DENNIS_DEAD, + NME_GOAL_DENTOO_NORMAL, + NME_GOAL_DENTOO_EVADE, + NME_GOAL_DENTOO_BATTLE, + NME_GOAL_DENTOO_ATTACK, + NME_GOAL_DENTOO_TAUNT, + NME_GOAL_DENTOO_DAMAGE, + NME_GOAL_DENTOO_DEAD, + NME_GOAL_SBBAT_IDLE, + NME_GOAL_SBBAT_DEAD, + NME_GOAL_NOMORE, + NME_GOAL_FORCE = 0x7fffffff }; struct xScene { - uint32 sceneID; - uint16 flags; - uint16 num_trigs; - uint16 num_stats; - uint16 num_dyns; - uint16 num_npcs; - uint16 num_act_ents; - float32 gravity; - float32 drag; - float32 friction; - uint16 num_ents_allocd; - uint16 num_trigs_allocd; - uint16 num_stats_allocd; - uint16 num_dyns_allocd; - uint16 num_npcs_allocd; - xEnt** trigs; - xEnt** stats; - xEnt** dyns; - xEnt** npcs; - xEnt** act_ents; - xEnv* env; - xMemPool mempool; - xBase*(*resolvID)(uint32); - int8*(*base2Name)(xBase*); - int8*(*id2Name)(uint32); + uint32 sceneID; + uint16 flags; + uint16 num_trigs; + uint16 num_stats; + uint16 num_dyns; + uint16 num_npcs; + uint16 num_act_ents; + float32 gravity; + float32 drag; + float32 friction; + uint16 num_ents_allocd; + uint16 num_trigs_allocd; + uint16 num_stats_allocd; + uint16 num_dyns_allocd; + uint16 num_npcs_allocd; + xEnt** trigs; + xEnt** stats; + xEnt** dyns; + xEnt** npcs; + xEnt** act_ents; + xEnv* env; + xMemPool mempool; + xBase* (*resolvID)(uint32); + int8* (*base2Name)(xBase*); + int8* (*id2Name)(uint32); }; enum RxClusterForcePresent { - rxCLALLOWABSENT, - rxCLFORCEPRESENT, - rxCLUSTERFORCEPRESENTFORCEENUMSIZEINT = 0x7fffffff + rxCLALLOWABSENT, + rxCLFORCEPRESENT, + rxCLUSTERFORCEPRESENTFORCEENUMSIZEINT = 0x7fffffff }; struct zFragAsset { - zFragType type; - uint32 id; - uint32 parentID[2]; - float32 lifetime; - float32 delay; + zFragType type; + uint32 id; + uint32 parentID[2]; + float32 lifetime; + float32 delay; }; struct xLinkAsset { - uint16 srcEvent; - uint16 dstEvent; - uint32 dstAssetID; - float32 param[4]; - uint32 paramWidgetAssetID; - uint32 chkAssetID; + uint16 srcEvent; + uint16 dstEvent; + uint32 dstAssetID; + float32 param[4]; + uint32 paramWidgetAssetID; + uint32 chkAssetID; }; struct _anon18 @@ -5104,35 +5110,35 @@ struct _anon18 struct _class_8 { - struct - { - uint8 active : 1; - uint8 dirty : 1; - uint8 show_backdrop : 1; - uint8 skipFrame : 1; - }; + struct + { + uint8 active : 1; + uint8 dirty : 1; + uint8 show_backdrop : 1; + uint8 skipFrame : 1; + }; }; struct zCheckPoint { - xVec3 pos; - float32 rot; - uint32 initCamID; - uint8* jsp_active; - xSndEffect currentEffect; + xVec3 pos; + float32 rot; + uint32 initCamID; + uint8* jsp_active; + xSndEffect currentEffect; }; struct xUpdateCullGroup { - uint32 active; - uint16 startIndex; - uint16 endIndex; - xGroup* groupObject; + uint32 active; + uint16 startIndex; + uint16 endIndex; + xGroup* groupObject; }; struct xPEOffsetPoint { - xVec3 offset; + xVec3 offset; }; struct _anon19 @@ -5141,148 +5147,148 @@ struct _anon19 struct FullShadParm { - int32 tobeDetermined; + int32 tobeDetermined; }; struct RxColorUnion { - union - { - RwRGBA preLitColor; - RwRGBA color; - }; + union + { + RwRGBA preLitColor; + RwRGBA color; + }; }; struct xCamScreen { - RwCamera* icam; - float32 fov; + RwCamera* icam; + float32 fov; }; struct zMusicTrackInfo { - iSndHandle sndHandle; - uint32 sndAssetID; - float32 volume; - float32 startVolume; - float32 targetVolume; - float32 targetVolumeTime; - float32 crossFadeStartTime; - eTrackReason trackDesc; - float32 playTime; + iSndHandle sndHandle; + uint32 sndAssetID; + float32 volume; + float32 startVolume; + float32 targetVolume; + float32 targetVolumeTime; + float32 crossFadeStartTime; + eTrackReason trackDesc; + float32 playTime; }; enum zHitSource { - zHS_EVENT, - zHS_GENERAL, - zHS_PROJECTILE, - zHS_EXPLOSION, - zHS_LASER, - zHS_ENERGY, - zHS_FIRE, - zHS_SURFACE, - zHS_MELEE_HIGH, - zHS_MELEE_MID, - zHS_MELEE_LOW, - zHS_MELEE_UP, - zHS_MELEE_BACK, - zHS_MELEE_DIZZY, - zHS_THROW, - zHS_WATER, - zHS_DEATHPLANE, - zHS_INCREDI, - zHS_KNOCKBACK, - zHS_LASERBEAM, - zHS_INFINITE_FALL, - zHS_COUNT, - zHS_FORCE_INT = 0xffffffff + zHS_EVENT, + zHS_GENERAL, + zHS_PROJECTILE, + zHS_EXPLOSION, + zHS_LASER, + zHS_ENERGY, + zHS_FIRE, + zHS_SURFACE, + zHS_MELEE_HIGH, + zHS_MELEE_MID, + zHS_MELEE_LOW, + zHS_MELEE_UP, + zHS_MELEE_BACK, + zHS_MELEE_DIZZY, + zHS_THROW, + zHS_WATER, + zHS_DEATHPLANE, + zHS_INCREDI, + zHS_KNOCKBACK, + zHS_LASERBEAM, + zHS_INFINITE_FALL, + zHS_COUNT, + zHS_FORCE_INT = 0xffffffff }; struct xSoundFXAsset : xBaseAsset { - union - { - uint32 soundAssetID; - iSndGroupHandle soundAsset; - }; - uint32 attachID; - xVec3 pos; - uint32 uFlags; + union + { + uint32 soundAssetID; + iSndGroupHandle soundAsset; + }; + uint32 attachID; + xVec3 pos; + uint32 uFlags; }; enum sceDemoEndReason { - SCE_DEMO_ENDREASON_ATTRACT_INTERRUPTED, - SCE_DEMO_ENDREASON_ATTRACT_COMPLETE, - SCE_DEMO_ENDREASON_PLAYABLE_INACTIVITY_TIMEOUT, - SCE_DEMO_ENDREASON_PLAYABLE_GAMEPLAY_TIMEOUT, - SCE_DEMO_ENDREASON_PLAYABLE_COMPLETE, - SCE_DEMO_ENDREASON_PLAYABLE_QUIT, - SCE_DEMO_ENDREASON_NETCONFIG_REQUEST, - SCE_DEMO_ENDREASON_NETCONFIG_COMPLETE + SCE_DEMO_ENDREASON_ATTRACT_INTERRUPTED, + SCE_DEMO_ENDREASON_ATTRACT_COMPLETE, + SCE_DEMO_ENDREASON_PLAYABLE_INACTIVITY_TIMEOUT, + SCE_DEMO_ENDREASON_PLAYABLE_GAMEPLAY_TIMEOUT, + SCE_DEMO_ENDREASON_PLAYABLE_COMPLETE, + SCE_DEMO_ENDREASON_PLAYABLE_QUIT, + SCE_DEMO_ENDREASON_NETCONFIG_REQUEST, + SCE_DEMO_ENDREASON_NETCONFIG_COMPLETE }; struct ModelAndFont : hud_element { - model_widget* modelWidget; - font_meter_widget* fontMeter; - uint32* valueToWatch; - uint32 lastValue; - uint8 okToAutoHide; + model_widget* modelWidget; + font_meter_widget* fontMeter; + uint32* valueToWatch; + uint32 lastValue; + uint8 okToAutoHide; }; struct iSndInfo { - uint32 flags; - iSndVol vol; - int32 lastStreamBuffer; + uint32 flags; + iSndVol vol; + int32 lastStreamBuffer; }; struct color_type { - uint8 r; - uint8 g; - uint8 b; - uint8 a; + uint8 r; + uint8 g; + uint8 b; + uint8 a; }; struct xMemPool { - void* FreeList; - uint16 NextOffset; - uint16 Flags; - void* UsedList; - void(*InitCB)(xMemPool*, void*); - void* Buffer; - uint16 Size; - uint16 NumRealloc; - uint32 Total; + void* FreeList; + uint16 NextOffset; + uint16 Flags; + void* UsedList; + void (*InitCB)(xMemPool*, void*); + void* Buffer; + uint16 Size; + uint16 NumRealloc; + uint32 Total; }; struct xCutsceneMgrAsset : xBaseAsset { - uint32 cutsceneAssetID; - uint32 flags; - float32 interpSpeed; - uint32 uSubtitlesID; - float32 startTime[15]; - float32 endTime[15]; - uint32 emitID[15]; + uint32 cutsceneAssetID; + uint32 flags; + float32 interpSpeed; + uint32 uSubtitlesID; + float32 startTime[15]; + float32 endTime[15]; + uint32 emitID[15]; }; struct tweak_callback { - void(*on_change)(tweak_info&); - void(*on_select)(tweak_info&); - void(*on_unselect)(tweak_info&); - void(*on_start_edit)(tweak_info&); - void(*on_stop_edit)(tweak_info&); - void(*on_expand)(tweak_info&); - void(*on_collapse)(tweak_info&); - void(*on_update)(tweak_info&); - void(*convert_mem_to_tweak)(tweak_info&, void*); - void(*convert_tweak_to_mem)(tweak_info&, void*); + void (*on_change)(tweak_info&); + void (*on_select)(tweak_info&); + void (*on_unselect)(tweak_info&); + void (*on_start_edit)(tweak_info&); + void (*on_stop_edit)(tweak_info&); + void (*on_expand)(tweak_info&); + void (*on_collapse)(tweak_info&); + void (*on_update)(tweak_info&); + void (*convert_mem_to_tweak)(tweak_info&, void*); + void (*convert_tweak_to_mem)(tweak_info&, void*); }; struct _anon20 @@ -5291,104 +5297,104 @@ struct _anon20 struct iSndFileInfo { - iSndHandle ID; - uint32 assetID; - uint16 sample_rate; - uint8 is_streamed; - uint8 is_looped; - union - { - _class_7 nonstream; - _class_11 stream; - }; + iSndHandle ID; + uint32 assetID; + uint16 sample_rate; + uint8 is_streamed; + uint8 is_looped; + union + { + _class_7 nonstream; + _class_11 stream; + }; }; struct RpTriangle { - uint16 vertIndex[3]; - uint16 matIndex; + uint16 vertIndex[3]; + uint16 matIndex; }; struct zDestructibleStateFXList { - uint32 nfx; - zDestructibleStateFXParams* fxParams; + uint32 nfx; + zDestructibleStateFXParams* fxParams; }; struct entry_data { - union - { - entry_data* next_free_entry; - void* value; - }; - int32 type; - uint16 searchid; - uint16 owner_size; - uint16 owner[4]; + union + { + entry_data* next_free_entry; + void* value; + }; + int32 type; + uint16 searchid; + uint16 owner_size; + uint16 owner[4]; }; enum xSndEffect { - xSndEffect_NONE, - xSndEffect_CAVE, - xSndEffect_MAX_TYPES + xSndEffect_NONE, + xSndEffect_CAVE, + xSndEffect_MAX_TYPES }; struct RpMaterial { - RwTexture* texture; - RwRGBA color; - RxPipeline* pipeline; - RwSurfaceProperties surfaceProps; - int16 refCount; - int16 pad; + RwTexture* texture; + RwRGBA color; + RxPipeline* pipeline; + RwSurfaceProperties surfaceProps; + int16 refCount; + int16 pad; }; struct RpMeshHeader { - uint32 flags; - uint16 numMeshes; - uint16 serialNum; - uint32 totalIndicesInMesh; - uint32 firstMeshOffset; + uint32 flags; + uint16 numMeshes; + uint16 serialNum; + uint32 totalIndicesInMesh; + uint32 firstMeshOffset; }; enum _tagPadState { - ePad_Disabled, - ePad_DisabledError, - ePad_Enabled, - ePad_Missing, - ePad_Total + ePad_Disabled, + ePad_DisabledError, + ePad_Enabled, + ePad_Missing, + ePad_Total }; enum xCamOrientType { - XCAM_ORIENT_INVALID = 0xffffffff, - XCAM_ORIENT_QUAT, - XCAM_ORIENT_EULER, - XCAM_ORIENT_MAX + XCAM_ORIENT_INVALID = 0xffffffff, + XCAM_ORIENT_QUAT, + XCAM_ORIENT_EULER, + XCAM_ORIENT_MAX }; struct iEnvMatOrder { - uint16 jspIndex; - uint16 nodeIndex; - int32 matGroup; - RpAtomic* atomic; - xJSPNodeInfo* nodeInfo; + uint16 jspIndex; + uint16 nodeIndex; + int32 matGroup; + RpAtomic* atomic; + xJSPNodeInfo* nodeInfo; }; struct RxNodeMethods { - int32(*nodeBody)(RxPipelineNode*, RxPipelineNodeParam*); - int32(*nodeInit)(RxNodeDefinition*); - void(*nodeTerm)(RxNodeDefinition*); - int32(*pipelineNodeInit)(RxPipelineNode*); - void(*pipelineNodeTerm)(RxPipelineNode*); - int32(*pipelineNodeConfig)(RxPipelineNode*, RxPipeline*); - uint32(*configMsgHandler)(RxPipelineNode*, uint32, uint32, void*); + int32 (*nodeBody)(RxPipelineNode*, RxPipelineNodeParam*); + int32 (*nodeInit)(RxNodeDefinition*); + void (*nodeTerm)(RxNodeDefinition*); + int32 (*pipelineNodeInit)(RxPipelineNode*); + void (*pipelineNodeTerm)(RxPipelineNode*); + int32 (*pipelineNodeConfig)(RxPipelineNode*, RxPipeline*); + uint32 (*configMsgHandler)(RxPipelineNode*, uint32, uint32, void*); }; struct _anon21 @@ -5397,54 +5403,54 @@ struct _anon21 struct zAnimFxSoundGroup { - uint32 ID; - uint8 count; + uint32 ID; + uint8 count; }; enum RwCameraProjection { - rwNACAMERAPROJECTION, - rwPERSPECTIVE, - rwPARALLEL, - rwCAMERAPROJECTIONFORCEENUMSIZEINT = 0x7fffffff + rwNACAMERAPROJECTION, + rwPERSPECTIVE, + rwPARALLEL, + rwCAMERAPROJECTIONFORCEENUMSIZEINT = 0x7fffffff }; struct tier_queue { - uint32 first; - uint32 _size; - uint32 wrap_mask; - tier_queue_allocator* alloc; - uint8 blocks[32]; + uint32 first; + uint32 _size; + uint32 wrap_mask; + tier_queue_allocator* alloc; + uint8 blocks[32]; }; struct _class_9 { - uint8 visible; - uint8 enabled; - uint8 active; - float32 timer; + uint8 visible; + uint8 enabled; + uint8 active; + float32 timer; }; struct xVec2 { - float32 x; - float32 y; + float32 x; + float32 y; }; enum _tagPadInit { - ePadInit_Open1, - ePadInit_WaitStable2, - ePadInit_EnableAnalog3, - ePadInit_EnableAnalog3LetsAllPissOffChris, - ePadInit_EnableRumble4, - ePadInit_EnableRumbleTest5, - ePadInit_PressureS6, - ePadInit_PressureSTest7, - ePadInit_Complete8a, - ePadInit_Complete8b, - ePadInit_Finished9 + ePadInit_Open1, + ePadInit_WaitStable2, + ePadInit_EnableAnalog3, + ePadInit_EnableAnalog3LetsAllPissOffChris, + ePadInit_EnableRumble4, + ePadInit_EnableRumbleTest5, + ePadInit_PressureS6, + ePadInit_PressureSTest7, + ePadInit_Complete8a, + ePadInit_Complete8b, + ePadInit_Finished9 }; struct Screen @@ -5453,61 +5459,61 @@ struct Screen struct RwResEntry { - RwLLLink link; - int32 size; - void* owner; - RwResEntry** ownerRef; - void(*destroyNotify)(RwResEntry*); + RwLLLink link; + int32 size; + void* owner; + RwResEntry** ownerRef; + void (*destroyNotify)(RwResEntry*); }; struct widget { - _class_9 flag; - render_context rc; - render_context start_rc; - asset* a; - _enum_2 activity; - motive_node* _motive_top; - motive_node* _motive_temp; - motive_node** _motive_temp_tail; + _class_9 flag; + render_context rc; + render_context start_rc; + asset* a; + _enum_2 activity; + motive_node* _motive_top; + motive_node* _motive_temp; + motive_node** _motive_temp_tail; }; struct _class_10 { - union - { - xVec3 cart; - xCamCoordCylinder cylinder; - xCamCoordSphere sphere; - }; + union + { + xVec3 cart; + xCamCoordCylinder cylinder; + xCamCoordSphere sphere; + }; }; struct jot { - substr s; - _class_4 flag; - uint16 context_size; - void* context; - basic_rect bounds; - basic_rect render_bounds; - callback* cb; - tag_type* tag; + substr s; + _class_4 flag; + uint16 context_size; + void* context; + basic_rect bounds; + basic_rect render_bounds; + callback* cb; + tag_type* tag; }; struct _class_11 { - int32 file_index; - uint32 lsn; - uint32 data_size; - uint16 stream_interleave_size; - uint16 stream_interleave_count; + int32 file_index; + uint32 lsn; + uint32 data_size; + uint16 stream_interleave_size; + uint16 stream_interleave_count; }; struct xPEVCyl { - float32 height; - float32 radius; - float32 deflection; + float32 height; + float32 radius; + float32 deflection; }; struct zAssetPickup @@ -5516,31 +5522,31 @@ struct zAssetPickup struct NMECfgCommon { - Damage damage; - Physics physics; - Movement movement; + Damage damage; + Physics physics; + Movement movement; }; struct BarMeter : hud_element { - model_widget* bar; - model_widget* barNotch; - font_meter_widget* barMeter; - float32 sizeOfActualBar; - xVec3 notchLocation; - xVec3 fontLocation; - text_widget* minValueText; - text_widget* maxValueText; - TextureScroller* textureScroller; - widget* barPartsWidgets[5]; - xLightKit* hudLightKit; - uint32 defaultMinValue; - uint32 defaultMaxValue; - uint32* valueToWatch; - uint32* minValueToWatch; - uint32* maxValueToWatch; - uint32 lastValue; - uint8 firstTimeUpdate; + model_widget* bar; + model_widget* barNotch; + font_meter_widget* barMeter; + float32 sizeOfActualBar; + xVec3 notchLocation; + xVec3 fontLocation; + text_widget* minValueText; + text_widget* maxValueText; + TextureScroller* textureScroller; + widget* barPartsWidgets[5]; + xLightKit* hudLightKit; + uint32 defaultMinValue; + uint32 defaultMaxValue; + uint32* valueToWatch; + uint32* minValueToWatch; + uint32* maxValueToWatch; + uint32 lastValue; + uint8 firstTimeUpdate; }; struct _anon22 @@ -5549,70 +5555,70 @@ struct _anon22 struct _class_12 { - xVec3 endPoint[2]; - xVec3 endPointB; - xVec3 direction; - float32 length; - float32 scale; - float32 width; - float32 endParam[2]; - float32 endVel[2]; - float32 paramSpan[2]; + xVec3 endPoint[2]; + xVec3 endPointB; + xVec3 direction; + float32 length; + float32 scale; + float32 width; + float32 endParam[2]; + float32 endVel[2]; + float32 paramSpan[2]; }; struct RwObjectHasFrame { - RwObject object; - RwLLLink lFrame; - RwObjectHasFrame*(*sync)(RwObjectHasFrame*); + RwObject object; + RwLLLink lFrame; + RwObjectHasFrame* (*sync)(RwObjectHasFrame*); }; struct xSndGlobals { - xSndVoiceInfo voice[96]; - xMat4x3 listenerMat[2]; - xVec3 listenerVel[2]; - xVec3 right; - xVec3 up; - xVec3 at; - xVec3 pos; - xVec3 velocity; - uint32 m_uSndMgrFlags; - xSndMode sndMode; - uint32 SndCount; - xSndListener listenerMode; + xSndVoiceInfo voice[96]; + xMat4x3 listenerMat[2]; + xVec3 listenerVel[2]; + xVec3 right; + xVec3 up; + xVec3 at; + xVec3 pos; + xVec3 velocity; + uint32 m_uSndMgrFlags; + xSndMode sndMode; + uint32 SndCount; + xSndListener listenerMode; }; struct render_context { - xVec3 loc; - xVec3 size; - xVec3 rot; - float32 r; - float32 g; - float32 b; - float32 a; + xVec3 loc; + xVec3 size; + xVec3 rot; + float32 r; + float32 g; + float32 b; + float32 a; }; enum rxEmbeddedPacketState { - rxPKST_PACKETLESS, - rxPKST_UNUSED, - rxPKST_INUSE, - rxPKST_PENDING, - rxEMBEDDEDPACKETSTATEFORCEENUMSIZEINT = 0x7fffffff + rxPKST_PACKETLESS, + rxPKST_UNUSED, + rxPKST_INUSE, + rxPKST_PENDING, + rxEMBEDDEDPACKETSTATEFORCEENUMSIZEINT = 0x7fffffff }; struct zNMENavNet { - zMovePoint* nav_past; - zMovePoint* nav_curr; - zMovePoint* nav_dest; - zMovePoint* nav_lead; - xSpline3* spl_mvptspline; - float32 len_mvptspline; - float32 dst_curspline; - zNMECommon* nme_owner; + zMovePoint* nav_past; + zMovePoint* nav_curr; + zMovePoint* nav_dest; + zMovePoint* nav_lead; + xSpline3* spl_mvptspline; + float32 len_mvptspline; + float32 dst_curspline; + zNMECommon* nme_owner; }; struct _anon23 @@ -5625,132 +5631,132 @@ struct _anon24 struct xCutscene { - xCutsceneInfo* Info; - xCutsceneData* Data; - uint32* TimeChunkOffs; - uint32* Visibility; - xCutsceneBreak* BreakList; - xCutsceneTime* Play; - xCutsceneTime* Stream; - uint32 Waiting; - uint32 BadReadPause; - float32 BadReadSpeed; - void* RawBuf; - void* AlignBuf; - float32 Time; - float32 CamTime; - uint32 PlayIndex; - uint32 Ready; - int32 DataLoading; - uint32 GotData; - uint32 ShutDownWait; - float32 PlaybackSpeed; - uint32 Opened; - tag_xFile File; - int32 AsyncID; - void* MemBuf; - void* MemCurr; - uint32 SndStarted; - uint32 SndNumChannel; - uint32 SndChannelReq[2]; - uint32 SndAssetID[2]; - iSndHandle SndHandle[2]; - uint32 SubTitlesID; - XCSNNosey* cb_nosey; - xCutsceneModelHack* ModelHack; - uint8 started; - uint8 useDefaultTrack; - uint32 useDefaultTrackID; + xCutsceneInfo* Info; + xCutsceneData* Data; + uint32* TimeChunkOffs; + uint32* Visibility; + xCutsceneBreak* BreakList; + xCutsceneTime* Play; + xCutsceneTime* Stream; + uint32 Waiting; + uint32 BadReadPause; + float32 BadReadSpeed; + void* RawBuf; + void* AlignBuf; + float32 Time; + float32 CamTime; + uint32 PlayIndex; + uint32 Ready; + int32 DataLoading; + uint32 GotData; + uint32 ShutDownWait; + float32 PlaybackSpeed; + uint32 Opened; + tag_xFile File; + int32 AsyncID; + void* MemBuf; + void* MemCurr; + uint32 SndStarted; + uint32 SndNumChannel; + uint32 SndChannelReq[2]; + uint32 SndAssetID[2]; + iSndHandle SndHandle[2]; + uint32 SubTitlesID; + XCSNNosey* cb_nosey; + xCutsceneModelHack* ModelHack; + uint8 started; + uint8 useDefaultTrack; + uint32 useDefaultTrackID; }; struct ShadowRadii { - float32 rad_noShadow; - float32 rad_complexShadow; + float32 rad_noShadow; + float32 rad_complexShadow; }; struct _class_13 { - int32 value_def; - int32 value_min; - int32 value_max; + int32 value_def; + int32 value_min; + int32 value_max; }; enum en_SOAK_DIR { - SOAK_FOR, - SOAK_BACK, - SOAK_RAND, - SOAK_NOMORE, - SOAK_FORCE = 0x7fffffff + SOAK_FOR, + SOAK_BACK, + SOAK_RAND, + SOAK_NOMORE, + SOAK_FORCE = 0x7fffffff }; struct xGlobals { - xCamera oldSkoolCamera; - xCamGroup* cam; - xCamScreen* screen; - xVec4 frustplane[12]; - _tagxPad* pad0; - _tagxPad* pad1; - _tagxPad* pad2; - _tagxPad* pad3; - _tagxPad* pad[4]; - int32 profile; - int8 profFunc[128][6]; - xUpdateCullMgr* updateMgr; - int32 sceneFirst; - int8 sceneStart[32]; - RpWorld* currWorld; - iFogParams fog; - iFogParams fogA; - iFogParams fogB; - long32 fog_t0; - long32 fog_t1; - int32 option_vibration; - int32 option_subtitles; - uint32 slowdown; - float32 update_dt; - int16 ForceCinematic; - int16 ForceAllCinematics; - int32 useHIPHOP; - uint8 NoMusic; - uint8 NoCutscenes; - uint8 NoPadCheck; - int8 currentActivePad; - uint8 firstStartPressed; - uint8 fromLauncher; - uint8 FlashWIP; - uint8 inLoadingScreen; - uint8 LoadingScene; - uint8 InitializingLoadingScreen; - uint8 ForceMono; - uint32 minVSyncCnt; - uint8 dontShowPadMessageDuringLoadingOrCutScene; - uint8 autoSaveFeature; - int32 asyncLoadingScreen; - int32 asyncLoadingFlags; - int8 fromLauncherUser[32]; - zPlayer* ___player_ent_dont_use_directly; - zScene* sceneCur; - zScene* scenePreload; - PS2DemoGlobals* PS2demo; - int8 watermark[127]; - uint8 watermarkAlpha; - float32 watermarkSize; + xCamera oldSkoolCamera; + xCamGroup* cam; + xCamScreen* screen; + xVec4 frustplane[12]; + _tagxPad* pad0; + _tagxPad* pad1; + _tagxPad* pad2; + _tagxPad* pad3; + _tagxPad* pad[4]; + int32 profile; + int8 profFunc[128][6]; + xUpdateCullMgr* updateMgr; + int32 sceneFirst; + int8 sceneStart[32]; + RpWorld* currWorld; + iFogParams fog; + iFogParams fogA; + iFogParams fogB; + long32 fog_t0; + long32 fog_t1; + int32 option_vibration; + int32 option_subtitles; + uint32 slowdown; + float32 update_dt; + int16 ForceCinematic; + int16 ForceAllCinematics; + int32 useHIPHOP; + uint8 NoMusic; + uint8 NoCutscenes; + uint8 NoPadCheck; + int8 currentActivePad; + uint8 firstStartPressed; + uint8 fromLauncher; + uint8 FlashWIP; + uint8 inLoadingScreen; + uint8 LoadingScene; + uint8 InitializingLoadingScreen; + uint8 ForceMono; + uint32 minVSyncCnt; + uint8 dontShowPadMessageDuringLoadingOrCutScene; + uint8 autoSaveFeature; + int32 asyncLoadingScreen; + int32 asyncLoadingFlags; + int8 fromLauncherUser[32]; + zPlayer* ___player_ent_dont_use_directly; + zScene* sceneCur; + zScene* scenePreload; + PS2DemoGlobals* PS2demo; + int8 watermark[127]; + uint8 watermarkAlpha; + float32 watermarkSize; }; struct xSoundFX : xBase { - xSoundFXAsset* asset; - iSndHandle sndHandle; - float32 cachedOuterDistSquared; + xSoundFXAsset* asset; + iSndHandle sndHandle; + float32 cachedOuterDistSquared; }; struct xQuat { - xVec3 v; - float32 s; + xVec3 v; + float32 s; }; struct _anon25 @@ -5759,101 +5765,101 @@ struct _anon25 struct hud_element : xBase { - hud_element* _next; + hud_element* _next; }; struct xDestructibleAssetAttachedAnimList { - uint32 nanimations; - uint32* animationIDs; + uint32 nanimations; + uint32* animationIDs; }; struct xMarkerAsset { - xVec3 pos; + xVec3 pos; }; struct xEntMechData { - xBound original_bound; - xVec3 original_position; - xVec3 destination_position; - xVec3 direction; - float32 original_rotation; - float32 destination_rotation; - float32 sliding_speed; - float32 rotation_speed; - int32 state; - float32 sliding_forth_decel_time; - float32 rotation_forth_decel_time; - float32 sliding_back_decel_time; - float32 rotating_back_decel_time; - float32 scale_speed; - float32 current_scale; - float32* entity_rotation_angle; + xBound original_bound; + xVec3 original_position; + xVec3 destination_position; + xVec3 direction; + float32 original_rotation; + float32 destination_rotation; + float32 sliding_speed; + float32 rotation_speed; + int32 state; + float32 sliding_forth_decel_time; + float32 rotation_forth_decel_time; + float32 sliding_back_decel_time; + float32 rotating_back_decel_time; + float32 scale_speed; + float32 current_scale; + float32* entity_rotation_angle; }; struct zUIImage : zUI { - ImageState currentImage; - ImageState startMovementImage; - xTextureHandle texture; + ImageState currentImage; + ImageState startMovementImage; + xTextureHandle texture; }; struct xEntMotionPenData { - uint8 flags; - uint8 plane; - uint8 pad[2]; - float32 len; - float32 range; - float32 period; - float32 phase; + uint8 flags; + uint8 plane; + uint8 pad[2]; + float32 len; + float32 range; + float32 period; + float32 phase; }; struct RwSurfaceProperties { - float32 ambient; - float32 specular; - float32 diffuse; + float32 ambient; + float32 specular; + float32 diffuse; }; enum en_typeSplash { - NMEC_SPLASH_WATER, - NMEC_SPLASH_CHOCOLATE, - NMEC_SPLASH_LAVA, - NMEC_SPLASH_BILE, - NMEC_SPLASH_OIL, - NMEC_SPLASH_HOTSAUCE, - NMEC_SPLASH_NUKEGOO, - NMEC_SPLASH_NOMORE + NMEC_SPLASH_WATER, + NMEC_SPLASH_CHOCOLATE, + NMEC_SPLASH_LAVA, + NMEC_SPLASH_BILE, + NMEC_SPLASH_OIL, + NMEC_SPLASH_HOTSAUCE, + NMEC_SPLASH_NUKEGOO, + NMEC_SPLASH_NOMORE }; struct xCamOrientEuler { - float32 yaw; - float32 pitch; - float32 roll; + float32 yaw; + float32 pitch; + float32 roll; }; struct asset_type_2 : xDynAsset { - uint32 text; - basic_rect bounds; - uint32 font; - _class_14 size; - _class_18 space; - color_type color; - _class_21 inset; - _enum_3 xjustify; - _enum_0 yjustify; - _enum_1 expand; - float32 max_height; - _class_5 backdrop; - color_type shadowColor; - float32 shadowOffsetX; - float32 shadowOffsetY; + uint32 text; + basic_rect bounds; + uint32 font; + _class_14 size; + _class_18 space; + color_type color; + _class_21 inset; + _enum_3 xjustify; + _enum_0 yjustify; + _enum_1 expand; + float32 max_height; + _class_5 backdrop; + color_type shadowColor; + float32 shadowOffsetX; + float32 shadowOffsetY; }; struct RyzMemData @@ -5866,136 +5872,136 @@ struct _anon26 struct _tagTRCPadInfo : _tagiTRCPadInfo { - int32 id; - _tagTRCState state; + int32 id; + _tagTRCState state; }; enum eFMVFile { - eFMVFile_NoMovie, - eFMVFile_HeavyIronLOGO, - eFMVFile_NickLOGO = 0x4, - eFMVFile_THQLOGO, - eFMVFile_AttractMode, - eFMVFile_NickMovieLOGO, - eFMVFile_OXMESRB, - eFMVFile_Pwr_SB_Bash1 = 0x14, - eFMVFile_Pwr_SB_Bowl1, - eFMVFile_Pwr_SB_Guitar1, - eFMVFile_Pwr_Pat_Cartwheel1, - eFMVFile_Pwr_Pat_Bellyflop1, - eFMVFile_Pwr_Pat_Throw1, - eFMVFile_Pwr_SB_Karate2, - eFMVFile_Pwr_SB_Bash2, - eFMVFile_Pwr_SB_Bowl2, - eFMVFile_Pwr_SB_Guitar2, - eFMVFile_Pwr_SB_Health4, - eFMVFile_Pwr_SB_Health5, - eFMVFile_Pwr_SB_Health6, - eFMVFile_Pwr_Pat_Spin2, - eFMVFile_Pwr_Pat_Cartwheel2, - eFMVFile_Pwr_Pat_Bellyflop2, - eFMVFile_Pwr_Pat_Throw2, - eFMVFile_Pwr_Pat_Health4, - eFMVFile_Pwr_Pat_Health5, - eFMVFile_Pwr_Pat_Health6, - eFMVFile_Story1 = 0x32, - eFMVFile_Story2, - eFMVFile_Story3, - eFMVFile_Story4, - eFMVFile_Story5, - eFMVFile_Story6, - eFMVFile_Story7, - eFMVFile_Story8, - eFMVFile_Story9, - eFMVFile_Story10, - eFMVFile_Story11, - eFMVFile_Story12, - eFMVFile_Promo1 = 0x46, - eFMVFile_Promo2, - eFMVFile_Promo3, - eFMVFile_Promo4, - eFMVFile_Promo5, - eFMVFile_Promo6, - eFMVFile_Making_Of = 0x50, - eFMVFile_Trailer1, - eFMVFile_Trailer2, - eFMVFile_Trailer3, - eFMVFile_Pwr_Wagon = 0x64, - eFMVFileCount + eFMVFile_NoMovie, + eFMVFile_HeavyIronLOGO, + eFMVFile_NickLOGO = 0x4, + eFMVFile_THQLOGO, + eFMVFile_AttractMode, + eFMVFile_NickMovieLOGO, + eFMVFile_OXMESRB, + eFMVFile_Pwr_SB_Bash1 = 0x14, + eFMVFile_Pwr_SB_Bowl1, + eFMVFile_Pwr_SB_Guitar1, + eFMVFile_Pwr_Pat_Cartwheel1, + eFMVFile_Pwr_Pat_Bellyflop1, + eFMVFile_Pwr_Pat_Throw1, + eFMVFile_Pwr_SB_Karate2, + eFMVFile_Pwr_SB_Bash2, + eFMVFile_Pwr_SB_Bowl2, + eFMVFile_Pwr_SB_Guitar2, + eFMVFile_Pwr_SB_Health4, + eFMVFile_Pwr_SB_Health5, + eFMVFile_Pwr_SB_Health6, + eFMVFile_Pwr_Pat_Spin2, + eFMVFile_Pwr_Pat_Cartwheel2, + eFMVFile_Pwr_Pat_Bellyflop2, + eFMVFile_Pwr_Pat_Throw2, + eFMVFile_Pwr_Pat_Health4, + eFMVFile_Pwr_Pat_Health5, + eFMVFile_Pwr_Pat_Health6, + eFMVFile_Story1 = 0x32, + eFMVFile_Story2, + eFMVFile_Story3, + eFMVFile_Story4, + eFMVFile_Story5, + eFMVFile_Story6, + eFMVFile_Story7, + eFMVFile_Story8, + eFMVFile_Story9, + eFMVFile_Story10, + eFMVFile_Story11, + eFMVFile_Story12, + eFMVFile_Promo1 = 0x46, + eFMVFile_Promo2, + eFMVFile_Promo3, + eFMVFile_Promo4, + eFMVFile_Promo5, + eFMVFile_Promo6, + eFMVFile_Making_Of = 0x50, + eFMVFile_Trailer1, + eFMVFile_Trailer2, + eFMVFile_Trailer3, + eFMVFile_Pwr_Wagon = 0x64, + eFMVFileCount }; struct _class_14 { - float32 width; - float32 height; + float32 width; + float32 height; }; struct ManlinessMeter : BarMeter { - model_widget* upgradeIcon; - text_widget* manlinessPointsComboText; - text_widget* manlinessPointsComboPointsText; - uint32 lastManlinessPoints; - uint32 minManlinessPoints; - uint32 maxManlinessPoints; - uint32 lastMaxManlinessPoints; - uint32 lastUnusedSkillPoints; - uint8 firstTimeUpdate; - int8 nextUpgrade[16]; - widget* widgets[8]; - TextureScroller manlinessTextureScroller; - iSndHandle upgradeSound; - iSndGroupHandle upgradeSoundGroupHandle; + model_widget* upgradeIcon; + text_widget* manlinessPointsComboText; + text_widget* manlinessPointsComboPointsText; + uint32 lastManlinessPoints; + uint32 minManlinessPoints; + uint32 maxManlinessPoints; + uint32 lastMaxManlinessPoints; + uint32 lastUnusedSkillPoints; + uint8 firstTimeUpdate; + int8 nextUpgrade[16]; + widget* widgets[8]; + TextureScroller manlinessTextureScroller; + iSndHandle upgradeSound; + iSndGroupHandle upgradeSoundGroupHandle; }; struct unit_meter_widget : meter_widget { - unit_meter_asset res; - xModelInstance* model[2][6]; - float32 anim_time; + unit_meter_asset res; + xModelInstance* model[2][6]; + float32 anim_time; }; struct tag_iFile { - uint32 flags; - int8 path[128]; - int32 fd; - int32 offset; - int32 length; + uint32 flags; + int8 path[128]; + int32 fd; + int32 offset; + int32 length; }; struct tri_data_0 { - uint32 index; - float32 r; - float32 d; + uint32 index; + float32 r; + float32 d; }; struct RxPipelineNode { - RxNodeDefinition* nodeDef; - uint32 numOutputs; - uint32* outputs; - RxPipelineCluster** slotClusterRefs; - uint32* slotsContinue; - void* privateData; - uint32* inputToClusterSlot; - RxPipelineNodeTopSortData* topSortData; - void* initializationData; - uint32 initializationDataSize; + RxNodeDefinition* nodeDef; + uint32 numOutputs; + uint32* outputs; + RxPipelineCluster** slotClusterRefs; + uint32* slotsContinue; + void* privateData; + uint32* inputToClusterSlot; + RxPipelineNodeTopSortData* topSortData; + void* initializationData; + uint32 initializationDataSize; }; struct _tagPadAnalog { - int8 x; - int8 y; + int8 x; + int8 y; }; struct PowerUpMovieTableEntry { - int32 powerup; - eFMVFile level[3]; + int32 powerup; + eFMVFile level[3]; }; struct xParGroup @@ -6004,45 +6010,45 @@ struct xParGroup enum _tagGameVidMode { - eGameVidModeNTSC, - eGameVidModePAL + eGameVidModeNTSC, + eGameVidModePAL }; struct xEntOrbitData { - xVec3 orig; - xVec3 c; - float32 a; - float32 b; - float32 p; - float32 w; + xVec3 orig; + xVec3 c; + float32 a; + float32 b; + float32 p; + float32 w; }; struct zLassoGuideList { - xEnt* target; - uint32 numGuides; - zLassoGuide guide[3]; + xEnt* target; + uint32 numGuides; + zLassoGuide guide[3]; }; struct xEntDrive { - uint32 flags; - float32 otm; - float32 otmr; - float32 os; - float32 tm; - float32 tmr; - float32 s; - xEnt* old_driver; - xEnt* driver; - xEnt* driven; - xVec3 driven_pos_in_old_driver; - xVec3 driven_pos_in_driver; - xVec3 last_driven_pos; - float32 yaw_in_driver; - xVec3 dloc; - tri_data_1 tri; + uint32 flags; + float32 otm; + float32 otmr; + float32 os; + float32 tm; + float32 tmr; + float32 s; + xEnt* old_driver; + xEnt* driver; + xEnt* driven; + xVec3 driven_pos_in_old_driver; + xVec3 driven_pos_in_driver; + xVec3 last_driven_pos; + float32 yaw_in_driver; + xVec3 dloc; + tri_data_1 tri; }; struct _anon27 @@ -6051,49 +6057,49 @@ struct _anon27 struct xEntMotionERData { - xVec3 ret_pos; - xVec3 ext_dpos; - float32 ext_tm; - float32 ext_wait_tm; - float32 ret_tm; - float32 ret_wait_tm; + xVec3 ret_pos; + xVec3 ext_dpos; + float32 ext_tm; + float32 ext_wait_tm; + float32 ret_tm; + float32 ret_wait_tm; }; struct xSndVoiceInfo { - union - { - xSndGroup* soundGroup; - iSndGroupHandle soundGroupHandle; - }; - uint32 assetID; - iSndHandle sndUniqueID; - xEnt* pParent; - xVec3* pPosition; - uint32 flags; - float32 vol; - float32 xpitch; - float32 dopplerFreqCoef; - int16 category; - uint8 bformerlyAPartOfPriority; - uint8 priority; - xVec3 actualPos; - xVec3 playPos; - xVec3* pVelocity; - xVec3 actualVelocity; - float32 distToListener; - float32 innerRadius; - float32 outerRadius; - iSndInfo ps; - iSndFileInfo* pSndFileInfo; + union + { + xSndGroup* soundGroup; + iSndGroupHandle soundGroupHandle; + }; + uint32 assetID; + iSndHandle sndUniqueID; + xEnt* pParent; + xVec3* pPosition; + uint32 flags; + float32 vol; + float32 xpitch; + float32 dopplerFreqCoef; + int16 category; + uint8 bformerlyAPartOfPriority; + uint8 priority; + xVec3 actualPos; + xVec3 playPos; + xVec3* pVelocity; + xVec3 actualVelocity; + float32 distToListener; + float32 innerRadius; + float32 outerRadius; + iSndInfo ps; + iSndFileInfo* pSndFileInfo; }; struct split_tag { - substr tag; - substr name; - substr action; - substr value; + substr tag; + substr name; + substr action; + substr value; }; struct _anon28 @@ -6110,31 +6116,31 @@ struct _anon30 struct iEnv { - RpWorld* world; - RpWorld* collision; - RpWorld* fx; - RpWorld* camera; - int32 jsp_count; - uint32* jsp_aid; - xJSPHeader** jsp_list; - xBox* jsp_bound; - int32* jsp_visibilityCount; - int32 jspMatOrderCount; - iEnvMatOrder* jspMatOrderList; - RpLight* light[2]; - RwFrame* light_frame[2]; - int32 memlvl; - uint16 numOpaque; - uint16 numTransparent; + RpWorld* world; + RpWorld* collision; + RpWorld* fx; + RpWorld* camera; + int32 jsp_count; + uint32* jsp_aid; + xJSPHeader** jsp_list; + xBox* jsp_bound; + int32* jsp_visibilityCount; + int32 jspMatOrderCount; + iEnvMatOrder* jspMatOrderList; + RpLight* light[2]; + RwFrame* light_frame[2]; + int32 memlvl; + uint16 numOpaque; + uint16 numTransparent; }; struct _class_15 { - union - { - xQuat quat; - xCamOrientEuler euler; - }; + union + { + xQuat quat; + xCamOrientEuler euler; + }; }; struct _anon31 @@ -6143,65 +6149,65 @@ struct _anon31 struct xPEEntBone { - uint8 flags; - uint8 type; - uint8 bone; - uint8 pad1; - xVec3 offset; - float32 radius; - float32 deflection; + uint8 flags; + uint8 type; + uint8 bone; + uint8 pad1; + xVec3 offset; + float32 radius; + float32 deflection; }; struct xtextbox { - xfont font; - basic_rect bounds; - uint32 flags; - float32 line_space; - float32 tab_stop; - float32 left_indent; - float32 right_indent; - callback* cb; - void* context; - int8** texts; - uint32* text_sizes; - uint32 texts_size; - substr text; - uint32 text_hash; + xfont font; + basic_rect bounds; + uint32 flags; + float32 line_space; + float32 tab_stop; + float32 left_indent; + float32 right_indent; + callback* cb; + void* context; + int8** texts; + uint32* text_sizes; + uint32 texts_size; + substr text; + uint32 text_hash; }; struct xCutsceneBreak { - float32 Time; - int32 Index; + float32 Time; + int32 Index; }; struct zMusicState { - uint32 uMusicDefault; - uint32 uMusicRestart; - uint8 bPaused; + uint32 uMusicDefault; + uint32 uMusicRestart; + uint8 bPaused; }; enum en_pendtype { - PEND_TRAN_NONE, - PEND_TRAN_SET, - PEND_TRAN_PUSH, - PEND_TRAN_POP, - PEND_TRAN_POPTO, - PEND_TRAN_POPALL, - PEND_TRAN_SWAP, - PEND_TRAN_INPROG, - PEND_TRAN_NOMORE + PEND_TRAN_NONE, + PEND_TRAN_SET, + PEND_TRAN_PUSH, + PEND_TRAN_POP, + PEND_TRAN_POPTO, + PEND_TRAN_POPALL, + PEND_TRAN_SWAP, + PEND_TRAN_INPROG, + PEND_TRAN_NOMORE }; enum _enum_2 { - ACT_NONE, - ACT_SHOW, - ACT_HIDE, - MAX_ACT + ACT_NONE, + ACT_SHOW, + ACT_HIDE, + MAX_ACT }; struct _anon32 @@ -6210,45 +6216,45 @@ struct _anon32 struct xSimpleObjAsset { - float32 animSpeed; - uint32 initAnimState; - uint8 collType; - uint8 flags; + float32 animSpeed; + uint32 initAnimState; + uint8 collType; + uint8 flags; }; struct zRewardsQ { - uint8 active; - int32 numRewards; - xVec3 spawnPos; + uint8 active; + int32 numRewards; + xVec3 spawnPos; }; struct callback { - void(*render)(jot&, xtextbox&, float32, float32); - void(*layout_update)(jot&, xtextbox&, xtextbox&); - void(*render_update)(jot&, xtextbox&, xtextbox&); + void (*render)(jot&, xtextbox&, float32, float32); + void (*layout_update)(jot&, xtextbox&, xtextbox&); + void (*render_update)(jot&, xtextbox&, xtextbox&); }; struct iSndVol { - int16 volL; - int16 volR; + int16 volL; + int16 volR; }; enum RpWorldRenderOrder { - rpWORLDRENDERNARENDERORDER, - rpWORLDRENDERFRONT2BACK, - rpWORLDRENDERBACK2FRONT, - rpWORLDRENDERORDERFORCEENUMSIZEINT = 0x7fffffff + rpWORLDRENDERNARENDERORDER, + rpWORLDRENDERFRONT2BACK, + rpWORLDRENDERBACK2FRONT, + rpWORLDRENDERORDERFORCEENUMSIZEINT = 0x7fffffff }; struct model_info { - uint32 id; - xVec3 loc; - xVec3 size; + uint32 id; + xVec3 loc; + xVec3 size; }; struct _anon33 @@ -6257,15 +6263,15 @@ struct _anon33 struct xEnv { - iEnv* geom; - iEnv ienv; - xLightKit* lightKit; + iEnv* geom; + iEnv ienv; + xLightKit* lightKit; }; struct xJSPMiniLightTie { - RwLLLink lightInWorldSector; - RpLight* light; + RwLLLink lightInWorldSector; + RpLight* light; }; struct _anon34 @@ -6274,63 +6280,63 @@ struct _anon34 struct tag_type { - substr name; - void(*parse_tag)(jot&, xtextbox&, xtextbox&, split_tag&); - void(*reset_tag)(jot&, xtextbox&, xtextbox&, split_tag&); - void* context; + substr name; + void (*parse_tag)(jot&, xtextbox&, xtextbox&, split_tag&); + void (*reset_tag)(jot&, xtextbox&, xtextbox&, split_tag&); + void* context; }; struct _class_16 { - uint32 start_increment; - uint32 increment; - uint32 start_decrement; - uint32 decrement; + uint32 start_increment; + uint32 increment; + uint32 start_decrement; + uint32 decrement; }; struct RwSky2DVertex { - RwSky2DVertexAlignmentOverlay u; + RwSky2DVertexAlignmentOverlay u; }; struct Damage { - float32 tym_invuln; + float32 tym_invuln; }; struct _tagxPad { - uint8 value[22]; - uint8 last_value[22]; - uint32 on; - uint32 pressed; - uint32 released; - _tagPadAnalog analog1; - _tagPadAnalog analog2; - _tagPadState state; - uint32 flags; - int16 port; - int16 slot; - _tagiPad context; - float32 al2d_timer; - float32 ar2d_timer; - float32 d_timer; - float32 up_tmr[22]; - float32 down_tmr[22]; - analog_data analog[2]; + uint8 value[22]; + uint8 last_value[22]; + uint32 on; + uint32 pressed; + uint32 released; + _tagPadAnalog analog1; + _tagPadAnalog analog2; + _tagPadState state; + uint32 flags; + int16 port; + int16 slot; + _tagiPad context; + float32 al2d_timer; + float32 ar2d_timer; + float32 d_timer; + float32 up_tmr[22]; + float32 down_tmr[22]; + analog_data analog[2]; }; struct _class_17 { - uint32 value_def; - uint32 value_min; - uint32 value_max; + uint32 value_def; + uint32 value_min; + uint32 value_max; }; enum eDirection { - eDIRECTION_X, - eDIRECTION_Y + eDIRECTION_X, + eDIRECTION_Y }; struct _anon35 @@ -6339,123 +6345,123 @@ struct _anon35 enum zGlobalDemoType { - zDT_NONE, - zDT_E3, - zDT_PUBLICITY, - zDT_OPM, - zDT_LAST + zDT_NONE, + zDT_E3, + zDT_PUBLICITY, + zDT_OPM, + zDT_LAST }; struct basic_rect { - float32 x; - float32 y; - float32 w; - float32 h; + float32 x; + float32 y; + float32 w; + float32 h; }; struct _class_18 { - float32 x; - float32 y; + float32 x; + float32 y; }; struct RxPipelineNodeTopSortData { - uint32 numIns; - uint32 numInsVisited; - rxReq* req; + uint32 numIns; + uint32 numInsVisited; + rxReq* req; }; struct zGlobalSettings { - uint16 AnalogMin; - uint16 AnalogMax; - float32 SundaeTime; - float32 SundaeMult; - uint32 InitialShinyCount; - uint32 InitialSpatulaCount; - int32 ShinyValuePurple; - int32 ShinyValueBlue; - int32 ShinyValueGreen; - int32 ShinyValueYellow; - int32 ShinyValueRed; - int32 ShinyValueCombo0; - int32 ShinyValueCombo1; - int32 ShinyValueCombo2; - int32 ShinyValueCombo3; - int32 ShinyValueCombo4; - int32 ShinyValueCombo5; - int32 ShinyValueCombo6; - int32 ShinyValueCombo7; - int32 ShinyValueCombo8; - int32 ShinyValueCombo9; - int32 ShinyValueCombo10; - int32 ShinyValueCombo11; - int32 ShinyValueCombo12; - int32 ShinyValueCombo13; - int32 ShinyValueCombo14; - int32 ShinyValueCombo15; - float32 ComboTimer; - uint32 Initial_Specials; - uint32 TakeDamage; - float32 DamageTimeHit; - float32 DamageTimeSurface; - float32 DamageTimeEGen; - float32 DamageSurfKnock; - float32 DamageGiveHealthKnock; - uint32 CheatSpongeball; - uint32 CheatPlayerSwitch; - uint32 CheatAlwaysPortal; - uint32 CheatFlyToggle; - uint32 FriendlySelectMode; - float32 RotMatchMaxAngle; - float32 RotMatchMatchTime; - float32 RotMatchRelaxTime; - float32 Gravity; - float32 BBashTime; - float32 BBashHeight; - float32 BBashDelay; - float32 BBashCVTime; - float32 BBounceSpeed; - float32 BBashGauntletDelay; - float32 BBashGauntletBlastRadius; - float32 BSpinMinFrame; - float32 BSpinMaxFrame; - float32 BSpinRadius; - float32 BSpinReach; - float32 BSpinReachUpgrade; - float32 CartwheelDamageSize; - float32 BubbleBowlTimeDelay; - float32 BubbleBowlLaunchPosLeft; - float32 BubbleBowlLaunchPosUp; - float32 BubbleBowlLaunchPosAt; - float32 BubbleBowlLaunchVelLeft; - float32 BubbleBowlLaunchVelUp; - float32 BubbleBowlLaunchVelAt; - float32 BubbleBowlPercentIncrease; - float32 BubbleBowlMinSpeed; - float32 BubbleBowlMinRecoverTime; - float32 SlideAccelVelMin; - float32 SlideAccelVelMax; - float32 SlideAccelStart; - float32 SlideAccelEnd; - float32 SlideAccelPlayerFwd; - float32 SlideAccelPlayerBack; - float32 SlideAccelPlayerSide; - float32 SlideVelMaxStart; - float32 SlideVelMaxEnd; - float32 SlideVelMaxIncTime; - float32 SlideVelMaxIncAccel; - float32 SlideAirHoldTime; - float32 SlideAirSlowTime; - float32 SlideAirDblHoldTime; - float32 SlideAirDblSlowTime; - float32 SlideVelDblBoost; - uint8 SlideApplyPhysics; - uint8 PowerUp[10]; - uint8 InitialPowerUp[10]; - uint8 AttractModeDuringGameplay; + uint16 AnalogMin; + uint16 AnalogMax; + float32 SundaeTime; + float32 SundaeMult; + uint32 InitialShinyCount; + uint32 InitialSpatulaCount; + int32 ShinyValuePurple; + int32 ShinyValueBlue; + int32 ShinyValueGreen; + int32 ShinyValueYellow; + int32 ShinyValueRed; + int32 ShinyValueCombo0; + int32 ShinyValueCombo1; + int32 ShinyValueCombo2; + int32 ShinyValueCombo3; + int32 ShinyValueCombo4; + int32 ShinyValueCombo5; + int32 ShinyValueCombo6; + int32 ShinyValueCombo7; + int32 ShinyValueCombo8; + int32 ShinyValueCombo9; + int32 ShinyValueCombo10; + int32 ShinyValueCombo11; + int32 ShinyValueCombo12; + int32 ShinyValueCombo13; + int32 ShinyValueCombo14; + int32 ShinyValueCombo15; + float32 ComboTimer; + uint32 Initial_Specials; + uint32 TakeDamage; + float32 DamageTimeHit; + float32 DamageTimeSurface; + float32 DamageTimeEGen; + float32 DamageSurfKnock; + float32 DamageGiveHealthKnock; + uint32 CheatSpongeball; + uint32 CheatPlayerSwitch; + uint32 CheatAlwaysPortal; + uint32 CheatFlyToggle; + uint32 FriendlySelectMode; + float32 RotMatchMaxAngle; + float32 RotMatchMatchTime; + float32 RotMatchRelaxTime; + float32 Gravity; + float32 BBashTime; + float32 BBashHeight; + float32 BBashDelay; + float32 BBashCVTime; + float32 BBounceSpeed; + float32 BBashGauntletDelay; + float32 BBashGauntletBlastRadius; + float32 BSpinMinFrame; + float32 BSpinMaxFrame; + float32 BSpinRadius; + float32 BSpinReach; + float32 BSpinReachUpgrade; + float32 CartwheelDamageSize; + float32 BubbleBowlTimeDelay; + float32 BubbleBowlLaunchPosLeft; + float32 BubbleBowlLaunchPosUp; + float32 BubbleBowlLaunchPosAt; + float32 BubbleBowlLaunchVelLeft; + float32 BubbleBowlLaunchVelUp; + float32 BubbleBowlLaunchVelAt; + float32 BubbleBowlPercentIncrease; + float32 BubbleBowlMinSpeed; + float32 BubbleBowlMinRecoverTime; + float32 SlideAccelVelMin; + float32 SlideAccelVelMax; + float32 SlideAccelStart; + float32 SlideAccelEnd; + float32 SlideAccelPlayerFwd; + float32 SlideAccelPlayerBack; + float32 SlideAccelPlayerSide; + float32 SlideVelMaxStart; + float32 SlideVelMaxEnd; + float32 SlideVelMaxIncTime; + float32 SlideVelMaxIncAccel; + float32 SlideAirHoldTime; + float32 SlideAirSlowTime; + float32 SlideAirDblHoldTime; + float32 SlideAirDblSlowTime; + float32 SlideVelDblBoost; + uint8 SlideApplyPhysics; + uint8 PowerUp[10]; + uint8 InitialPowerUp[10]; + uint8 AttractModeDuringGameplay; }; struct _anon36 @@ -6464,108 +6470,108 @@ struct _anon36 struct xCamConfigCommon { - uint8 priority; - uint8 pad1; - uint8 pad2; - uint8 pad3; - float32 blend_time; + uint8 priority; + uint8 pad1; + uint8 pad2; + uint8 pad3; + float32 blend_time; }; struct xCollis { - uint32 flags; - uint32 oid; - void* optr; - xModelInstance* mptr; - float32 dist; - float32 test_dist; - xVec3 norm; - xVec3 tohit; - xVec3 depen; - xVec3 hdng; - union - { - _class_19 tuv; - tri_data_0 tri; - }; + uint32 flags; + uint32 oid; + void* optr; + xModelInstance* mptr; + float32 dist; + float32 test_dist; + xVec3 norm; + xVec3 tohit; + xVec3 depen; + xVec3 hdng; + union + { + _class_19 tuv; + tri_data_0 tri; + }; }; struct PKRAssetTOCInfo { - uint32 aid; - PKRAssetType* typeref; - uint32 sector; - uint32 plus_offset; - uint32 size; - void* mempos; + uint32 aid; + PKRAssetType* typeref; + uint32 sector; + uint32 plus_offset; + uint32 size; + void* mempos; }; struct xParEmitter : xBase { - xParEmitterAsset* tasset; - xParGroup* group; - xParEmitterPropsAsset* prop; - uint8 rate_mode; - xVec3 last_emit_position; - xVec3 last_emit_velocity; - float32 rate; - float32 rate_time; - float32 rate_fraction; - float32 rate_fraction_cull; - uint8 emit_flags; - uint8 emit_pad[3]; - uint8 rot[3]; - xModelTag tag; - float32 oocull_distance_sqr; - float32 distance_to_cull_sqr; - void* attachTo; - xParSys* parSys; - xBase* emit_volume; - xVec3 last_attach_loc; + xParEmitterAsset* tasset; + xParGroup* group; + xParEmitterPropsAsset* prop; + uint8 rate_mode; + xVec3 last_emit_position; + xVec3 last_emit_velocity; + float32 rate; + float32 rate_time; + float32 rate_fraction; + float32 rate_fraction_cull; + uint8 emit_flags; + uint8 emit_pad[3]; + uint8 rot[3]; + xModelTag tag; + float32 oocull_distance_sqr; + float32 distance_to_cull_sqr; + void* attachTo; + xParSys* parSys; + xBase* emit_volume; + xVec3 last_attach_loc; }; struct xCutsceneMgr : xBase { - xCutsceneMgrAsset* tasset; - xCutscene* csn; - uint32 stop; - float32 oldfov; + xCutsceneMgrAsset* tasset; + xCutscene* csn; + uint32 stop; + float32 oldfov; }; struct PS2DemoGlobals { - uint16 language; - uint16 aspect; - uint16 play_mode; - uint16 inactive_timeout; - uint16 gameplay_timeout; - sceDemoEndReason exit_code; - struct - { - uint32 FMV_playing : 1; - uint32 more_padding : 31; - }; - float32 bail_timer; - float32 inactive_timer; - float32 gameplay_timer; - int8 subdir[16]; - uint16 quit; - uint16 vmode; + uint16 language; + uint16 aspect; + uint16 play_mode; + uint16 inactive_timeout; + uint16 gameplay_timeout; + sceDemoEndReason exit_code; + struct + { + uint32 FMV_playing : 1; + uint32 more_padding : 31; + }; + float32 bail_timer; + float32 inactive_timer; + float32 gameplay_timer; + int8 subdir[16]; + uint16 quit; + uint16 vmode; }; struct zPlayerLassoInfo { - float32 dist; - xEnt* swingTarget; - xEnt* releasedSwing; - zLasso lasso; + float32 dist; + xEnt* swingTarget; + xEnt* releasedSwing; + zLasso lasso; }; struct _class_19 { - float32 t; - float32 u; - float32 v; + float32 t; + float32 u; + float32 v; }; struct _anon37 @@ -6578,138 +6584,124 @@ struct _anon38 struct zLedgeGrabParams { - float32 animGrab; - float32 zdist; - xVec3 tranTable[60]; - int32 tranCount; - xEnt* optr; - xMat4x3 omat; - float32 y0det; - float32 dydet; - float32 r0det; - float32 drdet; - float32 thdet; - float32 rtime; - float32 ttime; - float32 tmr; - xVec3 spos; - xVec3 epos; - xVec3 tpos; - int32 nrays; - int32 rrand; - float32 startrot; - float32 endrot; + float32 animGrab; + float32 zdist; + xVec3 tranTable[60]; + int32 tranCount; + xEnt* optr; + xMat4x3 omat; + float32 y0det; + float32 dydet; + float32 r0det; + float32 drdet; + float32 thdet; + float32 rtime; + float32 ttime; + float32 tmr; + xVec3 spos; + xVec3 epos; + xVec3 tpos; + int32 nrays; + int32 rrand; + float32 startrot; + float32 endrot; }; struct RxPipelineNodeParam { - void* dataParam; - RxHeap* heap; + void* dataParam; + RxHeap* heap; }; struct TextureScroller { - model_widget* m_pModelWidget; - uint16* m_aMoveIndices; - uint16 m_moveCount; - eDirection m_dir : 8; - uint8 m_pad1; - float32 m_prevOffset; - float32 m_finalOffset; - float32 m_initialOffset; + model_widget* m_pModelWidget; + uint16* m_aMoveIndices; + uint16 m_moveCount; + eDirection m_dir : 8; + uint8 m_pad1; + float32 m_prevOffset; + float32 m_finalOffset; + float32 m_initialOffset; }; struct xClumpCollBSPVertInfo { - uint16 atomIndex; - uint16 meshVertIndex; + uint16 atomIndex; + uint16 meshVertIndex; }; struct RwSky2DVertexAlignmentOverlay { - union - { - RwSky2DVertexFields els; - qWords[4]; - }; + union + { + RwSky2DVertexFields els; + qWords[4]; + }; }; struct font_context { - uint32 id; - int32 justify; - float32 w; - float32 h; - float32 space; - float32 drop_x; - float32 drop_y; - xColor_tag c; - xColor_tag drop_c; + uint32 id; + int32 justify; + float32 w; + float32 h; + float32 space; + float32 drop_x; + float32 drop_y; + xColor_tag c; + xColor_tag drop_c; }; struct NMECSplashData { - pointer_asset* ass_ptr; - xVec3 pos_splash; - float32 rad_splash; - float32 tym_duration; - en_typeSplash typ_splash; + pointer_asset* ass_ptr; + xVec3 pos_splash; + float32 rad_splash; + float32 tym_duration; + en_typeSplash typ_splash; }; struct xCoef { - float32 a[4]; + float32 a[4]; }; struct substr { - int8* text; - uint32 size; + int8* text; + uint32 size; }; struct RwTexDictionary { - RwObject object; - RwLinkList texturesInDict; - RwLLLink lInInstance; + RwObject object; + RwLinkList texturesInDict; + RwLLLink lInInstance; }; enum eExtrasScreenCheats { - eExtrasScreenCheats_AltTargetHand = 0x1, - eExtrasScreenCheats_AlternateHand, - eExtrasScreenCheats_AltCarHorn, - eExtrasScreenCheats_LongAntenna, - eExtrasScreenCheats_AntennaFountain, - eExtrasScreenCheats_TinyFoggers, - eExtrasScreenCheats_MagneticPickups, - eExtrasScreenCheats_MAX + eExtrasScreenCheats_AltTargetHand = 0x1, + eExtrasScreenCheats_AlternateHand, + eExtrasScreenCheats_AltCarHorn, + eExtrasScreenCheats_LongAntenna, + eExtrasScreenCheats_AntennaFountain, + eExtrasScreenCheats_TinyFoggers, + eExtrasScreenCheats_MagneticPickups, + eExtrasScreenCheats_MAX }; struct xEntSpeedData { - float32 speed; - float32 acceleration; - float32 dest_speed; + float32 speed; + float32 acceleration; + float32 dest_speed; }; struct _tagiPad { - int32 port; -}; - -struct zRewardsMgr -{ - zRewardsQ rewardsQ[20]; - float32 comboTime; - float32 comboTimer; - uint32 numCratesDestroyed; - uint32 numEnemiesDefeated; - uint32 lastComboManlinessPoints; - uint32 lastComboIndex; - float32 spawnTimer; - uint8 playerDead; - zEntPickup* enemyManlinessPoints[20][5]; + int32 port; }; struct rxReq @@ -6726,15 +6718,15 @@ struct _anon39 struct unit_meter_asset : meter_asset { - model_info model[2]; - xVec3 offset; - uint32 fill_forward; + model_info model[2]; + xVec3 offset; + uint32 fill_forward; }; struct Physics { - float32 acc_grav; - float32 spd_maxFall; + float32 acc_grav; + float32 spd_maxFall; }; enum iSndHandle @@ -6747,152 +6739,152 @@ struct _anon40 struct zGlobals : xGlobals { - uint32 playerTag; - uint32 playerLoaded; - uint32 playerLoadOrder[8]; - uint8 invertJoystick; - zPlayerGlobals player; - zAssetPickupTable* pickupTable; - zCutsceneMgr* cmgr; - zCutsceneMgr* DisabledCutsceneDoneMgr; - int8 startDebugMode[32]; - uint32 noMovies; - uint32 boundUpdateTime; - uint8 draw_player_after_fx; - zGlobalDemoType demoType; + uint32 playerTag; + uint32 playerLoaded; + uint32 playerLoadOrder[8]; + uint8 invertJoystick; + zPlayerGlobals player; + zAssetPickupTable* pickupTable; + zCutsceneMgr* cmgr; + zCutsceneMgr* DisabledCutsceneDoneMgr; + int8 startDebugMode[32]; + uint32 noMovies; + uint32 boundUpdateTime; + uint8 draw_player_after_fx; + zGlobalDemoType demoType; }; struct xEntMotionOrbitData { - xVec3 center; - float32 w; - float32 h; - float32 period; + xVec3 center; + float32 w; + float32 h; + float32 period; }; struct xPECircle { - float32 radius; - float32 deflection; - xVec3 dir; + float32 radius; + float32 deflection; + xVec3 dir; }; struct MOVIE { - BINK* hBink; - RwRaster* pBinkRaster; - int32 asyncReadKey; - RwTexture* pBinkTexture; - uint8* pPreBuffer; - uint8* pPreBufferAligned; - uint32 PreBufferSize; - int32 FileOffset; - tag_xFile* pFile; + BINK* hBink; + RwRaster* pBinkRaster; + int32 asyncReadKey; + RwTexture* pBinkTexture; + uint8* pPreBuffer; + uint8* pPreBufferAligned; + uint32 PreBufferSize; + int32 FileOffset; + tag_xFile* pFile; }; struct _class_20 { - float32 value_def; - float32 value_min; - float32 value_max; + float32 value_def; + float32 value_min; + float32 value_max; }; struct _class_21 { - float32 left; - float32 top; - float32 right; - float32 bottom; + float32 left; + float32 top; + float32 right; + float32 bottom; }; struct RxPipelineRequiresCluster { - RxClusterDefinition* clusterDef; - RxClusterValidityReq rqdOrOpt; - uint32 slotIndex; + RxClusterDefinition* clusterDef; + RxClusterValidityReq rqdOrOpt; + uint32 slotIndex; }; enum _zPlayerWallJumpState { - k_WALLJUMP_NOT, - k_WALLJUMP_LAUNCH, - k_WALLJUMP_FLIGHT, - k_WALLJUMP_LAND, - k_WALLJUMP_STUCK, - k_WALLJUMP_FALL + k_WALLJUMP_NOT, + k_WALLJUMP_LAUNCH, + k_WALLJUMP_FLIGHT, + k_WALLJUMP_LAND, + k_WALLJUMP_STUCK, + k_WALLJUMP_FALL }; struct RxHeap { - uint32 superBlockSize; - rxHeapSuperBlockDescriptor* head; - rxHeapBlockHeader* headBlock; - rxHeapFreeBlock* freeBlocks; - uint32 entriesAlloced; - uint32 entriesUsed; - int32 dirty; + uint32 superBlockSize; + rxHeapSuperBlockDescriptor* head; + rxHeapBlockHeader* headBlock; + rxHeapFreeBlock* freeBlocks; + uint32 entriesAlloced; + uint32 entriesUsed; + int32 dirty; }; struct Restore { - uint8 chkby; - uint8 penby; - uint8 padpad[2]; - union - { - en_npcgol gid_compare; - int32 gid_COMPARE; - }; + uint8 chkby; + uint8 penby; + uint8 padpad[2]; + union + { + en_npcgol gid_compare; + int32 gid_COMPARE; + }; }; enum en_allow { - ALLOW_NEVER, - ALLOW_NORMAL, - ALLOW_ALWAYS, - ALLOW_NOMORE + ALLOW_NEVER, + ALLOW_NORMAL, + ALLOW_ALWAYS, + ALLOW_NOMORE }; struct xClumpCollBSPTriangle { - _class_23 v; - uint8 flags; - uint8 detailed_info_cache_index; - uint16 matIndex; + _class_23 v; + uint8 flags; + uint8 detailed_info_cache_index; + uint16 matIndex; }; struct RwSky2DVertexFields { - RwV3d scrVertex; - float32 camVertex_z; - float32 u; - float32 v; - float32 recipZ; - float32 pad1; - RwRGBAReal color; - RwV3d objNormal; - float32 pad2; + RwV3d scrVertex; + float32 camVertex_z; + float32 u; + float32 v; + float32 recipZ; + float32 pad1; + RwRGBAReal color; + RwV3d objNormal; + float32 pad2; }; struct st_XORDEREDARRAY { - void** list; - int32 cnt; - int32 max; - int32 warnlvl; + void** list; + int32 cnt; + int32 max; + int32 warnlvl; }; struct RwLinkList { - RwLLLink link; + RwLLLink link; }; struct xTextureHandle { - RwTexture* m_pTexture; - xInternalMovieNode* m_pMovie; - xInternalTextureNode* m_pNode; - xInternalTextureNode* m_pPrevNode; + RwTexture* m_pTexture; + xInternalMovieNode* m_pMovie; + xInternalTextureNode* m_pNode; + xInternalTextureNode* m_pPrevNode; }; struct _anon41 @@ -6901,35 +6893,35 @@ struct _anon41 enum zFragType { - eFragInactive, - eFragGroup, - eFragShrapnel, - eFragParticle, - eFragProjectile, - eFragLightning, - eFragSound, - eFragShockwave, - eFragExplosion, - eFragDistortion, - eFragFire, - eFragCount, - eFragForceSize = 0x7fffffff + eFragInactive, + eFragGroup, + eFragShrapnel, + eFragParticle, + eFragProjectile, + eFragLightning, + eFragSound, + eFragShockwave, + eFragExplosion, + eFragDistortion, + eFragFire, + eFragCount, + eFragForceSize = 0x7fffffff }; struct tri_data_1 : tri_data_0 { - xVec3 loc; - float32 yaw; - xCollis* coll; - xMat4x3 trioldmat; + xVec3 loc; + float32 yaw; + xCollis* coll; + xMat4x3 trioldmat; }; struct xBaseAsset { - uint32 id; - uint8 baseType; - uint8 linkCount; - uint16 baseFlags; + uint32 id; + uint8 baseType; + uint8 linkCount; + uint16 baseFlags; }; struct _anon42 @@ -6938,42 +6930,42 @@ struct _anon42 struct ImageState { - float32 rotation; - float32 offsetU; - float32 offsetV; + float32 rotation; + float32 offsetU; + float32 offsetV; }; struct xfont { - uint32 id; - float32 width; - float32 height; - float32 space; - xColor_tag color; - xColor_tag shadowColor; - float32 shadowOffsetX; - float32 shadowOffsetY; - basic_rect clip; + uint32 id; + float32 width; + float32 height; + float32 space; + xColor_tag color; + xColor_tag shadowColor; + float32 shadowOffsetX; + float32 shadowOffsetY; + basic_rect clip; }; enum PSY_BRAIN_STATUS { - PSY_STAT_BLANK, - PSY_STAT_GROW, - PSY_STAT_EXTEND, - PSY_STAT_THINK, - PSY_STAT_NOMORE, - PSY_STAT_FORCE = 0x7fffffff + PSY_STAT_BLANK, + PSY_STAT_GROW, + PSY_STAT_EXTEND, + PSY_STAT_THINK, + PSY_STAT_NOMORE, + PSY_STAT_FORCE = 0x7fffffff }; struct RxNodeDefinition { - int8* name; - RxNodeMethods nodeMethods; - RxIoSpec io; - uint32 pipelineNodePrivateDataSize; - RxNodeDefEditable editable; - int32 InputPipesCnt; + int8* name; + RxNodeMethods nodeMethods; + RxIoSpec io; + uint32 pipelineNodePrivateDataSize; + RxNodeDefEditable editable; + int32 InputPipesCnt; }; struct _anon43 @@ -6982,7 +6974,7 @@ struct _anon43 struct _class_22 { - uint8 visible : 1; + uint8 visible : 1; }; struct TreasureChest : ModelAndFontHideOnTextBox @@ -6991,10 +6983,10 @@ struct TreasureChest : ModelAndFontHideOnTextBox struct xCutsceneAudioTrack { - uint32 uLeftSoundId; - uint32 uRightSoundId; - int8 szLeftSound[60]; - int8 szRightSound[60]; + uint32 uLeftSoundId; + uint32 uRightSoundId; + int8 szLeftSound[60]; + int8 szRightSound[60]; }; struct _anon44 @@ -7003,18 +6995,18 @@ struct _anon44 struct xEntSplineData { - xEntSpeedData speed_data; - NURBS* spline; - float32 u; - uint8 arrived; - float32 position_blend_v; - float32 orient_blend_v; - xQuat current_orient; + xEntSpeedData speed_data; + NURBS* spline; + float32 u; + uint8 arrived; + float32 position_blend_v; + float32 orient_blend_v; + xQuat current_orient; }; struct xVolume : xBase { - xVolumeAsset* asset; + xVolumeAsset* asset; }; struct _anon45 @@ -7027,166 +7019,166 @@ struct _anon46 struct zPlayerGlobals { - xEntShadow entShadow_embedded; - xShadowSimpleCache simpShadow_embedded; - zGlobalSettings g; - zPlayerSettings* s; - zPlayerSettings sb; - zPlayerSettings patrick; - zPlayerSettings spongepat; - xLightKit* pPlayerLightKit; - xModelInstance* model_spongebob; - xModelInstance* model_patrick; - xModelInstance* model_spongepat; - xModelInstance* model_car; - uint32 Visible; - int32 Speed; - float32 SpeedMult; - int32 Sneak; - int32 Teeter; - float32 SlipFadeTimer; - int32 Slide; - float32 SlideTimer; - int32 Stepping; - int32 JumpState; - int32 LastJumpState; - float32 JumpTimer; - float32 LookAroundTimer; - uint32 LookAroundRand; - uint32 LastProjectile; - float32 DecelRun; - float32 DecelRunSpeed; - float32 HotsauceTimer; - float32 LeanLerp; - float32 ScareTimer; - xBase* ScareSource; - float32 CowerTimer; - float32 DamageTimer; - float32 SundaeTimer; - float32 ControlOffTimer; - float32 HelmetTimer; - uint32 WorldDisguise; - uint32 Bounced; - float32 FallDeathTimer; - float32 HeadbuttVel; - float32 HeadbuttTimer; - uint32 DoMeleeCheck; - float32 ForceSlipperyTimer; - float32 ForceSlipperyFriction; - float32 ShockRadius; - float32 ShockRadiusOld; - float32 Face_ScareTimer; - uint32 Face_ScareRandom; - uint32 Face_Event; - float32 Face_EventTimer; - float32 Face_PantTimer; - uint32 Face_AnimSpecific; - uint32 IdleRand; - float32 IdleMinorTimer; - float32 IdleMajorTimer; - float32 IdleSitTimer; - int32 Transparent; - zEnt* FireTarget; - uint32 PlayerIsFrozen; - uint32 ControlOff; - uint32 ControlOnEvent; - uint32 AutoMoveSpeed; - float32 AutoMoveDist; - xVec3 AutoMoveTarget; - xBase* AutoMoveObject; - zEnt* Diggable; - float32 DigTimer; - zPlayerCarryInfo carry; - zPlayerLassoInfo lassoInfo; - xModelTag BubbleWandTag[2]; - xModelInstance* model_wand; - xEntBoulder* bubblebowl[2]; - float32 bbowlInitVel; - zEntHangable* HangFound; - zEntHangable* HangEnt; - zEntHangable* HangEntLast; - xVec3 HangPivot; - xVec3 HangVel; - float32 HangLength; - xVec3 HangStartPos; - float32 HangStartLerp; - xModelTag HangPawTag[4]; - float32 HangPawOffset; - float32 HangElapsed; - float32 Jump_CurrGravity; - float32 Jump_HoldTimer; - float32 Jump_ChangeTimer; - int32 Jump_CanDouble; - int32 Jump_CanFloat; - int32 Jump_SpringboardStart; - zPlatform* Jump_Springboard; - int32 CanJump; - int32 CanBubbleSpin; - int32 CanBubbleBounce; - int32 CanBubbleBash; - int32 IsJumping; - int32 IsDJumping; - int32 IsBubbleSpinning; - int32 IsBubbleBouncing; - int32 IsBubbleBashing; - int32 IsBubbleBowling; - int32 WasDJumping; - _zPlayerWallJumpState WallJumpState; - int32 cheat_mode; - zRewardsMgr* rewardsMgr; - uint32 ManlinessPointsCurrentRange; - uint32 InvManlinessPoints; - uint32 InvManlinessPointsMultiplier; - uint32 InvGoofyGoober; - uint32 InvTreasureChest[20]; - uint32 InvTreasureChestMax[20]; - uint32 InvTreasureChestCurrentLevel; - uint32 InvLevelPickups[20]; - uint32 InvLevelPickupsCurrentLevel; - uint32 InvTreasureChestTotal; - uint32 InvTreasureChestOpened; - uint32 CurrentSkillLevel; - uint32 InitialUnusedSkillPoints; - int16 CurrentUnusedSkillPoints; - int16 CurrentSpentSkillPoints; - xModelTag BubbleTag; - xEntDrive drv; - xSurface* floor_surf; - xVec3 floor_norm; - int32 slope; - xCollis earc_coll; - xSphere head_sph; - xModelTag center_tag; - xModelTag head_tag; - uint32 TongueFlags[2]; - xVec3 RootUp; - xVec3 RootUpTarget; - zCheckPoint checkpoint; - uint32 SlideTrackSliding; - uint32 SlideTrackCount; - xEnt* SlideTrackEnt[161]; - uint32 SlideNotGroundedSinceSlide; - xVec3 SlideTrackDir; - xVec3 SlideTrackVel; - float32 SlideTrackDecay; - float32 SlideTrackLean; - float32 SlideTrackLand; - uint8* sb_model_indices; - xModelInstance* sb_models[11]; - uint32 currentPlayer; - xVec3 PredictRotate; - xVec3 PredictTranslate; - float32 PredictAngV; - xVec3 PredictCurrDir; - float32 PredictCurrVel; - float32 KnockBackTimer; - float32 KnockIntoAirTimer; + xEntShadow entShadow_embedded; + xShadowSimpleCache simpShadow_embedded; + zGlobalSettings g; + zPlayerSettings* s; + zPlayerSettings sb; + zPlayerSettings patrick; + zPlayerSettings spongepat; + xLightKit* pPlayerLightKit; + xModelInstance* model_spongebob; + xModelInstance* model_patrick; + xModelInstance* model_spongepat; + xModelInstance* model_car; + uint32 Visible; + int32 Speed; + float32 SpeedMult; + int32 Sneak; + int32 Teeter; + float32 SlipFadeTimer; + int32 Slide; + float32 SlideTimer; + int32 Stepping; + int32 JumpState; + int32 LastJumpState; + float32 JumpTimer; + float32 LookAroundTimer; + uint32 LookAroundRand; + uint32 LastProjectile; + float32 DecelRun; + float32 DecelRunSpeed; + float32 HotsauceTimer; + float32 LeanLerp; + float32 ScareTimer; + xBase* ScareSource; + float32 CowerTimer; + float32 DamageTimer; + float32 SundaeTimer; + float32 ControlOffTimer; + float32 HelmetTimer; + uint32 WorldDisguise; + uint32 Bounced; + float32 FallDeathTimer; + float32 HeadbuttVel; + float32 HeadbuttTimer; + uint32 DoMeleeCheck; + float32 ForceSlipperyTimer; + float32 ForceSlipperyFriction; + float32 ShockRadius; + float32 ShockRadiusOld; + float32 Face_ScareTimer; + uint32 Face_ScareRandom; + uint32 Face_Event; + float32 Face_EventTimer; + float32 Face_PantTimer; + uint32 Face_AnimSpecific; + uint32 IdleRand; + float32 IdleMinorTimer; + float32 IdleMajorTimer; + float32 IdleSitTimer; + int32 Transparent; + zEnt* FireTarget; + uint32 PlayerIsFrozen; + uint32 ControlOff; + uint32 ControlOnEvent; + uint32 AutoMoveSpeed; + float32 AutoMoveDist; + xVec3 AutoMoveTarget; + xBase* AutoMoveObject; + zEnt* Diggable; + float32 DigTimer; + zPlayerCarryInfo carry; + zPlayerLassoInfo lassoInfo; + xModelTag BubbleWandTag[2]; + xModelInstance* model_wand; + xEntBoulder* bubblebowl[2]; + float32 bbowlInitVel; + zEntHangable* HangFound; + zEntHangable* HangEnt; + zEntHangable* HangEntLast; + xVec3 HangPivot; + xVec3 HangVel; + float32 HangLength; + xVec3 HangStartPos; + float32 HangStartLerp; + xModelTag HangPawTag[4]; + float32 HangPawOffset; + float32 HangElapsed; + float32 Jump_CurrGravity; + float32 Jump_HoldTimer; + float32 Jump_ChangeTimer; + int32 Jump_CanDouble; + int32 Jump_CanFloat; + int32 Jump_SpringboardStart; + zPlatform* Jump_Springboard; + int32 CanJump; + int32 CanBubbleSpin; + int32 CanBubbleBounce; + int32 CanBubbleBash; + int32 IsJumping; + int32 IsDJumping; + int32 IsBubbleSpinning; + int32 IsBubbleBouncing; + int32 IsBubbleBashing; + int32 IsBubbleBowling; + int32 WasDJumping; + _zPlayerWallJumpState WallJumpState; + int32 cheat_mode; + zRewardsMgr* rewardsMgr; + uint32 ManlinessPointsCurrentRange; + uint32 InvManlinessPoints; + uint32 InvManlinessPointsMultiplier; + uint32 InvGoofyGoober; + uint32 InvTreasureChest[20]; + uint32 InvTreasureChestMax[20]; + uint32 InvTreasureChestCurrentLevel; + uint32 InvLevelPickups[20]; + uint32 InvLevelPickupsCurrentLevel; + uint32 InvTreasureChestTotal; + uint32 InvTreasureChestOpened; + uint32 CurrentSkillLevel; + uint32 InitialUnusedSkillPoints; + int16 CurrentUnusedSkillPoints; + int16 CurrentSpentSkillPoints; + xModelTag BubbleTag; + xEntDrive drv; + xSurface* floor_surf; + xVec3 floor_norm; + int32 slope; + xCollis earc_coll; + xSphere head_sph; + xModelTag center_tag; + xModelTag head_tag; + uint32 TongueFlags[2]; + xVec3 RootUp; + xVec3 RootUpTarget; + zCheckPoint checkpoint; + uint32 SlideTrackSliding; + uint32 SlideTrackCount; + xEnt* SlideTrackEnt[161]; + uint32 SlideNotGroundedSinceSlide; + xVec3 SlideTrackDir; + xVec3 SlideTrackVel; + float32 SlideTrackDecay; + float32 SlideTrackLean; + float32 SlideTrackLand; + uint8* sb_model_indices; + xModelInstance* sb_models[11]; + uint32 currentPlayer; + xVec3 PredictRotate; + xVec3 PredictTranslate; + float32 PredictAngV; + xVec3 PredictCurrDir; + float32 PredictCurrVel; + float32 KnockBackTimer; + float32 KnockIntoAirTimer; }; struct xShadowSimplePoly { - xVec3 vert[3]; - xVec3 norm; + xVec3 vert[3]; + xVec3 norm; }; struct _anon47 @@ -7195,120 +7187,120 @@ struct _anon47 struct Movement { - float32 spd_move; - float32 acc_move; - float32 dst_deviant; - float32 spd_turnrate; + float32 spd_move; + float32 acc_move; + float32 dst_deviant; + float32 spd_turnrate; }; struct entrail_type { - int8* model_name; - int32 bone; - float32 rate; - float32 cull_dist; - xVec3 offset; - xVec3 offset_rand; - xVec3 vel; - xVec3 vel_rand; + int8* model_name; + int32 bone; + float32 rate; + float32 cull_dist; + xVec3 offset; + xVec3 offset_rand; + xVec3 vel; + xVec3 vel_rand; }; struct xEntPenData { - xVec3 top; - float32 w; - xMat4x3 omat; + xVec3 top; + float32 w; + xMat4x3 omat; }; enum xCamCoordType { - XCAM_COORD_INVALID = 0xffffffff, - XCAM_COORD_CART, - XCAM_COORD_CYLINDER, - XCAM_COORD_SPHERE, - XCAM_COORD_MAX + XCAM_COORD_INVALID = 0xffffffff, + XCAM_COORD_CART, + XCAM_COORD_CYLINDER, + XCAM_COORD_SPHERE, + XCAM_COORD_MAX }; struct _class_23 { - union - { - xClumpCollBSPVertInfo i; - uint32 rawIdx; - RwV3d* p; - }; + union + { + xClumpCollBSPVertInfo i; + uint32 rawIdx; + RwV3d* p; + }; }; struct NMERuntime { - struct - { - int32 flg_enableWander : 1; - int32 flg_enablePatrol : 1; - int32 flg_enableDetect : 1; - int32 flg_activeOn : 1; - int32 flg_takeNoDamage : 1; - int32 flg_unused : 27; - }; - union - { - en_allow overrideDetect; - int32 alignmeproperly; - }; - union - { - en_allow overrideAttack; - int32 alignmeproperlyToo; - }; - OriginalBackupData orig; - Restore restore; + struct + { + int32 flg_enableWander : 1; + int32 flg_enablePatrol : 1; + int32 flg_enableDetect : 1; + int32 flg_activeOn : 1; + int32 flg_takeNoDamage : 1; + int32 flg_unused : 27; + }; + union + { + en_allow overrideDetect; + int32 alignmeproperly; + }; + union + { + en_allow overrideAttack; + int32 alignmeproperlyToo; + }; + OriginalBackupData orig; + Restore restore; }; struct xPESphere { - float32 radius; + float32 radius; }; struct xEntMotionSplineData { - uint32 spline_id; - float32 speed; - float32 lean_modifier; + uint32 spline_id; + float32 speed; + float32 lean_modifier; }; struct rxHeapFreeBlock { - uint32 size; - rxHeapBlockHeader* ptr; + uint32 size; + rxHeapBlockHeader* ptr; }; struct _class_24 { - uint8 value_def; + uint8 value_def; }; enum _enum_3 { - XJ_LEFT, - XJ_CENTER, - XJ_RIGHT + XJ_LEFT, + XJ_CENTER, + XJ_RIGHT }; struct RwRGBAReal { - float32 red; - float32 green; - float32 blue; - float32 alpha; + float32 red; + float32 green; + float32 blue; + float32 alpha; }; struct RwObject { - uint8 type; - uint8 subType; - uint8 flags; - uint8 privateFlags; - void* parent; + uint8 type; + uint8 subType; + uint8 flags; + uint8 privateFlags; + void* parent; }; int8 buffer[16]; @@ -7396,7 +7388,7 @@ float32 gwait_time_secs; float32 gloop_net_time_secs; float32 snd_radius; uint32 gLastProfileDump; -void(*zSB04_BossPreRender)(); +void (*zSB04_BossPreRender)(); RwCamera* sGameScreenTransCam; RpWorld* gWorld; RpLight* DirectionalLight; @@ -7505,8 +7497,8 @@ _tagPartition sLightPart; zVolume* sPartitionVolume; int32 gNumTemporaryLights; _zLight* gTemporaryLights[32]; -void(*sEffectFuncs)(_zLight*, float32)[18]; -void(*sEffectInitFuncs)(_zLight*)[18]; +void (*sEffectFuncs)(_zLight*, float32)[18]; +void (*sEffectInitFuncs)(_zLight*)[18]; xVec3 sDefaultShadowVec; zLightning* sLightning; zParEmitter* sSparkEmitter; @@ -7611,14 +7603,14 @@ zNPCMgr* g_npcmgr; NPCBrainTableEntry g_brainTable[67]; int8* EVENT_TYPE_STRINGS[49]; _anon5 __vt__Q24zNPC4base; -int32(*zNPCMgr_OrdComp_npcid)(void*, void*); -int32(*zNPCMgr_OrdTest_npcid)(void*, void*); +int32 (*zNPCMgr_OrdComp_npcid)(void*, void*); +int32 (*zNPCMgr_OrdTest_npcid)(void*, void*); zGlobals globals; xQCControl xqc_def_ctrl; xVec3 g_O3; xGlobals* xglobals; -int32(*MVPT_dflt_chklos)(void*, xVec3*, zMovePoint*); -void(*zMovePointEventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +int32 (*MVPT_dflt_chklos)(void*, xVec3*, zMovePoint*); +void (*zMovePointEventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); uint32 gActiveHeap; _tagGameVidMode gVidMode; _anon6 __vt__22zUICustomPalRedirector; @@ -7641,16 +7633,16 @@ xColor_tag g_CLEAR; xColor_tag g_BLACK; _zEnv* gCurEnv; xMat4x3 g_I3; -xEnt*(*AddToLODList)(xEnt*, xScene*, void*); +xEnt* (*AddToLODList)(xEnt*, xScene*, void*); uint8 HDR_brightening; tagiRenderArrays gRenderArr; xColor_tag g_WHITE; _tagxPad* gDebugPad; -void(*lightningTweakStart)(tweak_info&); -void(*EventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +void (*lightningTweakStart)(tweak_info&); +void (*EventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); RpWorld* gLightWorld; -void(*zLightEventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); -void(*zHangable_EventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +void (*zLightEventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +void (*zHangable_EventCB)(xBase*, xBase*, uint32, float32*, xBase*, uint32); int32 gCartwheelButton; int32 gBowlButton; int32 gBashButton; @@ -7663,17 +7655,17 @@ uint32 gBusStopIsRunning; xSndGlobals gSnd; uint32 gSceneFrameCount; float32 speedOfSound; -void(*on_spawn_bubble_wall)(tweak_info&); -void(*RenderThread)(void*); +void (*on_spawn_bubble_wall)(tweak_info&); +void (*RenderThread)(void*); _anon45 __vt__14zLoadingScreen; _anon46 __vt__Q26zAsync6Screen; xVec3 g_Y3; -RpAtomic*(*gAtomicRenderCallBack)(RpAtomic*); -RpAtomic*(*AtomicDefaultRenderCallBack)(RpAtomic*); +RpAtomic* (*gAtomicRenderCallBack)(RpAtomic*); +RpAtomic* (*AtomicDefaultRenderCallBack)(RpAtomic*); RxPipeline* xFXgooPipeline; -RpAtomic*(*zFXGooRenderAtomic)(RpAtomic*); +RpAtomic* (*zFXGooRenderAtomic)(RpAtomic*); uint8 _enabled; -void(*cb_dispatch)(xBase*, xBase*, uint32, float32*, xBase*, uint32); +void (*cb_dispatch)(xBase*, xBase*, uint32, float32*, xBase*, uint32); _anon38 __vt__9zNMEMindy; _anon19 __vt__12zNMEFriendly; _anon9 __vt__10zNMECommon; @@ -7710,5 +7702,3 @@ _anon16 __vt__13zNMECritJelly; _anon33 __vt__11zNMECritter; _anon10 __vt__13zNMECritBasic; _anon43 __vt__8zNMETiki; - - diff --git a/include/rwsdk/rwplcore.h b/include/rwsdk/rwplcore.h index 80c5eba..cb9d70f 100644 --- a/include/rwsdk/rwplcore.h +++ b/include/rwsdk/rwplcore.h @@ -1370,6 +1370,11 @@ extern RwBool RwEngineTerm(void); extern RwBool RwEngineInit(const RwMemoryFunctions* memFuncs, RwUInt32 initFlags, RwUInt32 resArenaSize); +extern void RwGameCubeSetAlphaCompare(RwInt32 comp0, RwUInt8 ref0, RwInt32 op, RwInt32 comp1, + RwUInt8 ref1); + +extern void _rwDlRenderStateSetZCompLoc(RwBool zBeforeTex); + #ifdef __cplusplus } #endif diff --git a/src/SB/Core/gc/iSnd.h b/src/SB/Core/gc/iSnd.h index 7a9d256..deb9ba5 100644 --- a/src/SB/Core/gc/iSnd.h +++ b/src/SB/Core/gc/iSnd.h @@ -53,6 +53,15 @@ enum iSndGroupHandle { }; +// enum eSNDCurrentPlayer +// { +// eCurrentPlayerSpongeBob, +// eCurrentPlayerPatrick, +// eCurrentPlayerCar, +// eCurrentPlayerSpongePat, +// eCurrentPlayerCount +// }; + void arq_callback(long); void iSndExit(); diff --git a/src/SB/Core/x/xBase.h b/src/SB/Core/x/xBase.h index a6f3269..c27425f 100644 --- a/src/SB/Core/x/xBase.h +++ b/src/SB/Core/x/xBase.h @@ -21,11 +21,11 @@ typedef S32 (*xBaseEventCB)(xBase*, xBase*, U32, const F32*, xBase*); struct xBase { U32 id; - U8 baseType; // see en_ZBASETYPE in zBase.h + U8 baseType; U8 linkCount; U16 baseFlags; xLinkAsset* link; - xBaseEventCB eventFunc; // 0xC + void (*eventFunc)(xBase*, xBase*, U32, F32*, xBase*, U32); }; void xBaseInit(xBase* xb, xBaseAsset* asset); diff --git a/src/SB/Core/x/xEnt.h b/src/SB/Core/x/xEnt.h index e097784..5ffda50 100644 --- a/src/SB/Core/x/xEnt.h +++ b/src/SB/Core/x/xEnt.h @@ -125,63 +125,46 @@ struct xEnt : xBase xVec3* normals; }; - // Offset: 0x10 xEntAsset* asset; - U16 idx; //0x14 - U16 num_updates; - - // Offset: 0x18 + U16 idx; U8 flags; U8 miscflags; U8 subType; - - // Offset: 0x1B - U8 pflags; // p -> physics flags - U8 moreFlags; //0x1c - U8 isCulled; + U8 pflags; + U16 moreFlags; + struct + { + U8 _isCulled : 2; + U8 collisionEventReceived : 2; + }; U8 driving_count; U8 num_ffx; - - // Offset: 0x20 - U8 collType; // XENT_COLLTYPE_* (defined below) + U8 collType; U8 collLev; - U8 chkby; // XENT_COLLTYPE_* bitmask - U8 penby; // XENT_COLLTYPE_* bitmask - - // Offset: 0x24 + U8 chkby; + U8 penby; + void (*visUpdate)(xEnt*); xModelInstance* model; xModelInstance* collModel; xModelInstance* camcollModel; - xLightKit* lightKit; - - // Offset: 0x34 - xEntUpdateCallback update; - xEntUpdateCallback endUpdate; - xEntBoundUpdateCallback bupdate; - xEntMoveCallback move; - - // Offset: 0x44 - xEntRenderCallback render; + void (*update)(xEnt*, xScene*, F32); + void (*endUpdate)(xEnt*, xScene*, F32); + void (*bupdate)(xEnt*, xVec3*); + void (*move)(xEnt*, xScene*, F32, xEntFrame*); + void (*render)(xEnt*); xEntFrame* frame; - xEntCollis* collis; //0x4c - - // Offset: 0x50 + xEntCollis* collis; xGridBound gridb; - - // Offset: 0x64 xBound bound; - - // Offset: 0xB0 - xEntTranslateCallback transl; //0xb0 - xFFX* ffx; //0xb4 + void (*transl)(xEnt*, xVec3*, xMat4x3*); + xFFX* ffx; xEnt* driver; + xEnt* driven; S32 driveMode; - - // Offset: 0xC0 xShadowSimpleCache* simpShadow; xEntShadow* entShadow; anim_coll_data* anim_coll; - void* user_data; // 0xCC + void* user_data; }; // collision types diff --git a/src/SB/Core/x/xFX.h b/src/SB/Core/x/xFX.h index 4f85a47..07d9ebc 100644 --- a/src/SB/Core/x/xFX.h +++ b/src/SB/Core/x/xFX.h @@ -79,6 +79,46 @@ struct xFXRibbon void debug_update(F32); }; +struct xFRect +{ + F32 x; + F32 y; + F32 w; + F32 h; +}; + +struct xFXCameraTexture +{ + RwCamera* cam; + RwRaster* raster; + RwRaster* bgraster; + RpWorld* world; + RwTexture* texture; + U32 vert_buffer_used; + xColor_tag bgcolor; + RwCamera* oldcam; + RpWorld* oldworld; + F32 rcz; + F32 w; + F32 h; + RwRaster* zraster; + S32 max_tw; + S32 max_th; + F32 old_near_plane; + F32 old_far_plane; + F32 old_znear; + + void zbuffer_map_and_clear(RwRaster* fraster, RwRaster* zraster, U32 fbmsk, S32 clear_flags); + // void get_subview(xMat4x3& ltm, xVec2& view_window, xVec2& view_offset, RwCamera* src_cam, + // xFRect& src_rect, xFRect& dst_rect); + void setup_subview(RwCamera* src_cam, xFRect& src_rect, xFRect& dst_rect); + void end_render(); + void begin_render(S32 clear_flags, U32 fbmsk_write, U32 fbmsk_finish, F32 near_plane, + F32 far_plane); + void destroy(); + U8 create(S32 w, S32 h, U8 need_zwrite, S32 bpp, S32 zbpp); +}; + #define RING_COUNT 8 extern xFXRing ringlist[RING_COUNT]; diff --git a/src/SB/Core/x/xFXHighDynamicRange.cpp b/src/SB/Core/x/xFXHighDynamicRange.cpp index e69de29..57ab162 100644 --- a/src/SB/Core/x/xFXHighDynamicRange.cpp +++ b/src/SB/Core/x/xFXHighDynamicRange.cpp @@ -0,0 +1,70 @@ +#include "xFXHighDynamicRange.h" + +// char buffer[16]; +// char buffer[16]; +// F32 scale; +U8 HDR_brightening; +// F32 overbrighten; +// F32 overbrighten_decay; +// S32 downsamples; +// U8 blur_faster; +// F32 colorize_red; +// F32 colorize_green; +// F32 colorize_blue; +// F32 colorize_alpha; +// U8 enabled; +// S32 background_glow_normal; +// S32 background_darken_normal; +// interpolator background_glow; +// interpolator background_darken; +// S32 saved_alpha_test; +// //* blur_packet[5]; +// xVec2 diagonal_00_11_offsets[2]; +// xVec2 diagonal_01_10_offsets[2]; +// xVec2 square_offsets[4]; +// downsample_pass_info downsample_passes_fast[5]; +// downsample_pass_info downsample_passes_slow[5]; +// xFXCameraTexture blurbuffer[5]; +// RwRaster* backbuffer_raster; +// xFXCameraTexture downbuffer[5]; +// S32 old_alpha_test; +// S32 our_alpha_test; +// S32 _rpPTankAtomicDataOffset; +// //* _rwDMAGateSlot; +// xColor_tag g_WHITE; +// U32 ourGlobals[4096]; +// xColor_tag g_BLACK; +// xGlobals* xglobals; +// xColor_tag g_MAGENTA; +// U32 FB_YRES; +// U32 FB_XRES; + +void xFXHighDynamicRangeResetGlowClamp() +{ + S32 alpha_test; +} + +void xFXHighDynamicRangeSetGlowClamp(S32 glow_min, bool dest_test) +{ + S32 iVar1; + + iVar1 = 0xff; + if (glow_min < 0xff) + { + iVar1 = glow_min; + } + if (iVar1 < 0) + { + iVar1 = 0; + } + else + { + iVar1 = 0xff; + if (glow_min < 0xff) + { + iVar1 = glow_min; + } + } + RwGameCubeSetAlphaCompare(7, 0, 1, 6, (char)iVar1); + _rwDlRenderStateSetZCompLoc(FALSE); +} diff --git a/src/SB/Core/x/xFXHighDynamicRange.h b/src/SB/Core/x/xFXHighDynamicRange.h index e69de29..5e115d4 100644 --- a/src/SB/Core/x/xFXHighDynamicRange.h +++ b/src/SB/Core/x/xFXHighDynamicRange.h @@ -0,0 +1,24 @@ +#ifndef XFXHIGHDYNAMICRANGE_H +#define XFXHIGHDYNAMICRANGE_H + +#include "xFX.h" +#include "xGlobals.h" +#include "xModelBlur.h" +#include "xFX.h" + +struct downsample_pass_info +{ + xVec2* offset; + S32 resamples; +}; + +struct interpolator +{ + F32 value; + F32 start; + F32 end; + F32 t; + F32 trate; +}; + +#endif diff --git a/src/SB/Core/x/xGlobals.h b/src/SB/Core/x/xGlobals.h index a2fc32a..508f87f 100644 --- a/src/SB/Core/x/xGlobals.h +++ b/src/SB/Core/x/xGlobals.h @@ -7,6 +7,8 @@ #include "iCamera.h" #include "iTime.h" #include "zScene.h" +#include "xEnt.h" +#include "zEnt.h" #include #include @@ -26,10 +28,19 @@ enum sceDemoEndReason SCE_DEMO_ENDREASON_NETCONFIG_COMPLETE }; -struct zPlayer +// struct zPlayer +// { +// // Why empty? (iFMV dwarf shows this) +// // Non-empty ones exist in the zWads +// }; + +struct zPlayer : zEnt { - // Why empty? (iFMV dwarf shows this) - // Non-empty ones exist in the zWads + xVec3 trigLastFramePos; + S32 zPlayerFlags; + U32 lorezModelID; + xModelInstance* lorezModel; + xModelInstance* hirezModel; }; struct PS2DemoGlobals @@ -59,10 +70,10 @@ struct xGlobals xCamGroup* cam; xCamScreen* screen; xVec4 frustplane[12]; - _tagxPad* pad0; + _tagxPad* pad0; // 0x3e4 _tagxPad* pad1; _tagxPad* pad2; - _tagxPad* pad3; + _tagxPad* pad3; // 0x3f0 _tagxPad* pad[4]; S32 profile; char profFunc[128][6]; diff --git a/src/SB/Core/x/xHudMeter.h b/src/SB/Core/x/xHudMeter.h index d9b6fb6..ed85d4f 100644 --- a/src/SB/Core/x/xHudMeter.h +++ b/src/SB/Core/x/xHudMeter.h @@ -3,9 +3,19 @@ #include "xHud.h" #include "xSnd.h" +#include "xHudModel.h" +#include "zUI.h" +#include "xHudText.h" namespace xhud { + + enum eDirection + { + eDIRECTION_X, + eDIRECTION_Y + }; + struct meter_asset : asset { F32 start_value; @@ -35,6 +45,161 @@ namespace xhud F32 pitch; sound_queue<4> pings; }; + + struct font_context + { + U32 id; + S32 justify; + F32 w; + F32 h; + F32 space; + F32 drop_x; + F32 drop_y; + xColor_tag c; + xColor_tag drop_c; + }; + + struct font_meter_widget : meter_widget + { + font_context font; + font_context start_font; + S32 precision; + char buffer[12]; + S32 last_value; + xfont xf; + }; + + struct TextureScroller + { + model_widget* m_pModelWidget; + U16* m_aMoveIndices; + U16 m_moveCount; + eDirection m_dir : 8; + U8 m_pad1; + F32 m_prevOffset; + F32 m_finalOffset; + F32 m_initialOffset; + }; + + struct model_info + { + U32 id; + xVec3 loc; + xVec3 size; + }; + + struct unit_meter_asset : meter_asset + { + model_info model[2]; + xVec3 offset; + U32 fill_forward; + }; + + struct unit_meter_widget : meter_widget + { + unit_meter_asset res; + xModelInstance* model[2][6]; + F32 anim_time; + + static void load(xBase& data, xDynAsset& asset, size_t); + }; + } // namespace xhud +struct hud_element : xBase +{ + hud_element* _next; +}; + +struct ModelAndFont : hud_element +{ + xhud::model_widget* modelWidget; + xhud::font_meter_widget* fontMeter; + U32* valueToWatch; + U32 lastValue; + U8 okToAutoHide; +}; + +struct ModelAndFontHideOnTextBox : ModelAndFont +{ + U8 delayedShow; + U8 hidden; +}; + +struct BarMeter : hud_element +{ + // Added the xhud prefix to the structs, dont know whether or not all these structs need to be in the namespace + // + xhud::model_widget* bar; + xhud::model_widget* barNotch; + xhud::font_meter_widget* barMeter; + F32 sizeOfActualBar; + xVec3 notchLocation; + xVec3 fontLocation; + xhud::text_widget* minValueText; + xhud::text_widget* maxValueText; + xhud::TextureScroller* textureScroller; + widget* barPartsWidgets[5]; + xLightKit* hudLightKit; + S32 defaultMinValue; + S32 defaultMaxValue; + S32* valueToWatch; + S32* minValueToWatch; + S32* maxValueToWatch; + S32 lastValue; + U8 firstTimeUpdate; + + void reset(); + void hide(); + void show(); + void update(); +}; + +struct ManlinessMeter : BarMeter +{ + xhud::model_widget* upgradeIcon; + xhud::text_widget* manlinessPointsComboText; + xhud::text_widget* manlinessPointsComboPointsText; + U32 lastManlinessPoints; + U32 minManlinessPoints; + U32 maxManlinessPoints; + U32 lastMaxManlinessPoints; + U32 lastUnusedSkillPoints; + U8 firstTimeUpdate; + char nextUpgrade[16]; + widget* widgets[8]; + xhud::TextureScroller manlinessTextureScroller; + iSndHandle upgradeSound; + iSndGroupHandle upgradeSoundGroupHandle; + + void hide(); + void show(char autohide); + void update(F32 dt); + void SetImmediateValue(U32 value); + void setup(); + void reset(); + //void* __ct(); +}; + +struct KrabbyPattyMeter : hud_element +{ + xhud::unit_meter_widget* krabbyPattyMeter; + U32 lastHealth; + U32 lastMaxHealth; + U8 firstTime; +}; + +struct TreasureChest : ModelAndFontHideOnTextBox +{ +}; + +struct GoofyGooberMeter : ModelAndFontHideOnTextBox +{ + zUIText* autoSave; +}; + +struct NitroMeter : ModelAndFontHideOnTextBox +{ +}; + #endif diff --git a/src/SB/Core/x/xHudModel.h b/src/SB/Core/x/xHudModel.h index edd2e4c..8246ba1 100644 --- a/src/SB/Core/x/xHudModel.h +++ b/src/SB/Core/x/xHudModel.h @@ -33,6 +33,7 @@ namespace xhud virtual void update(F32 dt); virtual void render(); }; + } // namespace xhud xAnimTable* XHUD_AnimTable_Idle(); diff --git a/src/SB/Core/x/xSnd.h b/src/SB/Core/x/xSnd.h index 04739e4..4319aef 100644 --- a/src/SB/Core/x/xSnd.h +++ b/src/SB/Core/x/xSnd.h @@ -80,6 +80,55 @@ struct _xSndDelayed U32 pad0; }; +struct xSoundFXAsset : xBaseAsset +{ + union + { + U32 soundAssetID; + iSndGroupHandle soundAsset; + }; + U32 attachID; + xVec3 pos; + U32 uFlags; +}; + +struct xSoundFX : xBase +{ + xSoundFXAsset* asset; + iSndHandle sndHandle; + F32 cachedOuterDistSquared; +}; + +struct xSndGroupHeader : xBaseAsset +{ + U32 uPlayedMask; + U8 uInfoCount; + U8 uSetBits; + char nMaxPlays; // was int8 + U8 uPriority; + U8 uFlags; + U8 eSoundCategory; + U8 ePlayRule; + U8 uInfoPad0; + F32 fInnerRadius; + F32 fOuterRadius; + char* pszGroupName; +}; + +struct xSndGroupInfo +{ + U32 uSoundNameHash; + F32 fVolume; + F32 fMinPitchMult; + F32 fMaxPitchMult; +}; + +struct xSndGroup +{ + xSndGroupHeader header; + xSndGroupInfo aSndGroupInfo[0]; +}; + template struct sound_queue { U32 _playing[N + 1]; diff --git a/src/SB/Core/x/xVec3.h b/src/SB/Core/x/xVec3.h index d7b38e5..cd63c9b 100644 --- a/src/SB/Core/x/xVec3.h +++ b/src/SB/Core/x/xVec3.h @@ -2,6 +2,20 @@ #define XVEC3_H #include +#include "rwplcore.h" + +//movies dwarf +// struct xVec3 +// { +// union +// { +// RwV3d m_RwV3d; +// F32 x; +// }; +// F32 y; +// F32 z; +// F32 a[3]; +// }; struct xVec3 { diff --git a/src/SB/Core/x/xWad2.cpp b/src/SB/Core/x/xWad2.cpp index 8d542d2..e297c38 100644 --- a/src/SB/Core/x/xWad2.cpp +++ b/src/SB/Core/x/xWad2.cpp @@ -2576,7 +2576,7 @@ void xFogInit(void* b, void* tasset) void xFogInit(xBase* ent, xFogAsset* tasset) { xBaseInit(ent, (xBaseAsset*)tasset); - ent->eventFunc = xFogEventCB; + //ent->eventFunc = xFogEventCB; ((_xFog*)ent)->tasset = tasset; if (ent->linkCount != 0) { @@ -4604,7 +4604,7 @@ void xEntDefaultBoundUpdate(xEnt* ent, xVec3* pos) void xEntEndUpdate(xEnt* ent, xScene* sc, F32 dt) { - ent->num_updates++; + //ent->num_updates++; if (ent->model) { diff --git a/src/SB/Core/x/xWad5.h b/src/SB/Core/x/xWad5.h index 275febc..1f7ec06 100644 --- a/src/SB/Core/x/xWad5.h +++ b/src/SB/Core/x/xWad5.h @@ -23,4 +23,6 @@ #include "iModel.h" #include "xserializer.h" +void xSndMgrPauseSounds(S16 eSoundCategory, bool bPaused, bool bPauseFutureSoundsOfThisType); + #endif diff --git a/src/SB/Game/zCar.h b/src/SB/Game/zCar.h index e5cbd35..f722b3c 100644 --- a/src/SB/Game/zCar.h +++ b/src/SB/Game/zCar.h @@ -117,6 +117,8 @@ struct driveSurfaceDescriptor iSndGroupHandle soundGroupSkid; }; +// Im thinking that this struct is fucked because of +// the mismatching offsets struct zCar { xEnt* pEnt; @@ -162,23 +164,23 @@ struct zCar U8 animStartSpinLeft; U8 animStartSpinRight; U8 animHeavyLanding; - U8 animInJumpAnimation; //0x598 + U8 animInJumpAnimation; U8 animSuccessMode; U8 animFailedMode; - F32 skidFXIntensity; //0x59C - xVec3 lastPositionPar[4]; //0x5a0 - xVec3 lastVelocityPar[4]; // + F32 skidFXIntensity; + xVec3 lastPositionPar[4]; + xVec3 lastVelocityPar[4]; xVec3 lastPositionSeed; xVec3 lastPositionKetchup; xVec3 lastVelocityKetchup; xVec3 lastPositionMustard; xVec3 lastVelocityMustard; - eDamage damageLevel; //0x63C - F32 soundEnginePitch; //0x640 + eDamage damageLevel; + F32 soundEnginePitch; iSndHandle soundEngineHandle; eDamage soundCurrentEngineType; iSndHandle soundBoostLoopHandle; - S64 soundReverseActivationTime; // long32 + S64 soundReverseActivationTime; iSndHandle soundReverseBeepHandle; driveSurfaceDescriptor* pSoundCurrentSurface; iSndHandle soundDriveLoopHandle; @@ -197,7 +199,7 @@ struct zCar xAnimTable* CreateAnimTable(); U32 JumpEndedCB(xAnimTransition*, xAnimSingle* anim, void*); U32 JumpStartedCB(); - U32 AnimDefaultCB(xAnimSingle* anim); + U32 AnimDefaultCB(xAnimTransition*, xAnimSingle* anim, void*); U32 DamageSpinCompleteCB(xAnimSingle* anim); U32 DeathCheck(); U32 FailedCheck(); diff --git a/src/SB/Game/zEnt.h b/src/SB/Game/zEnt.h index 71673ce..48edaa3 100644 --- a/src/SB/Game/zEnt.h +++ b/src/SB/Game/zEnt.h @@ -26,15 +26,15 @@ struct zEnt : xEnt void checkpoint_collision_hack(zEnt* ent); char* zParamGetString(xModelAssetParam* param, U32 size, char* tok, char* def); -S32 zParamGetFloatList(xModelAssetParam* param, U32 size, const char* tok, S32 count, - F32* def, F32* result); +S32 zParamGetFloatList(xModelAssetParam* param, U32 size, const char* tok, S32 count, F32* def, + F32* result); void zEntGetShadowParams(xEnt* ent, xVec3* center, F32* radius, xEntShadow::radius_enum rtype); S32 zParamGetVector(xModelAssetParam* param, U32 size, const char* tok, xVec3 result, xVec3*); S32 zParamGetVector(xModelAssetParam* param, U32 size, char* tok, xVec3 result, xVec3*); S32 zParamGetFloatList(xModelAssetParam* param, U32 size, char* tok, S32 count, F32* def, - F32* result); + F32* result); S32 zParamGetFloatList(xModelAssetParam* param, U32 size, char* tok, S32 count, F32* def, - F32* result); + F32* result); F32 zParamGetFloat(xModelAssetParam* param, U32 size, const char* tok, F32 def); F32 zParamGetFloat(xModelAssetParam* param, U32 size, char* tok, F32 def); S32 zParamGetInt(xModelAssetParam* param, U32 size, const char* tok, S32 def); @@ -57,7 +57,7 @@ void zEntInit(zEnt* ent, xEntAsset* asset, U32 type); // TODO: Misplaced Inlines/Weak functions WEAK void xModelAnimCollStop(xModelInstance& m); WEAK xMat4x3* xEntGetFrame(const xEnt* ent); -WEAK void xSndPlay3D(U32 id, F32 vol, F32 pitch, U32 priority, U32 flags, - const xVec3* pos, F32 radius, sound_category category, F32 delay); +WEAK void xSndPlay3D(U32 id, F32 vol, F32 pitch, U32 priority, U32 flags, const xVec3* pos, + F32 radius, sound_category category, F32 delay); #endif diff --git a/src/SB/Game/zEntPlayer.h b/src/SB/Game/zEntPlayer.h index 86aae4e..249d6de 100644 --- a/src/SB/Game/zEntPlayer.h +++ b/src/SB/Game/zEntPlayer.h @@ -230,7 +230,7 @@ enum _zPlayerType ePlayer_MAXTYPES }; -enum _CurrentPlayer +enum eSNDCurrentPlayer { eCurrentPlayerSpongeBob, eCurrentPlayerPatrick, @@ -364,7 +364,7 @@ struct zPlayerLassoInfo #define SHINY_MAX 99999 -extern _CurrentPlayer gCurrentPlayer; +extern eSNDCurrentPlayer gCurrentPlayer; extern S32 gWaitingToAutoSave; void zEntPlayer_Load(xEnt*, xSerial*); diff --git a/src/SB/Game/zFX.h b/src/SB/Game/zFX.h index 35ff944..e9a5b44 100644 --- a/src/SB/Game/zFX.h +++ b/src/SB/Game/zFX.h @@ -21,6 +21,14 @@ enum zFXGooState zFXGooStateForce32Bit = 0xffffffff }; +enum state_enum +{ + STATE_NONE, + STATE_OFF, + STATE_ON, + STATE_CONSTANT +}; + struct zFXGooInstance { RpAtomic* atomic; @@ -44,6 +52,31 @@ struct zFXGooInstance xVec3 pos_parentOnFreeze; }; +struct popper_data +{ + state_enum state; + xEnt* ent; + RpAtomic* atomic[4]; + U32 atomic_size; + F32 time; + F32 end_time; + union + { + xVec3 model_scale; + U32 pipe_flags; + }; + F32 rate; + F32 vel; + F32 rloc; + F32 rvel; + F32 emitted; + F32 radius; + F32 area; + S32 faces; + S32 max_faces; + F32* weight; +}; + extern U32 gFXSurfaceFlags; void on_spawn_bubble_wall(const tweak_info& tweak); diff --git a/src/SB/Game/zGame.h b/src/SB/Game/zGame.h index beed9a9..2aa9cf9 100644 --- a/src/SB/Game/zGame.h +++ b/src/SB/Game/zGame.h @@ -4,13 +4,19 @@ #include "zEntPlayer.h" #include "zGameState.h" -extern _CurrentPlayer gPendingPlayer; +extern eSNDCurrentPlayer gPendingPlayer; extern F32 sTimeElapsed; extern U32 gLevelChanged; extern U32 startPressed; extern U8 sHackSmoothedUpdate; extern U32 gBusStopIsRunning; +enum _tagGameVidMode +{ + eGameVidModeNTSC, + eGameVidModePAL +}; + enum eGameWhereAmI { eGameWhere_NA, diff --git a/src/SB/Game/zGlobals.h b/src/SB/Game/zGlobals.h index 7e4aac0..03deac2 100644 --- a/src/SB/Game/zGlobals.h +++ b/src/SB/Game/zGlobals.h @@ -288,7 +288,7 @@ struct zPlayerGlobals struct zGlobals : xGlobals { U32 playerTag; - U32 playerLoaded; + U32 playerLoaded; //0x884 U32 playerLoadOrder[8]; U8 invertJoystick; zPlayerGlobals player; @@ -296,7 +296,7 @@ struct zGlobals : xGlobals zCutsceneMgr* cmgr; zCutsceneMgr* DisabledCutsceneDoneMgr; char startDebugMode[32]; - U32 noMovies; + U32 noMovies; // 0x2200? U32 boundUpdateTime; U8 draw_player_after_fx; zGlobalDemoType demoType; diff --git a/src/SB/Game/zGrid.h b/src/SB/Game/zGrid.h index 40b0645..b6933bc 100644 --- a/src/SB/Game/zGrid.h +++ b/src/SB/Game/zGrid.h @@ -11,8 +11,11 @@ extern xGrid colls_oso_grid; extern xGrid npcs_grid; void zGridUpdateEnt(xEnt* ent); -void zGridExit(zScene*); +void zGridExit(zScene* s); void zGridInit(zScene* s); void zGridReset(zScene* s); +void xGridEmpty(xGrid* grid); +void xGridKill(xGrid* grid); + #endif diff --git a/src/SB/Game/zHud.h b/src/SB/Game/zHud.h index 89aa8a7..9592615 100644 --- a/src/SB/Game/zHud.h +++ b/src/SB/Game/zHud.h @@ -2,6 +2,7 @@ #define ZHUD_H #include +#include "xHud.h" namespace zhud { diff --git a/src/SB/Game/zLight.h b/src/SB/Game/zLight.h index 85429ec..d0ad00c 100644 --- a/src/SB/Game/zLight.h +++ b/src/SB/Game/zLight.h @@ -37,7 +37,7 @@ struct _zLight : xBase iLight light; xBase* attached_to; S32 true_idx; - F32* reg; + F32* reg; // 0x5C // 0x60 S32 effect_idx; @@ -59,7 +59,6 @@ void zLightSetVolume(zVolume* vol); void zLightDestroyAll(); void zLightDestroy(_zLight* param_1); void zLightUpdate(xBase* to, xScene*, F32 dt); -S32 zLightEventCB(xBase* param_1, xBase* to, U32 toEvent, const float* param_4, - xBase* param_5); +S32 zLightEventCB(xBase* param_1, xBase* to, U32 toEvent, const float* param_4, xBase* param_5); #endif diff --git a/src/SB/Game/zLightning.h b/src/SB/Game/zLightning.h index ad8fb7c..b58f788 100644 --- a/src/SB/Game/zLightning.h +++ b/src/SB/Game/zLightning.h @@ -88,6 +88,14 @@ struct zLightning F32 time_total; }; +struct zLightningFuncPiece +{ + xVec3 coef0; + F32 param; + xVec3 coef1; + U32 pad; +}; + void lightningTweakChangeType(tweak_info& t); void lightningTweakStart(tweak_info& t); void zLightningInit(); diff --git a/src/SB/Game/zMovePoint.h b/src/SB/Game/zMovePoint.h index fb58329..e1fbfbc 100644 --- a/src/SB/Game/zMovePoint.h +++ b/src/SB/Game/zMovePoint.h @@ -33,9 +33,9 @@ zMovePoint* zMovePoint_From_xAssetID(U32 aid); void zMovePointSave(zMovePoint* ent, xSerial* s); void zMovePointLoad(zMovePoint* ent, xSerial* s); void zMovePointReset(zMovePoint* m); -S32 zMovePointEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3); +void zMovePointEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3, U32); F32 zMovePointGetNext(const zMovePoint* current, const zMovePoint* prev, zMovePoint** next, - xVec3* hdng); + xVec3* hdng); xVec3* zMovePointGetPos(const zMovePoint* m); F32 zMovePointGetDelay(const zMovePoint* m); F32 xMovePointGetDelay(const xMovePoint* m); diff --git a/src/SB/Game/zNPCMessenger.h b/src/SB/Game/zNPCMessenger.h index 18af94b..b5bf624 100644 --- a/src/SB/Game/zNPCMessenger.h +++ b/src/SB/Game/zNPCMessenger.h @@ -9,7 +9,7 @@ void zNPCMsg_ScenePrepare(); void zNPCMsg_Startup(); void zNPCMsg_Shutdown(); void zNPCMsg_AreaNotify(zNPCCommon* sender, en_NPC_MSG_ID msgid, F32 rad, S32 filter, - en_NPCTYPES toNPCType); + en_npctyp toNPCType); void zNPCMsg_Timestep(xScene* xscn, F32 dt); struct NPCPSClt diff --git a/src/SB/Game/zNPCMgr.h b/src/SB/Game/zNPCMgr.h index c941406..00dd6c4 100644 --- a/src/SB/Game/zNPCMgr.h +++ b/src/SB/Game/zNPCMgr.h @@ -15,7 +15,7 @@ struct zNPCMgr : RyzMemData xBase selfbase; zNPCMgr(); - enum en_NPCTYPES NPCTypeForModel(U32 brainID, U32 mdl_hash); + enum en_npctyp NPCTypeForModel(U32 brainID, U32 mdl_hash); void BackdoorUpdateAllNPCsOnce(xScene*, F32); void PrepTypeTable(); void Startup(); @@ -57,6 +57,6 @@ void zNPCMgr_scenePostParticleRender(); void zNPCMsg_SceneFinish(); xEnt* zNPCMgr_createNPCInst(S32, xEntAsset* assdat); -S32 zNPCMgr_OrdComp_npcid(void* vkey, void* vitem); +//S32 zNPCMgr_OrdComp_npcid(void* vkey, void* vitem); #endif diff --git a/src/SB/Game/zNPCTypes.h b/src/SB/Game/zNPCTypes.h index c9baca0..967c44a 100644 --- a/src/SB/Game/zNPCTypes.h +++ b/src/SB/Game/zNPCTypes.h @@ -1,85 +1,117 @@ #ifndef ZNPCTYPES_H #define ZNPCTYPES_H -enum en_NPCTYPES +enum en_npctyp { - NPC_TYPE_UNKNOWN = 0, - NPC_TYPE_BASIC = 'NT00', - NPC_TYPE_COMMON = 'NT01', - NPC_TYPE_AMBIENT = 'NTS0', - NPC_TYPE_VILLAGER = 'NTS1', - NPC_TYPE_ROBOT = 'NTS2', - NPC_TYPE_BOSS = 'NTS3', - NPC_TYPE_TEST = 'NTS4', - NPC_TYPE_BADGUY = 'NTS5', - NPC_TYPE_JELLYPINK = 'NTA0', - NPC_TYPE_JELLYBLUE = 'NTA1', - NPC_TYPE_KINGNEPTUNE = 'NTA2', - NPC_TYPE_MIMEFISH = 'NTA3', - NPC_TYPE_COW = 'NTA4', - NPC_TYPE_TIKI_WOOD = 'NTT0', - NPC_TYPE_TIKI_LOVEY = 'NTT1', - NPC_TYPE_TIKI_QUIET = 'NTT2', - NPC_TYPE_TIKI_THUNDER = 'NTT3', - NPC_TYPE_TIKI_STONE = 'NTT4', - NPC_TYPE_FISH = 'NTF0', - NPC_TYPE_FISH_MALE = 'NTF1', - NPC_TYPE_FISH_FEMALE = 'NTF2', - NPC_TYPE_FISH_ELDER = 'NTF3', - NPC_TYPE_FISH_ELDESS = 'NTF4', - NPC_TYPE_FISH_BOY = 'NTF5', - NPC_TYPE_FISH_GIRL = 'NTF6', - NPC_TYPE_BALLOONBOY = 'NTF7', - NPC_TYPE_GARY = 'NTF8', - NPC_TYPE_SQUIDWARD = 'NTF9', - NPC_TYPE_SQUIDWARD_MUSIC = 'NTF:', - NPC_TYPE_SQUIDWARD_BANDAID = 'NTF;', - NPC_TYPE_DUTCHMAN_NSB = 'NTF<', - NPC_TYPE_SANDYBIKINI = 'NTF=', - NPC_TYPE_SANDYNPC = 'NTF>', - NPC_TYPE_PATNPC = 'NTF?', - NPC_TYPE_BOBNPC = 'NTF@', - NPC_TYPE_PLANKNPC = 'NTFA', - NPC_TYPE_MRKRABS = 'NTFB', - NPC_TYPE_MSPUFFS = 'NTFC', - NPC_TYPE_LARRY = 'NTFD', - NPC_TYPE_BUBBUDDY = 'NTFE', - NPC_TYPE_NEWSFISH = 'NTFF', - NPC_TYPE_NEWSFISHTV = 'NTFG', - NPC_TYPE_MOTORIST = 'NTFH', - NPC_TYPE_MERMANCHAIR = 'NTFI', - NPC_TYPE_MERMAN = 'NTFJ', - NPC_TYPE_BARNACLEBOY = 'NTFK', - NPC_TYPE_WORM = 'NTFL', - NPC_TYPE_HAMMER = 'NTR0', - NPC_TYPE_HAMSPIN = 'NTR1', - NPC_TYPE_TARTAR = 'NTR2', - NPC_TYPE_GLOVE = 'NTR3', - NPC_TYPE_MONSOON = 'NTR4', - NPC_TYPE_SLEEPY = 'NTR5', - NPC_TYPE_ARFDOG = 'NTR6', - NPC_TYPE_ARFARF = 'NTR7', - NPC_TYPE_CHUCK = 'NTR8', - NPC_TYPE_TUBELET = 'NTR9', - NPC_TYPE_TUBESLAVE = 'NTR:', - NPC_TYPE_SLICK = 'NTR;', - NPC_TYPE_FODDER = 'NTR<', - NPC_TYPE_FODBOMB = 'NTR=', - NPC_TYPE_FODBZZT = 'NTR>', - NPC_TYPE_CHOMPER = 'NTR?', - NPC_TYPE_CRITTER = 'NTR@', - NPC_TYPE_DUPLOTRON = 'NTD0', - NPC_TYPE_KINGJELLY = 'NTH0', - NPC_TYPE_DUTCHMAN = 'NTH1', - NPC_TYPE_PRAWN = 'NTH2', - NPC_TYPE_BOSSSANDY = 'NTB0', - NPC_TYPE_BOSSPAT = 'NTB1', - NPC_TYPE_BOSS_SB1 = 'NTB2', - NPC_TYPE_BOSSBOBBY = 'NTB3', - NPC_TYPE_BOSSPLANKTON = 'NTB4', - NPC_TYPE_BADGUYMEDIUM = 'NBG0', - NPC_TYPE_NOMORE = 'NBG1', - NPC_TYPE_FORCE = 0x7fffffff, + NPC_TYPE_UNKNOWN, + NME_TYPE_UNKNOWN = 0, + NPC_TYPE_BASIC, + NPC_TYPE_COMMON, + NPC_TYPE_MELEE, + NPC_TYPE_MELEE_BOT, + NPC_TYPE_MINE, + NPC_TYPE_ORACLE, + NPC_TYPE_TURRET, + NPC_TYPE_SPIN_TURRET, + NPC_TYPE_SHOOTER, + NPC_TYPE_VIOLET_GUN, + NPC_TYPE_SECURITY_BIRD, + NPC_TYPE_FIRE_STREAMER, + NPC_TYPE_WATER_STREAMER, + NPC_TYPE_CAR, + NPC_TYPE_FRIENDLY, + NPC_TYPE_TANK, + NPC_TYPE_MELEE_SHIELDED, + NPC_TYPE_LOBBER, + NPC_TYPE_FLY_ROCKET, + NPC_TYPE_FLY_SHOOTER, + NPC_TYPE_FLY_LOBBER, + NPC_TYPE_VELOCIPOD, + NPC_TYPE_VELOCIPOD_DASH, + NPC_TYPE_MISSILE, + NPC_TYPE_HELIBOT, + NPC_TYPE_VIPER, + NPC_TYPE_BOT_LOB_WATER, + NPC_TYPE_BOT_LEAP, + NPC_TYPE_MONOPOD, + NPC_TYPE_INCREDIBALL, + NPC_TYPE_FROZONE, + NPC_TYPE_BOSS_OMNIDROID, + NPC_TYPE_BOSS_OMNIDROID10, + NPC_TYPE_BOSS_BOMB_CHOPPER, + PLAYER_TYPE_MR_INCREDIBLE_YOUNG, + PLAYER_TYPE_MR_INCREDIBLE_DISGUISED, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_BLUE, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FAT_RED, + PLAYER_TYPE_MR_INCREDIBLE_OLD_FIT, + PLAYER_TYPE_ELASTI_GIRL_YOUNG, + PLAYER_TYPE_ELASTI_GIRL_OLD, + PLAYER_TYPE_DASH_REGULAR, + PLAYER_TYPE_DASH_COSTUMED, + PLAYER_TYPE_INCREDI_BALL, + PLAYER_TYPE_VIOLET, + NME_TYPE_COMMON, + NME_TYPE_TIKI, + NME_TYPE_TIKI_WOOD, + NME_TYPE_TIKI_LOVEY, + NME_TYPE_TIKI_QUIET, + NME_TYPE_TIKI_THUNDER, + NME_TYPE_TIKI_STONE, + NME_TYPE_FIRST_SEE_TYPE, + NME_TYPE_CRITTER = 0x35, + NME_TYPE_CRITBASIC, + NME_TYPE_CRITJELLY, + NME_TYPE_BUCKETJELLY, + NME_TYPE_TURRET, + NME_TYPE_TURBARREL_V1, + NME_TYPE_TURBARREL_V2, + NME_TYPE_TURBARREL_V3, + NME_TYPE_TURSPIRAL, + NME_TYPE_TURPOPUP, + NME_TYPE_TURTURNER, + NME_TYPE_TURTRACE, + NME_TYPE_TURARTY, + NME_TYPE_STANDARD, + NME_TYPE_FOGGER_V1, + NME_TYPE_FOGGER_V2, + NME_TYPE_FOGGER_V3, + NME_TYPE_SLAMMER_V1, + NME_TYPE_SLAMMER_V2, + NME_TYPE_SLAMMER_V3, + NME_TYPE_FLINGER_V1, + NME_TYPE_FLINGER_V2, + NME_TYPE_FLINGER_V3, + NME_TYPE_SPINNER_V1, + NME_TYPE_SPINNER_V2, + NME_TYPE_SPINNER_V3, + NME_TYPE_POPPER_V1, + NME_TYPE_POPPER_V2, + NME_TYPE_POPPER_V3, + NME_TYPE_ZAPPER_V1, + NME_TYPE_ZAPPER_V2, + NME_TYPE_ZAPPER_V3, + NME_TYPE_MERVYN_V1, + NME_TYPE_MERVYN_V2, + NME_TYPE_MERVYN_V3, + NME_TYPE_BUCKOTRON_V1, + NME_TYPE_BUCKOTRON_V2, + NME_TYPE_BUCKOTRON_V3, + NME_TYPE_BUCKOTRON_V4, + NME_TYPE_BUCKOTRON_V5, + NME_TYPE_BUCKOTRON_V6, + NME_TYPE_BUCKOTRON_V7, + NME_TYPE_LAST_SEE_TYPE = 0x5e, + NME_TYPE_FROGFISH, + NME_TYPE_DENNIS_V1, + NME_TYPE_DENNIS_V2, + NME_TYPE_NEPTUNE, + NME_TYPE_SBBAT, + NME_TYPE_TONGUESPIN, + NME_TYPE_MINDY, + NME_TYPE_SPONGEBOB, + NME_TYPE_PATRICK, + NPC_TYPE_NOMORE, + NPC_TYPE_FORCE = 0x7fffffff }; struct xFactory; diff --git a/src/SB/Game/zRewards.h b/src/SB/Game/zRewards.h new file mode 100644 index 0000000..3484cc8 --- /dev/null +++ b/src/SB/Game/zRewards.h @@ -0,0 +1,42 @@ +#ifndef ZREWARDS_H +#define ZREWARDS_H + +#include "types.h" +#include "zEnt.h" +#include "zEntPickup.h" +#include "zNPCTypes.h" + +struct zRewardsQ +{ + U8 active; + S32 numRewards; + xVec3 spawnPos; +}; + +struct zRewardsMgr +{ + zRewardsQ rewardsQ[20]; + F32 comboTime; + F32 comboTimer; + U32 numCratesDestroyed; + U32 numEnemiesDefeated; + U32 lastComboManlinessPoints; // 0x1a0 + U32 lastComboIndex; // 0x1a4 + F32 spawnTimer; + bool playerDead; // 0x1ac + zEntPickup* enemyManlinessPoints[20][5]; + + void SetPlayerDead(); + void GiveAllRewardsNow(); + void ResetLastComboIndex(); + U32 GetLastComboIndex() const; + void ResetLastComboManlinessPoints(); + U32 GetLastComboManlinessPoints() const; + void SpawnRewards(S32 numRewards, xVec3& fromPos); + void Update(F32 dt); + U32 GetComboManlinessPoints(); + void GiveReward(en_npctyp enemy, xVec3& fromPos); + U32 GetUpgradeRangeUpper() const; +}; + +#endif diff --git a/src/SB/Game/zTalkBox.h b/src/SB/Game/zTalkBox.h index da83aad..0afe3d5 100644 --- a/src/SB/Game/zTalkBox.h +++ b/src/SB/Game/zTalkBox.h @@ -7,19 +7,7 @@ #include "xScene.h" #include "zNMECommon.h" #include "xBase.h" - -enum state_enum -{ - - BEGIN_STATE, - STATE_START, - STATE_NEXT, - STATE_WAIT, - STATE_STOP, - END_STATE, - MAX_STATE = 0x5, - STATE_INVALID = 0xffffffff, -}; +#include "zFX.h" // DIRECTLY PORTED FROM BFBB diff --git a/src/SB/Game/zTextBox.cpp b/src/SB/Game/zTextBox.cpp index cd27a79..00ce1e4 100644 --- a/src/SB/Game/zTextBox.cpp +++ b/src/SB/Game/zTextBox.cpp @@ -219,7 +219,7 @@ void ztextbox::load(const asset_type& a) baseType = eBaseTypeTextBox; asset = (asset_type*)&a; - eventFunc = cb_dispatch; + //eventFunc = cb_dispatch; if (linkCount) { diff --git a/src/SB/Game/zUI.h b/src/SB/Game/zUI.h index b937477..e7beaaf 100644 --- a/src/SB/Game/zUI.h +++ b/src/SB/Game/zUI.h @@ -5,6 +5,227 @@ #include "xMgr.h" #include "xIni.h" +#include "zWadUI.h" + +struct zUIAsset : xDynAsset +{ + F32 x; + F32 y; + F32 z; + F32 width; + F32 height; + S32 flags; + U32 color; + U32 selectedMotion; + U32 unselectedMotion; + U8 brightness; + U8 pad[3]; + U32 autoMenuUp; + U32 autoMenuDown; + U32 autoMenuLeft; + U32 autoMenuRight; + U32 custom; + U32 customWidget; +}; + +struct zUIMotionAsset : xBaseAsset +{ + U8 cmdCount; + U8 in; + U8 pad[2]; + U32 cmdSize; + F32 totalTime; + F32 loopTime; +}; + +struct zUI; + +struct zUIMotionFrame +{ + F32 offsetX; + F32 offsetY; + F32 scaleX; + F32 scaleY; + F32 centerScaleX; + F32 centerScaleY; + F32 textScaleX; + F32 textScaleY; + F32 rotation; + F32 offsetU; + F32 offsetV; + xColor_tag color; + U8 brightness; +}; + +struct zUICustom +{ + zUI* ui; + + void* __nw(U32 size); + void PostApplyMotionFrame(zUIMotionFrame*); + void PreApplyMotionFrame(zUIMotionFrame*); + void PostInitMotion(); + void PreInitMotion(); + void Exit(); + void PostRender(); + U8 PreAutoMenu(); + U8 PreRender(); + void PostUpdate(float); + void PreUpdate(float); + U8 HandleEvent(xBase*, unsigned int, const float*, xBase*, unsigned int); + void ResetMotion(); + void Reset(); + void Setup(); + void Init(); + U8 IsSystem(); + U8 IsSignalAllowed(); +}; + +struct zUICustomConditionallyDisabled : zUICustom +{ + S32 padding; // aligns 2 functions + _zConditional* m_pCondition; + U8 m_bCondition; + + U8 PreRender(); + U8 PreAutoMenu(); + void PreUpdate(); +}; + +struct State +{ + F32 x; + F32 y; + F32 width; + F32 height; + xColor_tag color; + U8 brightness; + U8 pad[3]; +}; + +struct zUI : xBase +{ + zUIAsset* asset; + State current; + State startMovement; + F32 z; + zUIMotionAsset* selectedMotion; + zUIMotionAsset* unselectedMotion; + zUICustom* custom; + U8 visible; + U8 focus; + U8 lastFocus; + U8 selected; + U8 brighten; + U8 hdrPass; + U8 locked; + zUIMotionAsset* motion; + F32 motionTime; + U8 motionFiredEvent; + U8 motionLoop; + + void Unselect(); + void Select(); + void Invisible(); + void Visible(); + void FocusOff(); + void FocusOn(); + void AutoMenu(void* item, U32 event); + void DoApplyMotionFrame(zUIMotionFrame* frame); + void DoInitMotion(); + void ApplyMotion(); + F32 CalcAcceleratedDistance(F32 totalDistance, F32 startTime, F32 endTime, F32 accelTime, + F32 decelTime); + void RunMotion(zUIMotionAsset* asset, U8 loop, U8 reset); + void DoExit(); + void DoUpdate(F32 dt, U32 buttonsPressed); + void DoHandleEvent(U32 toEvent, F32* toParam, xBase* toParamWidget); + void DoResetMotion(); + void DoReset(); + void DoSetup(); + void Signal(xBase* from, U32 event); + U8 IsUIText(); +}; + +struct zUICustomImageSlideshow : zUICustom +{ + U32 m_CurrentImage; + U32 m_NumImages; + xGroup* m_TextureGroup; + + void UpdateTexture(); + void SetTextureList(xGroup* textureList); + U8 HandleEvent(U32 toEvent); + void Reset(); +}; + +struct zUIControllerAsset : zUIAsset +{ +}; + +struct zUIController : zUI +{ + void DoInit(); + U32 GetSortKey(); + void DoRender() const; +}; + +struct zUITextAsset : zUIAsset +{ + U32 textID; + U8 font; + U8 fontSizeW; + U8 fontSizeH; + U8 fontSpacingX; + U8 fontSpacingY; + U8 textBoxInsetTop; + U8 textBoxInsetLeft; + U8 textBoxInsetRight; + U8 textBoxInsetBottom; + U8 justifyX; + U8 justifyY; + U8 textFlags; + xColor_tag shadowColor; + F32 shadowOffsetX; + F32 shadowOffsetY; + F32 textScaleX; + F32 textScaleY; +}; + +struct zUIUserStringAsset : zUITextAsset +{ + U8 hardMaxChars; + U8 softMaxChars; +}; + +struct zUIText : zUI +{ + xColor_tag shadowColor; + char* text; + + void DoApplyMotionFrame(zUIMotionFrame* frame); + void DoHandleEvent(xBase* from, U32 toEvent, F32* toParam, xBase* toParamWidget, + U32 toParamWidgetID); + void DoRender(); + void setup_textbox(xtextbox& tb, zUITextAsset* asset); + void DoReset(); + void DoInit(); + U8 IsUIText(); + U32 GetSortKey(); +}; + +struct zUIUserString : zUIText +{ + char* textBuffer; + S32 length; + S32 maxLength; + + U32 GetSortKey() const; + void DoHandleEvent(xBase* from, U32 toEvent, F32* toParam, xBase* toParamWidget, + U32 toParamWidgetID); + void DoReset(); + void DoInit(); +}; struct _zUI : zEnt { diff --git a/src/SB/Game/zWad1.cpp b/src/SB/Game/zWad1.cpp index f072bc4..5134a38 100644 --- a/src/SB/Game/zWad1.cpp +++ b/src/SB/Game/zWad1.cpp @@ -79,7 +79,7 @@ void zEnvInit(_zEnv* env, xEnvAsset* easset) xBaseInit(env, easset); env->easset = easset; - env->eventFunc = zEnvEventCB; + //env->eventFunc = zEnvEventCB; if (env->linkCount) { @@ -639,7 +639,7 @@ void zDispatcher_Init(st_ZDISPATCH_DATA* dspdata, xBaseAsset* bass) { xBaseInit(dspdata, bass); dspdata->rawass = bass; - dspdata->eventFunc = ZDSP_elcb_event; + //dspdata->eventFunc = ZDSP_elcb_event; if (dspdata->linkCount != 0) { dspdata->link = (xLinkAsset*)(dspdata->rawass + 1); @@ -921,7 +921,7 @@ void zConditionalInit(void* b, void* asset) _zConditional* cond = (_zConditional*)b; xBaseInit((xBase*)cond, (xBaseAsset*)asset); - cond->eventFunc = (xBaseEventCB)zConditionalEventCB; + //cond->eventFunc = (xBaseEventCB)zConditionalEventCB; //cond->asset = asset; if (cond->linkCount != 0) @@ -1081,6 +1081,8 @@ U32 zCollGeom_EntSetup(xEnt* ent) // zCar +// Refrain from doing these functions until the zCar struct is fixed. + #define Car 1 #define Idle01 2 #define Drive 3 @@ -1134,5 +1136,9 @@ xAnimTable* CreateAnimTable() U32 zCar::JumpEndedCB(xAnimTransition* unk0, xAnimSingle* anim, void* unk3) { zCar* pCar = zEntPlayerCarGetCar(); - lastPositionPar[0]; +} + +U32 zCar::AnimDefaultCB(xAnimTransition* unk0, xAnimSingle* anim, void*) +{ + zCar* pCar = zEntPlayerCarGetCar(); } diff --git a/src/SB/Game/zWad2.cpp b/src/SB/Game/zWad2.cpp index 86f81bd..5cceea2 100644 --- a/src/SB/Game/zWad2.cpp +++ b/src/SB/Game/zWad2.cpp @@ -1,15 +1,420 @@ #include "zWad2.h" +#include "iTime.h" -// zNPCMgr +// Data + +// all long32's were replaced with S64 -extern S32 g_modinit; -extern zNPCMgr* g_npcmgr; +char buffer[16]; +// Why is there a duplicate in dwarf? +//char buffer[16]; +F32 scale; +U32 gFXSurfaceFlags; +basic_rect screen_bounds; // are these both correct? +basic_rect default_adjust; +xFXRing sPatrickStunRing[3]; +xFXRing sThunderRing[1]; +xFXRing sHammerRing[1]; +xFXRing sPorterRing[2]; +xFXRing sMuscleArmRing[1]; +F32 defaultGooTimes[4]; +F32 defaultGooWarbc[4]; +zFXGooInstance zFXGooInstances[24]; +ztextbox* sGooTimerTextBox; +iSndHandle sGooSndHandle; +iSndGroupHandle sGooSndGrpHandle; +xEnt* g_entForGoo[24]; +xVec3 zfx_bubblehit_pos_rnd; +xVec3 zfx_bubblehit_vel_rnd; +F32 zfx_bubblehit_vel_scale; +xVec3 bubbletrail_pos_rnd; +xVec3 bubbletrail_vel_rnd; +F32 bubbletrail_vel_scale; +xVec3 bubblewall_scale; +xVec3 bubblewall_velscale; +U16 popper_weight_sizes[8]; +popper_data poppers[8]; +popper_data instantPopper; +entrail_type entrail_types[7]; +entrail_data* entrails; +U32 entrails_size; +U32 ribbonCount; +xFXRibbon* ribbonPool; +U8* ribbonInUse; +F32 thresh; +// another duplicate? +//F32 thresh; +S32 sMemDepthJustHIPStartPlayer; +U32 sPlayerMarkerStartID; +F32 sGameOverTimer; +F32 sTimeElapsed; +F32 gRealTimeElapsed; +S64 sTimeLast; +S64 sTimeCurrent; +U32 gLevelChanged; +S32 g_hiphopReloadHIP; +S32 g_hiphopForcePortal; +S32 g_hiphopResetOnly; +S32 g_hiphopEnabled; +xColor_tag sFadeColor; +U32 gzAsyncSceneID; +U32 startPressed; +xColor_tag black; +xColor_tag clear; +U32 gSoak; +char** soaklevels; +char* allsoaklevels[33]; +char* otherNonSoakLevels[44]; +F32 SOAK_DELAY; +F32 SOAK_DELAYRAND; +F32 soaktime; +S32 doCallLogging; +S32 enableMemDebugLogging; +S32 enableHackNProbeLogging; +S32 enableSuperSoaker; +S32 enableMuttonMasher; +S32 superSoak_simulatePlayerAction; +U32 superSoakExtraPadOnInput; +U32 superSoakExtraPadPressInput; +xPortalAsset dummyPortalAsset; +_zPortal dummyPortal; +U32 loadMeter; +U32 loadCDMeter; +S64 t0; +S64 t1; +S64 w0; +S64 w1; +S64 gloop_time; +S64 gwait_time; +S32 gloop_ct; +F32 gloop_time_secs; +F32 gwait_time_secs; +F32 gloop_net_time_secs; +F32 snd_radius; +U32 gLastProfileDump; +void (*zSB04_BossPreRender)(); +RwCamera* sGameScreenTransCam; +RpWorld* gWorld; +RpLight* DirectionalLight; +U32 bgID; +F32 bgu1; +F32 bgv1; +F32 bgu2; +F32 bgv2; +U8 bgr; +U8 bgg; +U8 bgb; +U8 bga; +S32 g_enableGameExtras; +S32 g_currDay; +S32 g_currMonth; +S32 g_gameExtraFlags; +EGGItemFuncs EGGModuleTest; +EGGItemFuncs EGGBirthDay; +EGGItemFuncs EGGSnow; +EGGItemFuncs EGGRain; +EGGItemFuncs EGGEmpty; +EGGItem g_eggBasket[2]; +S32 g_flg_chEnabled; +F32 sCheatTimer; +S32 sCheatInputCount; +U32 sCheatAddShiny[16]; +U32 sCheatAddSpatulas[16]; +U32 sCheatBubbleBowl[16]; +U32 sCheatCruiseBubble[16]; +U32 sCheatMonsterGallery[16]; +U32 sCheatArtTheatre[16]; +U32 sCheatTestCheats[16]; +U32 sCheatTargetCostumeSBCaveman[16]; +U32 sCheatTargetCostumeSBRippedShorts[16]; +U32 sCheatTargetCostumePatGoofyGoober[16]; +U32 sCheatTargetCostumePatCaveman[16]; +U32 sMaxHealth[16]; +U32 sManliness[16]; +U32 sGoofyGoober[16]; +U32 sBubbleBash[16]; +U32 sMachoBowl[16]; +U32 sSonicGuitar[16]; +U32 sBellyFlop[16]; +U32 sPickupThrow[16]; +U32 sAllMoves[16]; +U32 sAllUpgradedMoves[16]; +U32 sChaChing[16]; +U32 sTenSkillPoints[16]; +U32 sTenTreasureChests[16]; +U32 sAllTasks[16]; +GECheat cheatList[10]; +U32 sCheatPressed[16]; +xEnt* sGalleryTitle; +S32 gGameState; +eGameMode gGameMode; +_GameOstrich gGameOstrich; +U32 sGameMode_DispatchTable[13]; +U32 sGameState_DispatchTable[8]; +U32 sPauseState_DispatchTable[2]; +U32 sSaveState_DispatchTable[3]; +U32 sOptionsState_DispatchTable[1]; +U32 sLoadState_DispatchTable[3]; +U32 sTitleState_DispatchTable[2]; +U32 sIntroState_DispatchTable[4]; +U32 sGameState_DoDispatchTable[8]; +U32 sPauseState_DoDispatchTable[2]; +U32 sSaveState_DoDispatchTable[3]; +U32 sOptionsState_DoDispatchTable[1]; +U32 sLoadState_DoDispatchTable[3]; +U32 sTitleState_DoDispatchTable[2]; +U32 sIntroState_DoDispatchTable[4]; +zGooParams* zgoo_gps; +S32 zgoo_ngps; +S32 zgoo_nused; +zGrapplePoint* sGrapplePoints; +S32 sNumGrapplePoints; +xGrid colls_grid; +xGrid colls_oso_grid; +xGrid npcs_grid; +xGrid grabbable_grid; +S32 zGridInitted; +zHangableObject* sPlayerHangObj; +xVec3 playerDPos; +zHangableObject* sHangableObjects; +S32 sNumHangableObjects; +zHitSourceMapEntry zHitSourceMap[22]; +U32 zHitSourceCCs[21]; +U32 zHitTargetCCs[7]; +S32 sPatTongueLastCount; +RwRaster* sLassoRaster; +zLassoGuideList sGuideList[64]; +U32 sNumGuideLists; +zLassoGuide* sCurrentGuide; +RxObjSpace3DVertex* lnverts; +S32 negativeHondaX; +PatTongueVert sPatMouthVert[12]; +PatTongueVert sPatTipVert[12]; +PatTongueVert sPatTeethVert[2]; +xVec3 sPatHitchPos; +RwMatrixTag sPatTongueTipMatrix; +xVec3 sPatTongueLastVec[16]; +xVec3 sPatTongueLastRight; +_zLight* sLight[32]; +S32 sLightTotal; +_tagPartition sLightPart; +zVolume* sPartitionVolume; +S32 gNumTemporaryLights; +_zLight* gTemporaryLights[32]; +// "illegal use of void" +//void (*sEffectFuncs)(_zLight*, F32)[18]; +//void (*sEffectInitFuncs)(_zLight*)[18]; +xVec3 sDefaultShadowVec; +zLightning* sLightning; +zParEmitter* sSparkEmitter; +RwRaster* sLightningRaster; +RwRaster* sLightningRasterBranch; +RwTexture* sLightningParticleRaster; +F32 LIGHTNING_FADE_DIST_SQR; +F32 LIGHTNING_CULL_DIST_SQR; +xFuncPiece sLFuncX[10]; +xFuncPiece sLFuncY[10]; +xFuncPiece sLFuncZ[10]; +xVec3 sLFuncVal[10]; +xVec3 sLFuncSlope[2][10]; +F32 sLFuncEnd[10]; +F32 sLFuncJerkFreq; +F32 sLFuncJerkTime; +F32 sLFuncShift; +F32 sLFuncMaxPStep; +F32 sLFuncMinPStep; +F32 sLFuncMinScale; +F32 sLFuncMaxScale; +F32 sLFuncScalePerLength; +F32 sLFuncMinSpan; +F32 sLFuncSpanPerLength; +F32 sLFuncSlopeRange; +F32 sLFuncUVSpeed; +F32 sLFuncUVOffset; +zLightningFuncPiece sLFuncNew[11]; +_tagLightningAdd gLightningTweakAddInfo; +xVec3 sTweakStart; +xVec3 sTweakEnd; +tweak_callback sLightningStartCB; +tweak_callback sLightningChangeCB; +CollisionInfo collisionInfo; +xVec3* posArray; +xVec3 sPoint[5]; +F32 sSize[5]; +S32 system_count; +lightweight_system_base* system[10]; +U32 sLODTableCount; +zLODTable* sLODTableList; +U32 sManagerIndex; +U32 sManagerCount; +F32 sLODFadeDistance; +zLODManager sManagerList[2048]; +S32 sFirstBoot; +S32 logoTmr; +F32 time_elapsed; +F32 time_last; +F32 time_current; +F32 sAttractMode_timer; +F32 sOneLiner_timer; +S32 promptSel; +S32 card; +S32 var; +S32 fullCard; +S32 sInMenu; +F32 ONELINER_WAITTIME; +F32 holdTmr; +U8 sAllowAttract; +PowerUpMenuTableEntry sPowerUpMenuTable[11]; +U32 sPowerUpMenuTableSize; +char* cPowerUpMenuRefreshGroupName; +PowerUpMovieTableEntry sPowerUpMovieTable[10]; +U32 sPowerUpMovieTableSize; +taskEntry sDefaultWorldTasks[20]; +U32 sNumWorlds; +extraEntry sExtrasList[50]; +U32 sNumExtras; +U8 sNumChestsNeeded; +eFMVFile sExtrasMovieList[14]; +S32 sExtrasMovieListSize; +extraCostumeEntry sExtraCostumeList[8]; +U32 sExtraCostumeListSize; +U8 bNoChatter; +xModelInstance* tempModel; +U32 sNextSceneID; +xVec3 sparkleStart; +xVec3 sparkleEnd; +xVec3 sparkleScale; +xVec3 sparkleVel; +F32 sparkleTime; +F32 totalTimeForEffect; +F32 multiplier; +F32 randomYOffset; +F32 probability; +zUITextAsset* powerupText[10]; +S32 powerupIndex; +U8 effectStarted; +F32 fmvDelay; +iSndHandle upgradeSound; +iSndGroupHandle upgradeSoundGroupHandle; +xSoundFX* sCurrentChatter; +zMovePoint* g_mvpt_list; +S32 g_mvpt_cnt; +zMusicTrackInfo sMusicTrack[2]; +xSndGroup* spMusicGroup; +zMusicState sMusic; +F32 gDialogueMusicLevel; +S32 g_modinit; +zNPCMgr* g_npcmgr; +NPCBrainTableEntry g_brainTable[67]; +char* EVENT_TYPE_STRINGS[49]; +//_anon5 __vt__Q24zNPC4base; +//S32 (*zNPCMgr_OrdComp_npcid)(void*, void*); +S32 (*zNPCMgr_OrdTest_npcid)(void*, void*); +zGlobals globals; +xQCControl xqc_def_ctrl; +extern const xVec3 g_O3; +xGlobals* xglobals; +S32 (*MVPT_dflt_chklos)(void*, xVec3*, zMovePoint*); +//void (*zMovePointEventCB)(xBase*, xBase*, U32, F32*, xBase*, U32); +U32 gActiveHeap; +_tagGameVidMode gVidMode; +//_anon6 __vt__22zUICustomPalRedirector; +//_anon40 __vt__9zUICustom; +//_anon36 __vt__21zUICustomDialogPlayer; +//_anon14 __vt__33zUICustomUpgradeTutorialContoller; +U32 ourGlobals[4096]; +//_anon22 __vt__20zUICustomLoadingText; +//_anon39 __vt__18zUICustomExtrasArt; +//_anon37 __vt__20zUICustomExtrasSound; +//_anon30 __vt__19zUICustomExtrasIcon; +//_anon44 __vt__22zUICustomExtrasManager; +F32 SECS_PER_VBLANK; +U32 SCENE_ID_MNU_START; +extern _tagTRCPadInfo gTrcPad[4]; +xVec3 m_Null; +_tagxPad mPad[4]; +U32 gFrameCount; +xColor_tag g_CLEAR; +xColor_tag g_BLACK; +_zEnv* gCurEnv; +xMat4x3 g_I3; +//xEnt* (*AddToLODList)(xEnt*, xScene*, void*); +U8 HDR_brightening; +tagiRenderArrays gRenderArr; +// xColor_tag g_WHITE; +_tagxPad* gDebugPad; +//void (*lightningTweakStart)(tweak_info&); +void (*EventCB)(xBase*, xBase*, U32, F32*, xBase*, U32); +RpWorld* gLightWorld; +//void (*zLightEventCB)(xBase*, xBase*, U32, F32*, xBase*, U32); +void (*zHangable_EventCB)(xBase*, xBase*, U32, F32*, xBase*, U32); +S32 gCartwheelButton; +S32 gBowlButton; +S32 gBashButton; +xVec3 m_UnitAxisY; +eSNDCurrentPlayer gCurrentPlayer; +U32 FB_XRES; +U32 FB_YRES; +F32 VBLANKS_PER_SEC; +U32 gBusStopIsRunning; +xSndGlobals gSnd; +U32 gSceneFrameCount; +F32 speedOfSound; +//void (*on_spawn_bubble_wall)(tweak_info&); +void (*RenderThread)(void*); +//_anon45 __vt__14zLoadingScreen; +//_anon46 __vt__Q26zAsync6Screen; +xVec3 g_Y3; +RpAtomic* (*gAtomicRenderCallBack)(RpAtomic*); +//RpAtomic* (*AtomicDefaultRenderCallBack)(RpAtomic*); +RxPipeline* xFXgooPipeline; +RpAtomic* (*zFXGooRenderAtomic)(RpAtomic*); +U8 _enabled; +void (*cb_dispatch)(xBase*, xBase*, U32, F32*, xBase*, U32); +//_anon38 __vt__9zNMEMindy; +//_anon19 __vt__12zNMEFriendly; +//_anon9 __vt__10zNMECommon; +//_anon3 __vt__14zNMENPCWrapper; +//_anon2 __vt__14zNMETongueSpin; +//_anon35 __vt__9zNMESBBat; +//_anon13 __vt__15zBossCam_Binary; +//_anon11 __vt__4xCam; +//_anon0 __vt__11zNMENeptune; +////_anon12 __vt__8zNMEBoss; +//_anon4 __vt__10zNMEDenToo; +//_anon34 __vt__15DennisLetMeKnow; +//_anon29 __vt__8xPSYNote; +//_anon26 __vt__10zNMEDennis; +//_anon20 __vt__12zNMEFrogfish; +//_anon27 __vt__13zNMEBuckotron; +//_anon8 __vt__13MervLetMeKnow; +//_anon28 __vt__10zNMEMervyn; +//_anon21 __vt__12zNMEStandard; +//_anon25 __vt__12ZapLetMeKnow; +//////_anon23 __vt__10zNMEZapper; +//_anon18 __vt__10zNMEPopper; +//_anon42 __vt__11zNMESpinner; +//_anon15 __vt__14FlingLetMeKnow; +//_anon1 __vt__11zNMEFlinger; +//_anon32 __vt__11zNMESlammer; +//_anon24 __vt__10zNMEFogger; +//_anon47 __vt__13zNMETurSpiral; +//_anon31 __vt__10zNMETurret; +//_anon17 __vt__13zNMETurTurner; +//_anon41 __vt__12zNMETurPopup; +//_anon7 __vt__13zNMETurBarrel; +///_anon16 __vt__13zNMECritJelly; +//_anon33 __vt__11zNMECritter; +///_anon10 __vt__13zNMECritBasic; +//_anon43 __vt__8zNMETiki; -S32 g_firstFrameUpdateAllNPC; +// + +// zNPCMgr struct NPCMTypeTable // ported from bfbb { - en_NPCTYPES useNPCType; + en_npctyp useNPCType; char* modelName; unsigned int hashOfName; } g_tbltype[250]; @@ -38,26 +443,26 @@ S32 zNPCMgr_OrdComp_npcid(void* vkey, void* vitem) return rc; } -S32 zNPCMgr_OrdTest_npcid(const void* vkey, void* vitem) -{ - S32 rc; - void* key = *(void**)(vitem); +// S32 zNPCMgr_OrdTest_npcid(void* vkey, void* vitem) +// { +// S32 rc; +// void* key = *(void**)(vitem); - if (vkey < key) - { - rc = -1; - } - else if (vkey > key) - { - rc = 1; - } - else - { - rc = 0; - } +// if (vkey < key) +// { +// rc = -1; +// } +// else if (vkey > key) +// { +// rc = 1; +// } +// else +// { +// rc = 0; +// } - return rc; -} +// return rc; +// } void zNPCMgr::Shutdown() { @@ -121,3 +526,547 @@ zNPCMgr* zNPCMgrSelf() { return g_npcmgr; } + +// zMenu + +void zMenuAllowAtract(bool allowAttract) +{ + sAllowAttract = allowAttract; +} + +void zMenuPause(bool bPause) +{ + S64 time; + U32 Utime; + + if (bPause == FALSE) + { + Utime = iTimeGet(); + time = iTimeDiffSec((U64)Utime >> 0x20); + time_last = time - SECS_PER_VBLANK; + Utime = iTimeGet(); + } + + sTimeLast = Utime >> 0x20; +} + +S32 zMenuIsFirstBoot() +{ + return sFirstBoot; +} + +U32 zMenuGetBadCard() +{ + return card + 1; +} + +void zMenuExit() +{ +} + +S32 zMenuRunning() +{ + return sInMenu; +} + +// zLOD + +zLODTable* zLOD_Get(xEnt* ent) +{ + if (!ent->model) + { + return 0; + } + + for (int i = 0; i < sLODTableCount; i++) + { + if (sLODTableList[i].baseBucket != NULL) + { + if ((*sLODTableList[i].baseBucket)->OriginalData == ent->model->Data) + { + return &sLODTableList[i]; + } + } + } + return 0; +} + +// z::lightweight_manager + +// These are in the dwarf, but you have to find them with just "lightweight_manager" + +// void z::lightweight_manager::setup() +// { +// } + +// zLightning + +void _zLightningKill(zLightning* l) +{ +} + +void zLightningKill(zLightning* l) +{ +} + +// zLightEffect + +void zLightEffectInitCauldron(_zLight* zlight) +{ + *zlight->reg = 0.0f; + zlight->flags = zlight->flags | 1; +} + +void zLightEffectRandomColFast(_zLight* zlight, F32) +{ +} + +void zLightEffectRandomCol(_zLight* zlight, F32) +{ +} + +void zLightEffectRandomColSlow(_zLight* zlight, F32) +{ +} + +void zLightEffectHalfDimFast(_zLight* zlight, F32) +{ +} + +void zLightEffectHalfDim(_zLight* zlight, F32) +{ +} + +void zLightEffectHalfDimSlow(_zLight* zlight, F32) +{ +} + +void zLightEffectDimFast(_zLight* zlight, F32) +{ +} + +void zLightEffectDim(_zLight* zlight, F32) +{ +} + +void zLightEffectDimSlow(_zLight* zlight, F32) +{ +} + +void zLightEffectStrobeFast(_zLight* zlight, F32) +{ +} + +void zLightEffectStrobe(_zLight* zlight, F32) +{ +} + +void zLightEffectStrobeSlow(_zLight* zlight, F32) +{ +} + +void zLightEffectInitFlicker(_zLight* zlight) +{ + *zlight->reg = 0.0f; + zlight->flags = zlight->flags | 1; +} + +void zLightEffectInitRandomCol(_zLight*) +{ +} + +void zLightEffectInitHalfDim(_zLight*) +{ +} + +void zLightEffectInitDim(_zLight*) +{ +} + +void zLightEffectInitStrobe(_zLight*) +{ +} + +// zLight + +void zLightSetVolume(zVolume* vol) +{ + if (!vol) + { + sPartitionVolume = 0; + } + else + { + U32 lp_id = xStrHash("LIGHT_PARTITION" + 9); + if (vol->id == lp_id) + { + sPartitionVolume = vol; + } + } +} + +void zLightRemoveLocalEnv() +{ + int i; + const RwLLLink* link; + + for (i = 0; i < gNumTemporaryLights; i++) + { + link = gLightWorld->directionalLightList.link.prev; + link->prev->next = link->next; + link->next->prev = link->prev; + } + gNumTemporaryLights = 0; +} + +void zLightAddLocal(xEnt* ent) +{ +} + +void zLightLoad(_zLight* ent, xSerial* s) +{ + xBaseLoad(ent, s); +} + +void zLightSave(_zLight* ent, xSerial* s) +{ + xBaseSave(ent, s); +} + +void zLightDestroyAll() +{ + S32 total = sLightTotal; + + for (int i = 0; i < total; i++, sLightTotal--) + { + zLightDestroy(sLight[i]); + } + sLightTotal = 0; +} + +void zLightResolveLinks() +{ + S32 i; + _zLight* zl; + + for (i = 0; i < sLightTotal; i++) + { + zl = sLight[i]; + if (zl->tasset->attachID) + { + zl->attached_to = zSceneFindObject(zl->tasset->attachID); + } + else + { + zl->attached_to = 0; + } + } +} + +void zLightInit(void* b, void* tasset) +{ + zLightInit((xBase*)b, (zLightAsset*)tasset); +} + +// zPat / zLasso + +// zGrid + +void zGridExit(zScene* s) +{ + xGridKill(&colls_grid); + xGridKill(&colls_oso_grid); + xGridKill(&npcs_grid); + xGridKill(&grabbable_grid); + zGridInitted = 0; +} + +// zGoo + +void zGooExit() +{ + zgoo_gps = 0; + zgoo_ngps = 0; + zgoo_nused = 0; +} + +void zGooInit(S32 nobj) +{ + zgoo_gps = (zGooParams*)xMemAlloc(gActiveHeap, nobj * 0xc, 0); + zgoo_ngps = nobj; +} + +// zGameState + +//xSndMgrPauseSounds + +void zGameStatePauseUnpauseSnd(bool pause) +{ + xSndMgrPauseSounds(0, pause, TRUE); + xSndMgrPauseSounds(1, pause, TRUE); + xSndMgrPauseSounds(2, pause, FALSE); +} + +void SB04FMVPauseSoundCB(bool doPause) +{ + bool tempBool; + + if (gGameMode == 8) + { + tempBool = TRUE; + } + else if (gGameMode == 7) + { + tempBool = TRUE; + } + else if (gGameMode == 6) + { + tempBool = TRUE; + } + else if (gGameMode == 2) + { + tempBool = TRUE; + } + else if (gGameMode == 4) + { + tempBool = TRUE; + } + else if (gGameMode == 6) + { + tempBool = TRUE; + } + else if (gGameMode == 1) + { + tempBool = TRUE; + } + else if (gGameMode == 0) + { + tempBool = TRUE; + } + else + { + tempBool = FALSE; + } + + if (tempBool) + { + xSndMgrPauseSounds(3, doPause, TRUE); + } + else if (doPause != 0) + { + xSndMgrPauseSounds(-3, TRUE, TRUE); + } + else + { + xSndMgrPauseSounds(-3, FALSE, TRUE); + } +} + +void zGameSetOstrich(_GameOstrich o) +{ + gGameOstrich = o; +} + +_GameOstrich zGameGetOstrich() +{ + return gGameOstrich; +} + +eGameMode zGameModeGet() +{ + return gGameMode; +} + +S32 zGameStateGet() +{ + return gGameState; +} + +// zGameExtras / EGG + +void zGameExtras_Load(xSerial* xser) +{ + S32 keepers[2]; + keepers[0] = 0; + xser->Read(keepers); + g_flg_chEnabled |= keepers[0]; +} + +void zGameExtras_Save(xSerial* xser) +{ + xser->Write(g_flg_chEnabled & 0xFFFF); +} + +S32 zGameExtras_CheatFlags() +{ + return g_flg_chEnabled; +} + +S32 EGG_check_ExtrasFlags(EGGItem*) +{ + switch (g_currMonth) + { + case JANUARY: + if (g_currDay == 1) // New Year's Day + g_gameExtraFlags |= 0b000000001; + break; + + case FEBRUARY: + if (g_currDay == 2) + g_gameExtraFlags |= 0b100000000; + break; + + case MARCH: + if (g_currDay == 15) + g_gameExtraFlags |= 0b000001000; + if (g_currDay == 17) // St. Patrick's Day + g_gameExtraFlags |= 0b000000100; + if (g_currDay == 18) + g_gameExtraFlags |= 0b100000000; + if (g_currDay == 21) + g_gameExtraFlags |= 0b100000000; + if (g_currDay == 22) + g_gameExtraFlags |= 0b100000000; + break; + + case APRIL: + if (g_currDay == 1) // April Fools' Day + g_gameExtraFlags |= 0b010000000; + break; + + case MAY: + break; + + case JUNE: + if (g_currDay == 6) + g_gameExtraFlags |= 0b001000000; + break; + + case JULY: + if (g_currDay == 4) // Independence Day + g_gameExtraFlags |= 0b000000010; + break; + + case AUGUST: + if (g_currDay == 8) + g_gameExtraFlags |= 0b100000000; + break; + + case SEPTEMBER: + if (g_currDay == 8) + g_gameExtraFlags |= 0b000000010; + break; + + case OCTOBER: + if (g_currDay == 5) + g_gameExtraFlags |= 0b100000000; + if (g_currDay == 14) + g_gameExtraFlags |= 0b100000000; + if (g_currDay == 22) + g_gameExtraFlags |= 0b100000000; + if (g_currDay == 31) // Halloween + g_gameExtraFlags |= 0b000100000; + break; + + case NOVEMBER: + if (g_currDay == 5) + g_gameExtraFlags |= 0b100000000; + break; + + case DECEMBER: + break; + } + + return 0; +} + +void zGameExtras_SceneReset() +{ + if (!g_enableGameExtras) + { + return; + } + + EGGItem* egg_next = g_eggBasket; + + while (egg_next->fun_check) + { + EGGItem* egg = egg_next++; + + if (egg->enabled) + { + if (egg->funcs->fun_reset) + { + egg->funcs->fun_reset(egg); + } + } + } +} + +void zGameExtras_MoDay(S32* month, S32* day) +{ + *month = g_currMonth; + *day = g_currDay; +} + +S32 zGameExtras_ExtrasFlags() +{ + return g_gameExtraFlags; +} + +// zGame + +void DoTheResetinator() +{ +} + +void zGameStall() +{ + bool tempGameBool; + if (gGameMode == 8) + { + tempGameBool = TRUE; + } + else if (gGameMode == 7) + { + tempGameBool = TRUE; + } + else if (gGameMode == 6) + { + tempGameBool = TRUE; + } + else if (gGameMode == 2) + { + tempGameBool = TRUE; + } + else if (gGameMode == 4) + { + tempGameBool = TRUE; + } + else if (gGameMode == 6) + { + tempGameBool = TRUE; + } + else if (gGameMode == 1) + { + tempGameBool = TRUE; + } + else if (gGameMode == 0) + { + tempGameBool = TRUE; + } + else + { + tempGameBool = FALSE; + } + + if (!tempGameBool) // chain of if elses + { + zGameModeSwitch(eGameMode_Stall); + xSndMgrPauseSounds(0, TRUE, TRUE); + xSndMgrPauseSounds(1, TRUE, TRUE); + xSndMgrPauseSounds(2, TRUE, FALSE); + iPadStopRumble(globals.pad[1]); + zEntEvent("techbutton6_click", 24); + } +} diff --git a/src/SB/Game/zWad2.h b/src/SB/Game/zWad2.h index 8ace6f3..fabedf6 100644 --- a/src/SB/Game/zWad2.h +++ b/src/SB/Game/zWad2.h @@ -2,10 +2,235 @@ #define ZWAD2_H #include + +#include "xPartition.h" + #include "zNPCMgr.h" #include "zNMECommon.h" #include "xordarray.h" #include "zNPCSpawner.h" #include "zNPCMessenger.h" +#include "iTime.h" +#include "xFX.h" +#include "zFX.h" +#include "zTextBox.h" +#include "iSnd.h" +#include "zGame.h" +#include "zGameState.h" +#include "zGameExtras.h" +#include "zGoo.h" +#include "zLight.h" +#include "zLightning.h" +#include "xDebug.h" +#include "zLOD.h" +#include "xCounter.h" +#include "zFMV.h" +#include "zUI.h" +#include "zUIFont.h" +#include "xSnd.h" +#include "zMusic.h" +#include "zGlobals.h" +#include "xMath3.h" +#include "xTRC.h" +#include "zGrid.h" +#include "xGrid.h" +#include "xShadow.h" + +#include "xWad5.h" + +// Dwarf data says that most of these are only used here in zWad2.cpp + +enum zHitSource +{ + zHS_EVENT, + zHS_GENERAL, + zHS_PROJECTILE, + zHS_EXPLOSION, + zHS_LASER, + zHS_ENERGY, + zHS_FIRE, + zHS_SURFACE, + zHS_MELEE_HIGH, + zHS_MELEE_MID, + zHS_MELEE_LOW, + zHS_MELEE_UP, + zHS_MELEE_BACK, + zHS_MELEE_DIZZY, + zHS_THROW, + zHS_WATER, + zHS_DEATHPLANE, + zHS_INCREDI, + zHS_KNOCKBACK, + zHS_LASERBEAM, + zHS_INFINITE_FALL, + zHS_COUNT, + zHS_FORCE_INT = 0xffffffff +}; + +enum ePOWERUPMENU +{ + ePOWERUPMENU_KarateSpin, + ePOWERUPMENU_Bash, + ePOWERUPMENU_BubbleBowl, + ePOWERUPMENU_SonicWave, + ePOWERUPMENU_BellyBump, + ePOWERUPMENU_Cartwheel, + ePOWERUPMENU_BellyFlop, + ePOWERUPMENU_Throw, + ePOWERUPMENU_SBHealth, + ePOWERUPMENU_PatHealth, + ePOWERUPMENU_PointsAvail, + ePOWERUPMENU_Max +}; + +struct entrail_type +{ + char* model_name; + S32 bone; + F32 rate; + F32 cull_dist; + xVec3 offset; + xVec3 offset_rand; + xVec3 vel; + xVec3 vel_rand; +}; + +struct entrail_data +{ + U16 flags; + U16 type; + xEnt* ent; + xVec3 loc; + xVec3 vel; + F32 emitted; +}; + +struct zGooParams +{ + F32 depth; + F32 orig_depth; + xEnt* goo_ent; +}; + +struct zGrapplePoint +{ + U32 flags; + xVec3* pos; +}; + +struct zHangableAsset : xDynAsset +{ + U32 object; + xVec3 pivot; + xVec3 handle; + F32 onGravity; + F32 offGravity; + F32 maxAngVel; + F32 minArcDegrees; + U32 hangFlags; +}; + +struct zHangable : xBase +{ + zHangableAsset* hangableAsset; + U32 flags; +}; + +struct zHangableObject +{ + zHangable* hangable; + xEnt* object; + F32 radius; + xVec3 vel; + xVec3 accel; + xVec3 handle; + xMat3x3 centerMat; + xVec3 rotAxis; + xVec3 lastDisp; + xVec3 objVel; +}; + +struct zHitSourceMapEntry +{ + char* name; + zHitSource sourcetype; +}; + +struct PatTongueVert +{ + xVec3 pos; + xModelTagWithNormal tag; +}; + +struct CollisionInfo +{ + xVec3 hitDir; + S32 damage; + F32 knockBackSpeed; + zLightning* l; + iSndGroupHandle soundHit1; + iSndGroupHandle soundHit2; +}; + +struct lightweight_system_base +{ +}; + +struct PowerUpMenuTableEntry +{ + ePOWERUPMENU entry; + char* name; + S32 powerup; + _xCounter* counter; +}; + +struct PowerUpMovieTableEntry +{ + S32 powerup; + eFMVFile level[3]; +}; + +struct taskEntry +{ + char name[4]; + U8 taskStatus[8]; + U32 numTasks; +}; + +struct extraEntry +{ + U8 type; + U8 id; + U8 chestsNeeded; + U8 status; +}; + +struct extraCostumeEntry +{ + U32 costumeID; + eSNDCurrentPlayer player; + U32 gameExtrasFlag; +}; + +struct zMusicState +{ + U32 uMusicDefault; + U32 uMusicRestart; + U8 bPaused; +}; + +struct NPCBrainTableEntry +{ + char* name; + en_npctyp type; + U32 id; +}; + +struct tagiRenderArrays +{ + U16 m_index[960]; + RxObjSpace3DVertex m_vertex[480]; + F32 m_vertexTZ[480]; +}; #endif diff --git a/src/SB/Game/zWad3.cpp b/src/SB/Game/zWad3.cpp index e3f0795..ddd0985 100644 --- a/src/SB/Game/zWad3.cpp +++ b/src/SB/Game/zWad3.cpp @@ -3309,3 +3309,70 @@ void zSaveLoad_Tick(bool) { // REFERENCE BFBB } + +// zRewardsMgr + +U32 upgradeSlotsPoints[14]; + +void zRewardsMgr::SetPlayerDead() +{ + playerDead = TRUE; +} + +U32 zRewardsMgr::GetUpgradeRangeUpper() const +{ +} + +void zRewardsMgr::ResetLastComboIndex() +{ + lastComboIndex = 0; +} + +U32 zRewardsMgr::GetLastComboIndex() const +{ + return lastComboIndex; +} + +void zRewardsMgr::ResetLastComboManlinessPoints() +{ + lastComboManlinessPoints = 0; +} + +U32 zRewardsMgr::GetLastComboManlinessPoints() const +{ + return lastComboManlinessPoints; +} + +// zRenderState + +_SDRenderState sRS; + +_SDRenderState zRenderStateCurrent() +{ + return sRS; +} + +// zPlayerSB + +TreasureChest* zPlayerSB::GetTreasureChestHud() +{ + return &treasureChest; +} + +void zPlayerSB::LoadCheckPoint() +{ +} + +void zPlayerSB::StoreCheckPoint() +{ +} + +// zPlayer + +void zPlayerReset(zEnt* ent) +{ +} + +void zPlayerRender(zEnt* ent) +{ +} diff --git a/src/SB/Game/zWad3.h b/src/SB/Game/zWad3.h index 501e9fb..39c08fc 100644 --- a/src/SB/Game/zWad3.h +++ b/src/SB/Game/zWad3.h @@ -61,5 +61,37 @@ #include "iTRC.h" #include "iSystem.h" #include "zHud.h" +#include "zRewards.h" +#include "xHudMeter.h" + +// Needs moved to another file because zWad2 and zWad3 use this struct +// not everything is here? +struct zPlayerSB : zPlayer +{ + // padded to get GetTreasureChestHud to match. + // All structs that are used here are updated to be correct. + // Assumably the dwarf is simply wrong + U64 padding; + U32 padding2; + U8 inited; + ManlinessMeter manlinessMeter; + KrabbyPattyMeter krabbyPattyMeter; + TreasureChest treasureChest; + GoofyGooberMeter goofyGooberMeter; + NitroMeter nitroMeter; + + TreasureChest* GetTreasureChestHud(); + void SetCamera(); + void LoadCheckPoint(); + void StoreCheckPoint(); + void HandleEvent(xBase* from, U32 thisEvent, F32* toParam, xBase* toParamWidget, + U32 toParamWidgetID); + void RenderEffects(); + void Render(); + void Update(F32 dt); + void Reset(); + void Init(xEntAsset* asset); + void Init(xEntAsset* asset, S32 playerIdx); +}; #endif diff --git a/src/SB/Game/zWadUI.cpp b/src/SB/Game/zWadUI.cpp index 125fe32..c184297 100644 --- a/src/SB/Game/zWadUI.cpp +++ b/src/SB/Game/zWadUI.cpp @@ -1,4 +1,5 @@ #include "zWadUI.h" +#include "zUI.h" // I believe this is correct? // Aren't these initialized to 0 if no initialization is given? diff --git a/src/SB/Game/zWadUI.h b/src/SB/Game/zWadUI.h index 3288228..ead6298 100644 --- a/src/SB/Game/zWadUI.h +++ b/src/SB/Game/zWadUI.h @@ -13,224 +13,4 @@ #include "zVar.h" #include "zConditional.h" -struct zUIAsset : xDynAsset -{ - F32 x; - F32 y; - F32 z; - F32 width; - F32 height; - S32 flags; - U32 color; - U32 selectedMotion; - U32 unselectedMotion; - U8 brightness; - U8 pad[3]; - U32 autoMenuUp; - U32 autoMenuDown; - U32 autoMenuLeft; - U32 autoMenuRight; - U32 custom; - U32 customWidget; -}; - -struct zUIMotionAsset : xBaseAsset -{ - U8 cmdCount; - U8 in; - U8 pad[2]; - U32 cmdSize; - F32 totalTime; - F32 loopTime; -}; - -struct zUI; - -struct zUIMotionFrame -{ - F32 offsetX; - F32 offsetY; - F32 scaleX; - F32 scaleY; - F32 centerScaleX; - F32 centerScaleY; - F32 textScaleX; - F32 textScaleY; - F32 rotation; - F32 offsetU; - F32 offsetV; - xColor_tag color; - U8 brightness; -}; - -struct zUICustom -{ - zUI* ui; - - void* __nw(U32 size); - void PostApplyMotionFrame(zUIMotionFrame*); - void PreApplyMotionFrame(zUIMotionFrame*); - void PostInitMotion(); - void PreInitMotion(); - void Exit(); - void PostRender(); - U8 PreAutoMenu(); - U8 PreRender(); - void PostUpdate(float); - void PreUpdate(float); - U8 HandleEvent(xBase*, unsigned int, const float*, xBase*, unsigned int); - void ResetMotion(); - void Reset(); - void Setup(); - void Init(); - U8 IsSystem(); - U8 IsSignalAllowed(); -}; - -struct zUICustomConditionallyDisabled : zUICustom -{ - S32 padding; // aligns 2 functions - _zConditional* m_pCondition; - U8 m_bCondition; - - U8 PreRender(); - U8 PreAutoMenu(); - void PreUpdate(); -}; - -struct State -{ - F32 x; - F32 y; - F32 width; - F32 height; - xColor_tag color; - U8 brightness; - U8 pad[3]; -}; - -struct zUI : xBase -{ - zUIAsset* asset; - State current; - State startMovement; - F32 z; - zUIMotionAsset* selectedMotion; - zUIMotionAsset* unselectedMotion; - zUICustom* custom; - U8 visible; - U8 focus; - U8 lastFocus; - U8 selected; - U8 brighten; - U8 hdrPass; - U8 locked; - zUIMotionAsset* motion; - F32 motionTime; - U8 motionFiredEvent; - U8 motionLoop; - - void Unselect(); - void Select(); - void Invisible(); - void Visible(); - void FocusOff(); - void FocusOn(); - void AutoMenu(void* item, U32 event); - void DoApplyMotionFrame(zUIMotionFrame* frame); - void DoInitMotion(); - void ApplyMotion(); - F32 CalcAcceleratedDistance(F32 totalDistance, F32 startTime, F32 endTime, F32 accelTime, - F32 decelTime); - void RunMotion(zUIMotionAsset* asset, U8 loop, U8 reset); - void DoExit(); - void DoUpdate(F32 dt, U32 buttonsPressed); - void DoHandleEvent(U32 toEvent, F32* toParam, xBase* toParamWidget); - void DoResetMotion(); - void DoReset(); - void DoSetup(); - void Signal(xBase* from, U32 event); - U8 IsUIText(); -}; - -struct zUICustomImageSlideshow : zUICustom -{ - U32 m_CurrentImage; - U32 m_NumImages; - xGroup* m_TextureGroup; - - void UpdateTexture(); - void SetTextureList(xGroup* textureList); - U8 HandleEvent(U32 toEvent); - void Reset(); -}; - -struct zUIControllerAsset : zUIAsset -{ -}; - -struct zUIController : zUI -{ - void DoInit(); - U32 GetSortKey(); - void DoRender() const; -}; - -struct zUITextAsset : zUIAsset -{ - U32 textID; - U8 font; - U8 fontSizeW; - U8 fontSizeH; - U8 fontSpacingX; - U8 fontSpacingY; - U8 textBoxInsetTop; - U8 textBoxInsetLeft; - U8 textBoxInsetRight; - U8 textBoxInsetBottom; - U8 justifyX; - U8 justifyY; - U8 textFlags; - xColor_tag shadowColor; - F32 shadowOffsetX; - F32 shadowOffsetY; - F32 textScaleX; - F32 textScaleY; -}; - -struct zUIUserStringAsset : zUITextAsset -{ - U8 hardMaxChars; - U8 softMaxChars; -}; - -struct zUIText : zUI -{ - xColor_tag shadowColor; - char* text; - - void DoApplyMotionFrame(zUIMotionFrame* frame); - void DoHandleEvent(xBase* from, U32 toEvent, F32* toParam, xBase* toParamWidget, - U32 toParamWidgetID); - void DoRender(); - void setup_textbox(xtextbox& tb, zUITextAsset* asset); - void DoReset(); - void DoInit(); - U8 IsUIText(); - U32 GetSortKey(); -}; - -struct zUIUserString : zUIText -{ - char* textBuffer; - S32 length; - S32 maxLength; - - U32 GetSortKey() const; - void DoHandleEvent(xBase* from, U32 toEvent, F32* toParam, xBase* toParamWidget, - U32 toParamWidgetID); - void DoReset(); - void DoInit(); -}; - #endif