Open toamig opened 3 years ago
Hey there! We could use a little help on this, thanks in advance!
Hi! This is a good point and I can confirm that it is possible. In my mind, there should be the following steps:
workspace.GetTopBlocks(true)
.Input
, Connection
. A Input
may have Field
. So you can dig into the hierarchy and validate each logic model.hierarchy of blocks:
- Block(Topmost in workspace)
- ConnectionOutput
- ConnectionPrev
- ConnectionNext
- Block(Next)
- Input
- Field
- Field ...
- ConnectionInput
- Block(Input)
- Input ...
- Block ...
- Block ...
PR are welcomed!
Hello again!
We have a huge doubt that can require some work, but we would like to know your opinion and to get some advice.
For our game we want to verify if the code has any errors like missing inputs before running the code, to ensure we can perform a state transition and actually run the code without running into errors if the user forgets something. Do you think it is easy or even possible to make kind of a compiler to iterate through all blocks of code and search for those kind of errors before having to actually execute the code?
Thanks in advance!