added variables (struct + setters)

This commit is contained in:
2023-07-11 15:47:07 +02:00
parent 635bb8c16e
commit 1c3e7e7c00
3 changed files with 64 additions and 1 deletions

View File

@ -9,6 +9,7 @@
void ${filename}_init(${filename}* me){
me->state = ST${fn}_INIT;
${VARS_INIT}
}
void ${filename}_startBehaviour(${filename}* me){
@ -52,4 +53,10 @@ bool ${filename}_processEvent(Event* ev) {
* EMITTERS *
************/
${EVENTS_EMITS_DEF}
${EVENTS_EMITS_DEF}
/***********
* SETTERS *
***********/
${VARS_SETTERS_DEF}

View File

@ -19,6 +19,7 @@ typedef enum {
typedef struct {
${filename}_STATES state;
${VARS_STRUCT}
} ${filename};
/**
@ -46,4 +47,10 @@ bool ${filename}_processEvent(Event* ev);
${EVENTS_EMITS_DEC}
/***********
* SETTERS *
***********/
${VARS_SETTERS_DEC}
#endif