The first commit
This commit is contained in:
31
include/bsint.h
Normal file
31
include/bsint.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef __BS_INT_H__
|
||||
#define __BS_INT_H__
|
||||
|
||||
#include <ultra64.h>
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
|
||||
typedef void (*bsStateMethod)(void);
|
||||
|
||||
typedef struct bs_state_s{
|
||||
bsStateMethod init_func;
|
||||
bsStateMethod update_func;
|
||||
bsStateMethod end_func;
|
||||
bsStateMethod interrupt_func;
|
||||
} bsState;
|
||||
|
||||
typedef struct bs_map_s{
|
||||
s32 uid;
|
||||
bsState behavior;
|
||||
} bsMap;
|
||||
|
||||
void bsList_clearAll(void);
|
||||
void bsList_setInitMethod(enum bs_e i, bsStateMethod func);
|
||||
void bsList_setUpdateMethod(s32 i, bsStateMethod func);
|
||||
void bsList_setEndMethod(s32 i, bsStateMethod func);
|
||||
void bsList_setInterruptMethod(s32 i, bsStateMethod func);
|
||||
bsStateMethod bsList_getInitMethod(s32 i);
|
||||
bsStateMethod bsList_getUpdateMethod(s32 i);
|
||||
bsStateMethod bsList_getEndMethod(s32 i);
|
||||
bsStateMethod bsList_getInterruptMethod(s32 i);
|
||||
#endif
|
Reference in New Issue
Block a user