1 Star 0 Fork 15

螭吻/testing_1111

forked from 狮偶/testing 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fsm-door.xs 9.19 KB
一键复制 编辑 原始数据 按行查看 历史
杜天微 提交于 2021-10-25 10:50 . fsm-door
{"formatVersion":1,"fsms":[{"variables":[],"startState":0,"states":[{"code":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"on_event\" id=\"YGRb($n2lXWp]AX{fQNW\" x=\"16\" y=\"8\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"Start\" style=\"event_blocks\"></mutation><next><block type=\"local_variable_create\" id=\"i`GN@2/NXDNUk.Ud*DV~\"><mutation xmlns=\"\">%5B%7B%22name%22:%22%E9%97%A8%22,%22type%22:%22FSM%22,%22blockId%22:%22i%60GN@2/NXDNUk.Ud*DV~%22%7D%5D</mutation><field name=\"NAME\">门</field><value name=\"VALUE\"><block type=\"fsm_create\" id=\"+GwQ`8P]yf?Tf?}MolIk\"><field name=\"FSM\">Start.门</field></block></value></block></next></block></xml>","comment":"状态","variables":[],"type":"state","name":"状态"}],"function":[],"comment":"状态机","type":"fsm","name":"Main"},{"variables":[],"startState":0,"states":[{"code":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"on_event\" id=\"jvOGOz4mEX5JfT.tB(?~\" x=\"16\" y=\"8\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"Start\" style=\"event_blocks\"></mutation><next><block type=\"native_call\" id=\"VyTOaysO*QT~XY,YfT0r\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Colour%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22colour%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_setFillStyleColor%22,%22signature%22:%22Canvas2d_setFillStyleColor(SColour;)v%22,%22fullname%22:%22Canvas2d_setFillStyleColor%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:2,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"colour\"><block type=\"colour_picker\" id=\"?khhPc(rKfLVJD;o~WlK\"><field name=\"COLOUR\">#000000</field></block></value><next><block type=\"native_call\" id=\"u-8[XH`cQl)tX-K{X{Va\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22x%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22y%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22width%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22height%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_fillRect%22,%22signature%22:%22Canvas2d_fillRect(SNumber;,SNumber;,SNumber;,SNumber;)v%22,%22fullname%22:%22Canvas2d_fillRect%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:0,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"x\"><block type=\"math_number\" id=\"YWhp|g9=tGY~D87L*ju=\"><field name=\"NUM\">1</field></block></value><value name=\"y\"><block type=\"math_number\" id=\"Kq`O|5XKUupDe#m~3n+%\"><field name=\"NUM\">1</field></block></value><value name=\"width\"><block type=\"math_number\" id=\"cu+kqmD,o])kPXAQiG(S\"><field name=\"NUM\">100</field></block></value><value name=\"height\"><block type=\"math_number\" id=\"#PQD`_l#e2TRDP8r^B|T\"><field name=\"NUM\">100</field></block></value></block></next></block></next></block><block type=\"on_event\" id=\"0%eRLro4ayh8z)g%gZXN\" x=\"336\" y=\"16\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"touchstart\" style=\"event_blocks\"></mutation><next><block type=\"change_state\" id=\"B}u}Q,!ZcoS7CRasz^TG\"><field name=\"VALUE\">开启</field></block></next></block></xml>","comment":"状态","variables":[],"type":"state","name":"关闭","category":0,"id":"关闭"},{"code":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"on_event\" id=\"NR@K^@B4VUJENpFshz+h\" x=\"16\" y=\"8\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"Start\" style=\"event_blocks\"></mutation><next><block type=\"native_call\" id=\"j11#(gd?sRH@(kb6vX_2\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Colour%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22colour%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_setFillStyleColor%22,%22signature%22:%22Canvas2d_setFillStyleColor(SColour;)v%22,%22fullname%22:%22Canvas2d_setFillStyleColor%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:2,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"colour\"><block type=\"colour_picker\" id=\"uS3`^I%$O^(_@B6lP9]r\"><field name=\"COLOUR\">#33cc00</field></block></value><next><block type=\"native_call\" id=\"*V(n330h}UD)yvY.ze67\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22x%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22y%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22width%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22height%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_fillRect%22,%22signature%22:%22Canvas2d_fillRect(SNumber;,SNumber;,SNumber;,SNumber;)v%22,%22fullname%22:%22Canvas2d_fillRect%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:0,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"x\"><block type=\"math_number\" id=\"Q0C?sX17b88@qv/MGChg\"><field name=\"NUM\">1</field></block></value><value name=\"y\"><block type=\"math_number\" id=\"jev{B]Rm4Ntu4-Qu~S|7\"><field name=\"NUM\">1</field></block></value><value name=\"width\"><block type=\"math_number\" id=\"*e@w6jd$Lh1@QXk-.D[l\"><field name=\"NUM\">100</field></block></value><value name=\"height\"><block type=\"math_number\" id=\"F5=orR.)H(q)9pS35r]K\"><field name=\"NUM\">100</field></block></value></block></next></block></next></block><block type=\"on_event\" id=\"3r6]mo#)^fQ.EuJh@|tl\" x=\"331\" y=\"66\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"touchstart\" style=\"event_blocks\"></mutation><next><block type=\"change_state\" id=\"{N+a9b)[sw169/|mSB3.\"><field name=\"VALUE\">关闭</field></block></next></block></xml>","comment":"状态","variables":[],"type":"state","name":"开启","category":1,"id":"开启"}],"function":[],"comment":"状态机","type":"fsm","name":"门"}],"structs":[],"functions":[],"depends":[],"type":"src","typeLimit":"","comment":"","env":[],"name":"Start","collected":["<block xmlns=\"https://developers.google.com/blockly/xml\" type=\"on_event\" id=\"jvOGOz4mEX5JfT.tB(?~\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" eventname=\"Start\" style=\"event_blocks\"></mutation><next><block type=\"native_call\" id=\"VyTOaysO*QT~XY,YfT0r\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Colour%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22colour%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_setFillStyleColor%22,%22signature%22:%22Canvas2d_setFillStyleColor(SColour;)v%22,%22fullname%22:%22Canvas2d_setFillStyleColor%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:2,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"colour\"><block type=\"colour_picker\" id=\"?khhPc(rKfLVJD;o~WlK\"><field name=\"COLOUR\">#000000</field></block></value><next><block type=\"native_call\" id=\"u-8[XH`cQl)tX-K{X{Va\"><mutation xmlns=\"\">%7B%22func%22:%7B%22args%22:%5B%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22x%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22y%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22width%22,%22$__type%22:%22StructField%22%7D,%7B%22type%22:%7B%22name%22:%22Number%22,%22$__type%22:%22StructFieldType%22%7D,%22name%22:%22height%22,%22$__type%22:%22StructField%22%7D%5D,%22returnType%22:null,%22name%22:%22Canvas2d_fillRect%22,%22signature%22:%22Canvas2d_fillRect(SNumber;,SNumber;,SNumber;,SNumber;)v%22,%22fullname%22:%22Canvas2d_fillRect%22,%22scope%22:%22global%22,%22libHash%22:%22canvas2d%22,%22libIndex%22:0,%22libName%22:%22canvas2d%22,%22$__type%22:%22FunctionDef%22%7D,%22ignoreReturnValue%22:false%7D</mutation><value name=\"x\"><block type=\"math_number\" id=\"YWhp|g9=tGY~D87L*ju=\"><field name=\"NUM\">1</field></block></value><value name=\"y\"><block type=\"math_number\" id=\"Kq`O|5XKUupDe#m~3n+%\"><field name=\"NUM\">1</field></block></value><value name=\"width\"><block type=\"math_number\" id=\"cu+kqmD,o])kPXAQiG(S\"><field name=\"NUM\">100</field></block></value><value name=\"height\"><block type=\"math_number\" id=\"#PQD`_l#e2TRDP8r^B|T\"><field name=\"NUM\">100</field></block></value></block></next></block></next></block>"]}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YC_1ccode/testing_1.git
git@gitee.com:YC_1ccode/testing_1.git
YC_1ccode
testing_1
testing_1111
master

搜索帮助