The first commit

This commit is contained in:
Banjo Kazooie
2022-07-15 17:09:41 -05:00
commit dd13d34074
1087 changed files with 391897 additions and 0 deletions

55
src/core2/code_CBBF0.c Normal file
View File

@@ -0,0 +1,55 @@
#include <ultra64.h>
#include "functions.h"
#include "variables.h"
typedef struct{
GenMethod_0 init_method;
GenMethod_0 update_method;
GenMethod_0 free_method;
s32 unkC;
s32 unk10;
}CommonParticleType;
void commonParticleType_set(enum common_particle_e arg0, GenMethod_0 init_method, s32 update_method, GenMethod_0 free_method, s32 arg4, s32 arg5);
/* .bss */
extern CommonParticleType D_80386260[];
/* .code */
void commonParticleType_init(void){
int i;
for(i = 1; i < 0x12; i++){
commonParticleType_set(i, NULL, NULL, NULL, 0, 0);
}
}
void commonParticleType_set(enum common_particle_e id, GenMethod_0 init_method, s32 update_method, GenMethod_0 free_method, s32 arg4, s32 arg5){
D_80386260[id].init_method = init_method;
D_80386260[id].update_method = update_method;
D_80386260[id].free_method = free_method;
D_80386260[id].unkC = arg4;
D_80386260[id].unk10 = arg5;
}
GenMethod_0 commonParticleType_getInitMethod(enum common_particle_e id)
{
return D_80386260[id].init_method;
}
GenMethod_0 commonParticleType_getUpdateMethod(enum common_particle_e id){
return D_80386260[id].update_method;
}
GenMethod_0 commonParticleType_getFreeMethod(enum common_particle_e id){
return D_80386260[id].free_method;
}
s32 commonParticleType_80352C60(enum common_particle_e id){
return D_80386260[id].unkC;
}
s32 commonParticleType_80352C7C(enum common_particle_e id){
return D_80386260[id].unk10;
}