Skip to content

Commit

Permalink
Start decomping zParPTank.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SquareMan committed Jun 26, 2024
1 parent 2e4509c commit 06a0fd5
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 7 deletions.
4 changes: 3 additions & 1 deletion include/rwsdk/rpptank.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ enum RpPTankLockFlags
rpPTANKLOCKREAD = ((int)0x80000000)
};

extern RwInt32 _rpPTankAtomicDataOffset;

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -76,4 +78,4 @@ extern RpAtomic* RpPTankAtomicUnlock(RpAtomic* atomic);
}
#endif

#endif
#endif
4 changes: 3 additions & 1 deletion src/SB/Core/x/xParEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ void xParEmitterInit(void* b, void* tasset);
void xParEmitterSetup(xParEmitter* t);
void xParEmitterDestroy();
void xParEmitterUpdate(xBase* to, xScene*, float32 dt);
xPar* xParEmitterEmitCustom(xParEmitter* p, float dt, xParEmitterCustomSettings* info);
xPar* xParEmitterEmitCustom(xParEmitter* p, float32 dt, xParEmitterCustomSettings* info);
float32 xParInterpCompute(int32 interp_mode, xParInterp* r, float32 time, int32 time_has_elapsed,
float32 last_val);

#endif
6 changes: 3 additions & 3 deletions src/SB/Core/x/xParSys.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <rwcore.h>

struct xScene;

struct xParSysAsset : xBaseAsset
{
uint32 type;
Expand All @@ -33,12 +35,10 @@ struct xParSys : xBase
RwTexture* txtr_particle;
};

struct xScene;

void xParSysInit(void* b, void* tasset);
void xParSysSetup(xParSys* t);
void xParSysExit(xParSys* t);
void xParSysRender(xBase* b);
void xParSysUpdate(xBase* to, xScene*, float32 dt);

#endif
#endif
16 changes: 15 additions & 1 deletion src/SB/Core/x/xPtankPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <rwcore.h>
#include <rpworld.h>

struct iColor_tag;
struct xVec2;
struct xVec3;

enum ptank_group_type
{
PGT_COLOR_MAT_UV2,
Expand Down Expand Up @@ -39,8 +43,18 @@ struct ptank_pool
void grab_block(ptank_group_type type);
};

// total size: 0x38
struct ptank_pool__pos_color_size_uv2 : public ptank_pool
{
xVec3* pos;
iColor_tag* color;
xVec2* size;
xVec2* uv;
int32 stride;
};

void xPTankPoolSceneEnter();
void xPTankPoolSceneExit();
void xPTankPoolRender();

#endif
#endif
Loading

0 comments on commit 06a0fd5

Please sign in to comment.