41 struct asc_behavior_s { |
41 struct asc_behavior_s { |
42 AscSceneNode *node; |
42 AscSceneNode *node; |
43 asc_behavior_func func; |
43 asc_behavior_func func; |
44 asc_behavior_destroy_func destroy_func; |
44 asc_behavior_destroy_func destroy_func; |
45 void *data; |
45 void *data; |
|
46 /** |
|
47 * Game tick of the last execution (zero when the behavior was not yet executed). |
|
48 */ |
46 uint64_t last_execution; |
49 uint64_t last_execution; |
47 uint64_t interval; |
50 uint64_t interval; |
48 cxmutstr name; |
51 cxmutstr name; |
49 bool pause_while_hidden; |
52 bool pause_while_hidden; |
50 bool always_enabled; |
53 bool always_enabled; |
51 bool enabled; |
54 bool enabled; |
52 bool killed; |
55 bool killed; |
|
56 /** |
|
57 * Indicates whether the next execution is the first execution after the behavior has been disabled temporarily. |
|
58 */ |
|
59 bool unpaused; |
53 }; |
60 }; |
54 |
61 |
55 struct asc_behavior_create_args { |
62 struct asc_behavior_create_args { |
56 /** |
63 /** |
57 * The function that is invoked when the behavior is triggered. |
64 * The function that is invoked when the behavior is triggered. |