@@ -233,10 +233,10 @@ void activity_demo() {
233
233
234
234
// Conditional branch
235
235
static size_t counter = 0 ;
236
- activity::condition_t branch_task1 = [&](const time::time_t & /* time */ ,
237
- const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
238
- const std::shared_ptr<gamestate::GameState> & /* state */ ,
239
- const std::shared_ptr<nyan::Object> & /* api_object */ ) {
236
+ activity::condition_function_t branch_task1 = [&](const time::time_t & /* time */ ,
237
+ const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
238
+ const std::shared_ptr<gamestate::GameState> & /* state */ ,
239
+ const std::shared_ptr<nyan::Object> & /* api_object */ ) {
240
240
log::log (INFO << " Checking condition (counter < 4): counter=" << counter);
241
241
if (counter < 4 ) {
242
242
log::log (INFO << " Selecting path 1 (back to task node " << task1->get_id () << " )" );
@@ -249,10 +249,10 @@ void activity_demo() {
249
249
xor_node->add_output (task1,
250
250
{nullptr , // API object set to nullptr as it's never used by condition func
251
251
branch_task1});
252
- activity::condition_t branch_event = [&](const time::time_t & /* time */ ,
253
- const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
254
- const std::shared_ptr<gamestate::GameState> & /* state */ ,
255
- const std::shared_ptr<nyan::Object> & /* api_object */ ) {
252
+ activity::condition_function_t branch_event = [&](const time::time_t & /* time */ ,
253
+ const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
254
+ const std::shared_ptr<gamestate::GameState> & /* state */ ,
255
+ const std::shared_ptr<nyan::Object> & /* api_object */ ) {
256
256
// No check needed here, the event node is always selected
257
257
log::log (INFO << " Selecting path 2 (to event node " << event_node->get_id () << " )" );
258
258
return true ;
0 commit comments