Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
start_stage.inc.c
Go to the documentation of this file.
1/*
2 * FIELDSTG's start of the stage (StageEntry.init in FIELDSTG_stages): the
3 * stage's task, updated by updateStage, with STAGE_CHILDREN_SIZE bytes of
4 * children (the stage defines it if they are any), then the stage's setup.
5 * FIELDSTG links it as WSTAGnnn_startStage (include/field/stages.h) and keeps the
6 * task as a plain Task, the same for every stage.
7 */
8
9#ifndef STAGE_CHILDREN_SIZE
10#define STAGE_CHILDREN_SIZE 0
11#endif
12StageTask *startStage(void *owner) {
14
15 task->owner = owner;
16#ifdef STAGE_TWEEN
17 stageFuncs.setup();
18#else
19 stageFuncs[0]();
20#endif
21 return task;
22}
void updateStage()
The names every stage defines, each its own (config/<version>/stages/<stage>.txt).
StageTask * startStage(void *owner)
#define STAGE_CHILDREN_SIZE
The task a stage starts (startStage), updated by its updateStage.
Definition stage.h:26
void * owner
Definition stage.h:28
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
Definition task.c:105
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag211.c:585