CSmokeJet, CTexturedRibbon, CTexturedRibbon::SetOuterRGBi

This commit is contained in:
krystalgamer 2024-05-28 19:48:29 +02:00
parent 26f5348c2d
commit 662af33384
6 changed files with 49 additions and 5 deletions

11
bit.cpp
View File

@ -309,6 +309,12 @@ void CFT4Bit::IncFrameWithWrap(void)
{
}
// @Ok
void CTexturedRibbon::SetOuterRGBi(int index, unsigned char a3, unsigned char a4, unsigned char a5)
{
this->field_60[index+1] = (a3 | (((a5 << 8) | a4) << 8));
}
void validate_CFlatBit(void){
VALIDATE(CFlatBit, field_58, 0x58);
VALIDATE(CFlatBit, field_5A, 0x5A);
@ -383,3 +389,8 @@ void validate_CRibbonBit(void)
{
VALIDATE_SIZE(CRibbonBit, 0x70);
}
void validate_CTexturedRibbon(void)
{
VALIDATE(CTexturedRibbon, field_60, 0x60);
}

17
bit.h
View File

@ -1,6 +1,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef BIT_H
#define BIT_H
#include "vector.h"
@ -149,6 +150,15 @@ class CRibbonBit : public CLinked2EndedBit
EXPORT virtual void Move(void);
};
class CTexturedRibbon : public CSpecialDisplay
{
public:
EXPORT void CTexturedRibbon::SetOuterRGBi(int, unsigned char, unsigned char, unsigned char);
unsigned char topPad[0x60-0x3C];
int* field_60;
};
EXPORT int Bit_MakeSpriteRing(CVector*, int, int, int, int, int, int, int);
EXPORT void MoveList(CBit *);
EXPORT void Bit_SetSparkRGB(unsigned char, unsigned char, unsigned char);
@ -165,3 +175,6 @@ void validate_CSmokeTrail(void);
void validate_CGlow(void);
void validate_CLinked2EndedBit(void);
void validate_CRibbonBit(void);
void validate_CTexturedRibbon(void);
#endif

View File

@ -56,7 +56,7 @@
#include "ps2pad.h"
#include "bitmap256.h"
#include "PCTex.h"
#include "smoke.h"
// @Ok
void* CClass::operator new(unsigned int size)
@ -275,6 +275,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
validate_CRibbonBit();
validate_CSniperTarget();
validate_CVenomWrap();
validate_CSmokeJet();
validate_CTexturedRibbon();
puts("[*] Validation done!");

View File

@ -1 +1,7 @@
#include "smoke.h"
#include "smoke.h"
#include "validate.h"
void validate_CSmokeJet(void)
{
VALIDATE_SIZE(CSmokeJet, 0x164);
}

13
smoke.h
View File

@ -3,4 +3,15 @@
#ifndef SMOKE_H
#define SMOKE_H
#endif
#include "export.h"
#include "bit.h"
class CSmokeJet : public CTexturedRibbon
{
public:
unsigned char fullPad[0x125-40];
};
void validate_CSmokeJet(void);
#endif

View File

@ -55,6 +55,7 @@ void CVenom::Shouldnt_DoPhysics_Be_Virtual(void)
void CVenom::DoPhysics(void)
{}
// @Ok
void CVenomWrap::Die(void)
{
CBit::Die();