dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
scstruct.h
Go to the documentation of this file.
1
2#ifndef SCSTRUCT_H
3#define SCSTRUCT_H
4
23 uint16_t action;
25 int16_t arg;
26};
27
34struct SCRIPT {
38 uint16_t steps_count;
39};
40
41#ifndef NO_SCRIPT_COMPILER
42
47#define SCRIPT_TOKEN_ITER_SZ_MAX 255
48
50 uint8_t flags;
51 char token_iter[SCRIPT_TOKEN_ITER_SZ_MAX + 1];
52 uint16_t token_iter_sz;
53 struct SCRIPT_STEP* steps;
54 uint16_t steps_sz;
55 int16_t last_start;
56};
57
58#endif /* !NO_SCRIPT_COMPILER */
59
62#endif /* !SCSTRUCT_H */
63
#define SCRIPT_STEPS_MAX
Maximum number of steps in an individual script.
Definition: src/config.h:134
Definition: scstruct.h:49
Contains a single instruction in a script, in SCRIPT::steps.
Definition: scstruct.h:21
int16_t arg
Argument that will be passed to this action on execution.
Definition: scstruct.h:25
uint16_t action
Opcode of the action as defined by SCRIPT_CB_TABLE.
Definition: scstruct.h:23
Contains immutable state for scripts attached to a TILEMAP.
Definition: scstruct.h:34
struct SCRIPT_STEP steps[SCRIPT_STEPS_MAX]
Indexed list of script steps in order.
Definition: scstruct.h:36
uint16_t steps_count
Number of SCRIPT::steps attached to this script.
Definition: scstruct.h:38