diff --git a/Examples/Context.json b/Examples/Context.json new file mode 100644 index 0000000..a31a83f --- /dev/null +++ b/Examples/Context.json @@ -0,0 +1 @@ +{"blocks":{"languageVersion":0,"blocks":[{"type":"showUI","id":"e?!7J$bOy2j.X?RRJq2(","x":50,"y":70,"next":{"block":{"type":"variables_set","id":"=!;Nd_k(n)~9N`[UZ/~z","fields":{"VAR":{"id":"t/.0x}UV7]-YIDuB;a`z"}},"inputs":{"VALUE":{"block":{"type":"ContextKeys","id":"k6CmYe6,tpn0C[]$H@h("}}},"next":{"block":{"type":"clearContext","id":"vyA5csw.1TI{~i,6_adQ","next":{"block":{"type":"variables_set","id":"5!V/%JW*dCzRF|Z`Yqls","fields":{"VAR":{"id":"E6=0(UX5s(VJ=5q:ia6_"}},"inputs":{"VALUE":{"block":{"type":"ContextKeys","id":"LBMZSxlmo]?nEb3;,4V,"}}},"next":{"block":{"type":"setInContext","id":"/a|zCeR;67IEEQb(f`w.","inputs":{"key":{"block":{"type":"text","id":"2udl[~k@0fTT4su?OsmK","fields":{"TEXT":"Hello"}}},"value":{"block":{"type":"text","id":"d]?=(m9cf0RG~zmk/c97","fields":{"TEXT":"Hello, World!"}}}},"next":{"block":{"type":"variables_set","id":"hErvVITwy-YUjv_]/U8+","fields":{"VAR":{"id":"e9Yh!aej}^;:Q3`[9k|p"}},"inputs":{"VALUE":{"block":{"type":"ContextKeys","id":"l.p`xF*CC-vpnpGT;xSV"}}},"next":{"block":{"type":"variables_set","id":"VSdkkylDYL%|W)?F+ZDP","fields":{"VAR":{"id":"a9Z73T*8?GJqp%rXTwP]"}},"inputs":{"VALUE":{"block":{"type":"getFromContext","id":"OUiKXa45^D~@A,-~`=gF","inputs":{"key":{"block":{"type":"text","id":":RiA#k,xJXh(^/jgN.g5","fields":{"TEXT":"Hello"}}}}}}},"next":{"block":{"type":"removeFromContext","id":"Paw(qhI#]hhK,nyl7c3v","inputs":{"key":{"block":{"type":"text","id":"Evhju1to;^@fs%4OW{)G","fields":{"TEXT":"Hello"}}}},"next":{"block":{"type":"variables_set","id":"-}N]hBQC3u^P6cqncpe^","fields":{"VAR":{"id":"=opX8Z4t`VhH,,s!q}e$"}},"inputs":{"VALUE":{"block":{"type":"ContextKeys","id":"c_^[Gfqb6qvg+U3JUc=}"}}},"next":{"block":{"type":"println","id":"lkqd-^psbJhYXDucg$_~","inputs":{"message":{"block":{"type":"text","id":"KL+kPLq)`4D!)`44Zyy.","fields":{"TEXT":"initial list of context items:"}}}},"next":{"block":{"type":"println","id":"m]1ROsAFWe`glIPF0P8~","inputs":{"message":{"block":{"type":"variables_get","id":"/mqga;0wa5x_gR(`,%,,","fields":{"VAR":{"id":"t/.0x}UV7]-YIDuB;a`z"}}}}},"next":{"block":{"type":"println","id":"MreSdWPFhv_NC7l*:v.u","inputs":{"message":{"block":{"type":"LineFeed","id":"1$YN]TmvC`=?)(kH[3Lm"}}},"next":{"block":{"type":"println","id":"|UdRfm-7}o,nuh@^9]K;","inputs":{"message":{"block":{"type":"text","id":"HYwz:goq(KBJnfRsG!^q","fields":{"TEXT":"after \"clear context\""}}}},"next":{"block":{"type":"println","id":"QC4OT~C.dHi[Y$@rzGv$","inputs":{"message":{"block":{"type":"variables_get","id":"mRa8b|!Ce-kK.Lbk-~x}","fields":{"VAR":{"id":"E6=0(UX5s(VJ=5q:ia6_"}}}}},"next":{"block":{"type":"println","id":"R{h}r3A|4$fa4x0+#]w4","inputs":{"message":{"block":{"type":"LineFeed","id":"fN*rb+w1l0*%=]`[-Ar-"}}},"next":{"block":{"type":"println","id":"}kiatRbmaGe5V0oem@8/","inputs":{"message":{"block":{"type":"text","id":"e6}K)FVvCcjqe,-d:-m9","fields":{"TEXT":"after setting item \"Hello\""}}}},"next":{"block":{"type":"println","id":"OPbFaI`9w@IxU4HD=iH|","inputs":{"message":{"block":{"type":"variables_get","id":"yJ.+BvO#w8rZqIHot/@%","fields":{"VAR":{"id":"e9Yh!aej}^;:Q3`[9k|p"}}}}},"next":{"block":{"type":"println","id":"iJx_:@N|kN35fTfCFRj+","inputs":{"message":{"block":{"type":"LineFeed","id":"+~rlC3g;|PPZwV^#a-a-"}}},"next":{"block":{"type":"println","id":"M@W1H+40[r:jgVM+5Uh~","inputs":{"message":{"block":{"type":"text","id":"]xqKj,nh=i:P7y%O$[YW","fields":{"TEXT":"the value of item \"Hello\" is"}}}},"next":{"block":{"type":"print","id":"N0Wa2o:Cf?F2{G5tNMaV","inputs":{"message":{"block":{"type":"text","id":"0Jm@1lO8|XhC+Q4@^_O]","fields":{"TEXT":"\""}}}},"next":{"block":{"type":"print","id":"xe.mPc:GShWQ9,?C+6Ol","inputs":{"message":{"block":{"type":"variables_get","id":"a#={vt_!t6Vya0]=j3SZ","fields":{"VAR":{"id":"a9Z73T*8?GJqp%rXTwP]"}}}}},"next":{"block":{"type":"print","id":"ME7L|bDMf{Gn(HEN%maY","inputs":{"message":{"block":{"type":"text","id":"]3T.kTVI--/+?UAjnrNy","fields":{"TEXT":"\""}}}},"next":{"block":{"type":"println","id":"sT2y=Gyg2}e,|qiktYee","inputs":{"message":{"block":{"type":"LineFeed","id":"VpF}F{L}f5yO%jLC|Lk*"}}},"next":{"block":{"type":"println","id":",IB3AA`dIg`o,D]C/j2x","inputs":{"message":{"block":{"type":"text","id":"RXnX/k~Cs/wmlnTVSrw,","fields":{"TEXT":"after removing item \"Hello\""}}}},"next":{"block":{"type":"println","id":"fJdM7@e0E]9|)r1(BtGa","inputs":{"message":{"block":{"type":"variables_get","id":"YrRDrEa9nI7tpIp-pJw+","fields":{"VAR":{"id":"=opX8Z4t`VhH,,s!q}e$"}}}}},"next":{"block":{"type":"println","id":"^j*QwuQXyev!EGSJ+kIW","inputs":{"message":{"block":{"type":"LineFeed","id":",Rd@1d|NZ[7V=EixJ@H5"}}},"next":{"block":{"type":"println","id":"}sz]BL!Vhw6-/n*R(yKG","inputs":{"message":{"block":{"type":"text","id":"6%aqE$c1IHW_#A^xI,aD","fields":{"TEXT":"finished"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]},"variables":[{"name":"Step_1","id":"t/.0x}UV7]-YIDuB;a`z"},{"name":"Step_2","id":"E6=0(UX5s(VJ=5q:ia6_"},{"name":"Step_3","id":"e9Yh!aej}^;:Q3`[9k|p"},{"name":"Step_4","id":"a9Z73T*8?GJqp%rXTwP]"},{"name":"Step_5","id":"=opX8Z4t`VhH,,s!q}e$"}]} \ No newline at end of file