Add Sequence node

This commit is contained in:
Wojtek Figat
2020-12-15 11:33:09 +01:00
parent 41fa114284
commit 6360cde0df
2 changed files with 120 additions and 0 deletions

View File

@@ -1117,6 +1117,18 @@ void VisualScriptExecutor::ProcessGroupFlow(Box* boxBase, Node* node, Value& val
break;
}
break;
}
// Sequence
case 4:
{
const int32 count = (int32)node->Values[0];
for (int32 i = 0; i < count; i++)
{
boxBase = node->GetBox(i + 1);
if (boxBase->HasConnection())
eatBox(node, boxBase->FirstConnection());
}
break;
}
}
}