src/scene/shared/field_effect_spawn.c
The effect spawner each field overlay keeps its own copy of, the twin of The Broken Seal's EFFECT_SPAWN (scene/shared/field_effect_spawn.c). More…
#include "field/field_functions.h"#include "field/field_engine_functions.h"#include "field/field_effect.h"#include "sprite_ids.h"
Included by airs_rock.c, airs_rock_inside.c, anemos_inner_sanctum_dullahan.c, ankohl_ruins.c, apojii_islands.c, aqua_rock.c, aqua_rock_inside.c, caverns.c, contigo.c, dehkan_plateau.c, gabomba_statue.c, gaia_rock_inside.c, garoh.c, gondowan_cliffs.c, izumo_ruins.c, jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c, jupiter_lighthouse_central_room.c, jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_side_halls.c, jupiter_lighthouse_terraces.c, jupiter_lighthouse_upper_hall.c, kandorean_temple.c, magma_rock.c, magma_rock_inside.c, mars_lighthouse_star_room.c, mars_lighthouse_towers.c, mt_aleph_summit.c, prox.c, sea_of_time.c, settlements.c, shaman_village.c, shrine_of_the_sea_god.c, treasure_isle.c, trial_road.c, tundaria_tower.c and yampi_desert.c.
Functions
| Name | Description | |
|---|---|---|
extern ACTOR * | EFFECT_CREATE (Sint32 type, Sint32 x, Sint32 y, Sint32 z) | |
void | EFFECT_SPAWN (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | The names scene/shared/field_effect_spawn.c compiles a scene's copy of the effect spawner under, the same in every scene that includes it: the spawner, the import that creates its actor, and the duration scripts EFFECT_SCRIPT_MASK picks from. |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 * | EFFECT_SCRIPTS [] |
Description
The effect spawner each field overlay keeps its own copy of, the twin of The
Broken Seal's EFFECT_SPAWN (scene/shared/field_effect_spawn.c).
field/field_effect.h names the copy, the import that creates its actor and
the duration scripts it picks from: EFFECT_SPAWN, EFFECT_CREATE and
EFFECT_SCRIPTS. The including scene gives only EFFECT_SET_MODE and
EFFECT_SET_SCRIPT, the functions it calls to choose the effect's animation
and start its script. A file that also defines EFFECT_SPRITE_PRIORITY creates
the actor as a script does (scFieldActorCreate) and gives the sprite the
requested priority itself before scSetActorSpritePriority.
Functions in detail
EFFECT_SPAWN
void EFFECT_SPAWN(Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)
References fdActorGetById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdEffectUpdateMotionScaleAndSpin(), MainRoutineStateWork, scFieldActorCreate(), scSetActorSpritePriority() and Sint32.
Definition at line 18 of file field_effect_spawn.c.