2022-03-10 03:01:03 +01:00
|
|
|
#ifndef DYNOS_C_H
|
|
|
|
#define DYNOS_C_H
|
|
|
|
#ifndef __cplusplus
|
|
|
|
|
|
|
|
#include "dynos.h"
|
2022-03-31 08:04:41 +02:00
|
|
|
#include "types.h"
|
2022-04-05 22:44:05 +02:00
|
|
|
#include "src/game/moving_texture.h"
|
2022-03-10 03:01:03 +01:00
|
|
|
|
2022-04-09 04:29:16 +02:00
|
|
|
void *dynos_swap_cmd(void *cmd);
|
|
|
|
|
2022-03-31 08:04:41 +02:00
|
|
|
// -- built in -- //
|
2022-03-10 03:01:03 +01:00
|
|
|
void *dynos_update_cmd (void *cmd);
|
|
|
|
void dynos_update_gfx ();
|
|
|
|
void dynos_update_opt (void *pad);
|
2022-04-20 03:24:26 +02:00
|
|
|
s32 dynos_tex_import (void **output, void *ptr, s32 tile, void *grapi, void **hashmap, void *pool, s32 *poolpos, s32 poolsize);
|
2022-03-10 03:01:03 +01:00
|
|
|
void dynos_gfx_swap_animations(void *ptr);
|
|
|
|
|
2022-03-31 08:04:41 +02:00
|
|
|
// -- warps -- //
|
|
|
|
bool dynos_warp_to_level(s32 aLevel, s32 aArea, s32 aAct);
|
|
|
|
bool dynos_warp_restart_level(void);
|
|
|
|
bool dynos_warp_exit_level(s32 aDelay);
|
|
|
|
bool dynos_warp_to_castle(s32 aLevel);
|
|
|
|
|
|
|
|
// -- dynos packs -- //
|
2022-04-20 06:06:18 +02:00
|
|
|
int dynos_pack_get_count(void);
|
|
|
|
const char* dynos_pack_get_name(s32 index);
|
|
|
|
bool dynos_pack_get_enabled(s32 index);
|
|
|
|
void dynos_pack_set_enabled(s32 index, bool value);
|
2022-03-31 08:04:41 +02:00
|
|
|
void dynos_generate_packs(const char* directory);
|
|
|
|
|
|
|
|
// -- geos -- //
|
2022-04-20 06:06:18 +02:00
|
|
|
void dynos_actor_override(void** aSharedChild);
|
2022-04-16 22:05:10 +02:00
|
|
|
void dynos_add_actor_custom(const char *filePath, const char* geoName);
|
2022-03-31 08:04:41 +02:00
|
|
|
const void* dynos_geolayout_get(const char *name);
|
|
|
|
|
|
|
|
// -- collisions -- //
|
2022-04-16 22:05:10 +02:00
|
|
|
void dynos_add_collision(const char *filePath, const char* collisionName);
|
2022-03-31 08:04:41 +02:00
|
|
|
Collision* dynos_collision_get(const char* collisionName);
|
|
|
|
|
2022-04-09 10:47:20 +02:00
|
|
|
// -- movtexqcs -- //
|
|
|
|
void dynos_movtexqc_register(const char* name, s16 level, s16 area, s16 type);
|
|
|
|
struct MovtexQuadCollection* dynos_movtexqc_get_from_id(u32 id);
|
|
|
|
struct MovtexQuadCollection* dynos_movtexqc_get_from_index(s32 index);
|
|
|
|
|
2022-04-03 00:14:04 +02:00
|
|
|
// -- levels -- //
|
2022-04-16 22:05:10 +02:00
|
|
|
void dynos_add_level(s32 modIndex, const char *filePath, const char* levelName);
|
2022-04-07 17:21:19 +02:00
|
|
|
const char* dynos_level_get_token(u32 index);
|
2022-04-09 08:01:41 +02:00
|
|
|
Trajectory* dynos_level_get_trajectory(const char* name);
|
2022-04-06 07:56:03 +02:00
|
|
|
void dynos_level_load_background(void *ptr);
|
2022-04-03 00:14:04 +02:00
|
|
|
|
2022-03-10 03:01:03 +01:00
|
|
|
#endif
|
|
|
|
#endif
|