2022-12-06 04:33:50 -05:00
|
|
|
#pragma once
|
|
|
|
|
2023-01-17 00:17:49 -05:00
|
|
|
#include <libultraship/bridge.h>
|
2022-12-06 04:33:50 -05:00
|
|
|
|
|
|
|
typedef struct EnemyEntry {
|
|
|
|
int16_t id;
|
|
|
|
int16_t params;
|
|
|
|
} EnemyEntry;
|
|
|
|
|
|
|
|
#define RANDOMIZED_ENEMY_SPAWN_TABLE_SIZE 49
|
|
|
|
|
|
|
|
bool IsEnemyFoundToRandomize(int16_t sceneNum, int8_t roomNum, int16_t actorId, int16_t params, float posX);
|
|
|
|
bool IsEnemyAllowedToSpawn(int16_t sceneNum, int8_t roomNum, EnemyEntry enemy);
|
|
|
|
EnemyEntry GetRandomizedEnemyEntry(uint32_t seed);
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
uint8_t GetRandomizedEnemy(PlayState* play, int16_t *actorId, f32 *posX, f32 *posY, f32 *posZ, int16_t *rotX, int16_t *rotY, int16_t *rotZ, int16_t *params);
|
|
|
|
#endif
|