mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-02 06:12:19 -05:00
ba13e6b2c4
Co-authored-by: kenix3 <kenixwhisperwind@gmail.com> Co-authored-by: David Chavez <david@dcvz.io> Co-authored-by: KiritoDv <kiritodev01@gmail.com> Co-authored-by: Christopher Leggett <chris@leggett.dev>
19 lines
599 B
C
19 lines
599 B
C
#pragma once
|
|
|
|
#include <libultraship/bridge.h>
|
|
|
|
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
|