mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
CSmokeJet, CTexturedRibbon, CTexturedRibbon::SetOuterRGBi
This commit is contained in:
parent
26f5348c2d
commit
662af33384
11
bit.cpp
11
bit.cpp
@ -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
17
bit.h
@ -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
|
||||
|
4
main.cpp
4
main.cpp
@ -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!");
|
||||
|
@ -1 +1,7 @@
|
||||
#include "smoke.h"
|
||||
#include "smoke.h"
|
||||
#include "validate.h"
|
||||
|
||||
void validate_CSmokeJet(void)
|
||||
{
|
||||
VALIDATE_SIZE(CSmokeJet, 0x164);
|
||||
}
|
||||
|
13
smoke.h
13
smoke.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user