added variables (struct + setters)
This commit is contained in:
@ -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}
|
@ -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
|
||||
|
Reference in New Issue
Block a user