sly1/include/alo.h

106 lines
1.4 KiB
C
Raw Permalink Normal View History

2024-07-01 17:52:11 +00:00
/**
* @file alo.h
*/
#ifndef ALO_H
#define ALO_H
#include "common.h"
#include <lo.h>
#include <dl.h>
2024-07-01 17:52:11 +00:00
2024-08-11 23:46:25 +00:00
// Forward
struct CBinaryInputStream;
struct FICG
{
uchar grficSweep;
uchar grficRush;
uchar grficSmash;
uchar grficBomb;
uchar grficShock;
};
2024-08-11 23:46:25 +00:00
/**
* @brief Unknown
*/
struct SNIP
{
int grfsnip;
OID oid;
int ib;
};
/**
* @brief "Lightweight"
*
* @todo Finish implementing struct.
*/
struct ALO : public LO
{
DL dlChild;
DLE dleBusy;
DLE dleMRD;
ALO *paloRoot;
ALO *paloFreezeRoot;
DLE dleFreeze;
DL dlFreeze;
int cpmrg;
//MRG *apmrg[4];
float sMRD;
float sCelBorderMRD;
int grfzon;
float dsMRDSnap;
undefined4 unk_1;
//FRZ frz;
//XF xf;
//VECTOR pso
undefined4 padding[0x88];
FICG ficg;
undefined1 padding2[0x16];
// ...
};
2024-07-01 17:52:11 +00:00
/**
* @brief Initializes an ALO
*
* @param palo ALO to initialize
*/
void InitAlo(ALO *palo);
2024-08-11 23:46:25 +00:00
/**
* @brief unknown
*
*/
void SnipAloObjects(ALO *palo, int csnip, SNIP *asnip);
2024-08-11 22:12:05 +00:00
/**
* @brief Updates an ALO
*
* @param palo ALO to initialize
*/
void UpdateAlo(ALO *palo, float dt);
2024-10-27 00:19:31 +00:00
/**
* Fades in an ALO
*/
void FadeAloIn(ALO *palo, float dtFade);
/**
* Fades out an ALO
*/
void FadeAloOut(ALO *palo, float dtFade);
2024-08-11 23:46:25 +00:00
/**
* @brief unknown
*/
void LoadAloFromBrx(ALO *palo, CBinaryInputStream *pbis);
/**
* @brief unknown
*/
void SetAloTargetHitTest(ALO *palo, int fHitTest);
#endif // ALO_H