Exp_GlowFlash

This commit is contained in:
krystalgamer 2024-07-21 18:29:33 +02:00
parent 5d2e3f1df7
commit e9793186bd
5 changed files with 84 additions and 2 deletions

View File

@ -13,6 +13,12 @@ EXPORT i32 TotalBitUsage = 0;
EXPORT CFlatBit *FlatBitList;
EXPORT CSpecialDisplay *SpecialDisplayList;
// @SMALLTODO
CGlow::CGlow(u32 a1, u32 a2)
{
}
// @MEDIUMTODO
void CQuadBit::OrientUsing(CVector *, SVECTOR *, i32, i32, i32)
{

1
bit.h
View File

@ -160,6 +160,7 @@ class CSimpleTexturedRibbon : public CSpecialDisplay
class CGlow : public CBit
{
public:
EXPORT CGlow(u32, u32);
EXPORT CGlow(CVector*, i32, i32, u8, u8, u8, u8, u8, u8);
EXPORT void SetCentreRGB(u8, u8, u8);
EXPORT void SetRadius(i32);

67
exp.cpp
View File

@ -1,6 +1,27 @@
#include "exp.h"
#include "validate.h"
static i32 gMemInitRelatedTop;
// @SMALLTODO
CGlowFlash::CGlowFlash(CVector*, i32 a3, u8, u8, u8, i32, u8, u8, u8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32)
: CGlow(a3, 1)
{
printf("CGlowFlash(CVector*, i32, u8, u8, u8, i32, u8, u8, u8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32)");
}
// @SMALLTODO
void CGlowFlash::ChooseRadii(void)
{
printf("CGlowFlash::ChooseRadii(void)");
}
// @SMALLTODO
void CGlowFlash::Move(void)
{
printf("CGlowFlash::Move(void)");
}
// @SMALLTODO
void Exp_HitEnvItem(CItem* pItem, u32* pFace, i32 Damage)
{
@ -8,9 +29,46 @@ void Exp_HitEnvItem(CItem* pItem, u32* pFace, i32 Damage)
}
// @SMALLTODO
void Exp_GlowFlash(CVector*, i32, u8, u8, u8, i32, i32, i32)
void Exp_GlowFlash(
CVector* a1,
i32 a2,
u8 a3,
u8 a4,
u8 a5,
i32 a6,
i32 a7,
i32 a8)
{
printf("Exp_GlowFlash");
if ( !gMemInitRelatedTop )
{
if ( a7 )
{
new CGlowFlash(
a1,
a6,
a3,
a4,
a5,
2,
a3,
a4,
a5,
20,
a8,
0,
0,
a2,
a2,
a2 / 2,
a2 / 2,
0,
0);
}
else
{
new CGlowFlash(a1, a6, a3, a4, a5, 2, a3, a4, a5, 20, a8, 0, 0, a2, 0, a2, 0, 0, 0);
}
}
}
@ -18,3 +76,8 @@ void validate_CItemFrag(void)
{
VALIDATE_SIZE(CItemFrag, 0xB8);
}
void validate_CGlowFlash(void)
{
VALIDATE_SIZE(CGlowFlash, 0x70);
}

11
exp.h
View File

@ -11,9 +11,20 @@ class CItemFrag : public CBit
unsigned char itemFragPad[0x7C];
};
class CGlowFlash : public CGlow
{
public:
EXPORT CGlowFlash(CVector*, i32, u8, u8, u8, i32, u8, u8, u8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32);
EXPORT void ChooseRadii(void);
EXPORT virtual void Move(void);
u8 padBottom[0x14];
};
EXPORT void Exp_HitEnvItem(CItem*, u32*, i32);
EXPORT void Exp_GlowFlash(CVector*, i32, u8, u8, u8, i32, i32, i32);
void validate_CItemFrag(void);
void validate_CGlowFlash(void);
#endif

View File

@ -360,6 +360,7 @@ int main()
validate_CShellGoldFish();
validate_CShellMysterioHeadCircle();
validate_SpideyIconRelated();
validate_CGlowFlash();
puts("[*] Validation done!");