69 offsetof(AscSceneNode, next) |
69 offsetof(AscSceneNode, next) |
70 ); |
70 ); |
71 cx_foreach(AscSceneNode*, node, iter) { |
71 cx_foreach(AscSceneNode*, node, iter) { |
72 CxIterator behavior_iter = cxListIterator(node->behaviors); |
72 CxIterator behavior_iter = cxListIterator(node->behaviors); |
73 cx_foreach(AscBehavior*, behavior, behavior_iter) { |
73 cx_foreach(AscBehavior*, behavior, behavior_iter) { |
74 if (behavior->enabled) { |
74 asc_behavior_trigger(behavior); |
75 behavior->func(behavior); |
|
76 } |
|
77 } |
75 } |
78 } |
76 } |
79 } |
77 } |
80 |
78 |
81 static void asc_scene_draw_sprites( |
79 static void asc_scene_draw_sprites( |