mm/include/z64frameadvance.h
Anghelo Carvajal 6541532abb
Add a z64play.h header (#1646)
* z64play.h

* Move macros, functions and variables to header

* cleanup

* Reduce needed headers on z_collision_check

* Change play functions to take PlayState

* Move `Actor_ProcessInitChain` to `ichain.h`

* format

* Update src/code/z_play.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* Add macros.h to sys_math3d.c

* Rename SequenceContext to SceneSequences

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2024-06-25 15:17:03 -04:00

21 lines
435 B
C

#ifndef Z64FRAMEADVANCE_H
#define Z64FRAMEADVANCE_H
#include "ultra64.h"
struct Input;
struct PlayState;
typedef struct FrameAdvanceContext {
/* 0x0 */ s32 enabled;
/* 0x4 */ s32 timer;
} FrameAdvanceContext; // size = 0x8
void FrameAdvance_Init(FrameAdvanceContext* frameAdvCtx);
s32 FrameAdvance_Update(FrameAdvanceContext* frameAdvCtx, struct Input* input);
s32 FrameAdvance_IsEnabled(struct PlayState* this);
#endif