mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 06:54:16 -04:00
33 lines
724 B
C
33 lines
724 B
C
#ifndef D_PATH_H
|
|
#define D_PATH_H
|
|
|
|
#include "d/d_bg_s.h"
|
|
#include "dolphin/types.h"
|
|
|
|
struct dPnt {
|
|
/* 0x00 */ u8 mArg0;
|
|
/* 0x01 */ u8 mArg1;
|
|
/* 0x02 */ u8 mArg2;
|
|
/* 0x03 */ u8 mArg3;
|
|
/* 0x04 */ cXyz m_position;
|
|
};
|
|
|
|
struct dPath {
|
|
/* 0x00 */ u16 m_num;
|
|
/* 0x02 */ u16 m_nextID;
|
|
/* 0x04 */ u8 mArg0;
|
|
/* 0x05 */ u8 m_closed;
|
|
/* 0x06 */ u8 field4_0x6;
|
|
/* 0x07 */ u8 field5_0x7;
|
|
/* 0x08 */ dPnt* m_points;
|
|
};
|
|
|
|
inline BOOL dPath_ChkClose(dPath* i_path) { return i_path->m_closed & 1; }
|
|
|
|
dPath* dPath_GetRoomPath(int, int);
|
|
dPath* dPath_GetNextRoomPath(dPath*, int);
|
|
dPnt* dPath_GetPnt(dPath*, int);
|
|
bool dPath_GetPolyRoomPathVec(cBgS_PolyInfo&, cXyz*, int*);
|
|
|
|
#endif /* D_PATH_H */
|