2024-07-01 17:52:11 +00:00
|
|
|
/**
|
|
|
|
* @file alo.h
|
|
|
|
*/
|
|
|
|
#ifndef ALO_H
|
|
|
|
#define ALO_H
|
|
|
|
|
|
|
|
#include "common.h"
|
2024-07-04 19:29:30 +00:00
|
|
|
#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;
|
|
|
|
|
2024-08-07 12:43:26 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-07-04 19:29:30 +00:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
|
2024-08-07 12:43:26 +00:00
|
|
|
undefined4 padding[0x88];
|
|
|
|
FICG ficg;
|
|
|
|
|
|
|
|
undefined1 padding2[0x16];
|
2024-07-04 19:29:30 +00:00
|
|
|
// ...
|
|
|
|
};
|
2024-07-01 17:52:11 +00:00
|
|
|
|
2024-08-07 12:43:26 +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);
|
|
|
|
|
2024-07-01 19:02:23 +00:00
|
|
|
#endif // ALO_H
|