mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
666cb6ad4a
* low hanging fruits on variables.h
* z_actor functions
* Move RomFile to z64object.h
* Revert "z_actor functions"
This reverts commit aa99967d16.
* yeet
* z64actor_dlftbls.h
* Move object segment declarations to object_table.c
* Move Camera functions
* z64nmi_buff.h
* fix merge
* su_mtx.h, sys_cmpdma.h and sys_initial_check.h
* sys_ucode.h
* sys_flashrom.h
* Remove unnecessary includes
* z64kanfont.h
* flg_set.h
* z64DLF.h
* z64lifemeter.h
* z64path.h
* format
* ObjectOverlay
* bss
* Yeet ObjectOverlay
* review
* review
* format
* bss
* z64font.h
25 lines
700 B
C
25 lines
700 B
C
#ifndef Z64PATH_H
|
|
#define Z64PATH_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
#include "z64math.h"
|
|
|
|
struct PlayState;
|
|
struct Actor;
|
|
|
|
#define PATH_INDEX_NONE -1
|
|
#define ADDITIONAL_PATH_INDEX_NONE (u8)-1
|
|
|
|
typedef struct Path {
|
|
/* 0x0 */ u8 count; // Number of points in the path
|
|
/* 0x1 */ u8 additionalPathIndex;
|
|
/* 0x2 */ s16 customValue; // Path specific to help distinguish different paths
|
|
/* 0x4 */ Vec3s* points; // Segment Address to the array of points
|
|
} Path; // size = 0x8
|
|
|
|
Path* Path_GetByIndex(struct PlayState* play, s16 index, s16 indexNone);
|
|
f32 Path_OrientAndGetDistSq(struct Actor* actor, Path* path, s16 waypoint, s16* yaw);
|
|
void Path_CopyLastPoint(Path* path, Vec3f* dest);
|
|
|
|
#endif
|