Implement & link ac_ins_tonbo

This commit is contained in:
Cuyler36
2025-01-26 16:14:51 -05:00
parent aadfac0914
commit 44227e89a6
5 changed files with 878 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef AC_INS_TONBO_H
#define AC_INS_TONBO_H
#include "types.h"
#include "ac_insect_h.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void aITB_actor_init(ACTOR* actorx, GAME* game);
#ifdef __cplusplus
}
#endif
#endif
+10
View File
@@ -88,6 +88,16 @@ enum {
aINS_PROGRAM_NUM
};
enum {
aINS_BG_CHECK_TYPE_NONE,
aINS_BG_CHECK_TYPE_REG_ATTR,
aINS_BG_CHECK_TYPE_REG_NO_ATTR,
aINS_BG_CHECK_TYPE_NO_UNIT_COLUMN_ATTR,
aINS_BG_CHECK_TYPE_NO_UNIT_COLUMN_NO_ATTR,
aINS_BG_CHECK_TYPE_NUM
};
/* sizeof(aINS_Init_c) == 0x18 */
typedef struct insect_init_s {
/* 0x00 */ int insect_type;
+3
View File
@@ -29,6 +29,9 @@ extern "C" {
/* Macro to generate a random float in the range of [0, n) */
#define RANDOM_F(n) (fqrand() * (f32)(n))
/* Macro to generate a random float in range of [-n/2, n/2) */
#define RANDOM_CENTER_F(n) ((fqrand() - 0.5f) * (f32)(n))
/* Macro to generate a random integer in the range of [0, n) */
#define RANDOM(n) ((int)RANDOM_F(n))