proper command interface was implemented

This commit is contained in:
2024-11-03 06:23:10 +03:00
parent e3f37cdcdc
commit 50b2ae5363
7 changed files with 469 additions and 110 deletions

View File

@@ -2,14 +2,14 @@
entries=[ {
"children": [ 3 ],
"command": -1,
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ], [ 2, [ ] ] ],
"index": 0,
"name": "v2",
"order": 0,
"type": "layout"
}, {
"children": [ 4, 5, 6 ],
"command": -1,
"commands": [ ],
"floor_index": 0,
"index": 1,
"name": "v1",
@@ -17,7 +17,7 @@ entries=[ {
"type": "layout"
}, {
"children": [ 7, 8, 9, 10, 11 ],
"command": -1,
"commands": [ ],
"floor_index": 0,
"index": 2,
"name": "v3",
@@ -25,7 +25,7 @@ entries=[ {
"type": "layout"
}, {
"children": [ 12 ],
"command": -1,
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ], [ 2, [ ] ] ],
"index": 3,
"name": "zone_0",
"order": 0,
@@ -33,7 +33,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 13, 14, 15, 16 ],
"command": -1,
"commands": [ ],
"index": 4,
"name": "zone_1",
"order": 0,
@@ -41,7 +41,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 17, 18, 19 ],
"command": -1,
"commands": [ ],
"index": 5,
"name": "zone_0",
"order": 1,
@@ -49,14 +49,14 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 20, 21 ],
"command": -1,
"commands": [ ],
"index": 6,
"name": "unit_0",
"order": 3,
"type": "unit"
}, {
"children": [ 22, 23 ],
"command": -1,
"commands": [ ],
"index": 7,
"name": "zone_0",
"order": 0,
@@ -64,35 +64,35 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 24, 25 ],
"command": -1,
"commands": [ ],
"index": 8,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ 26, 27 ],
"command": -1,
"commands": [ ],
"index": 9,
"name": "unit_1",
"order": 0,
"type": "unit"
}, {
"children": [ 28, 29 ],
"command": -1,
"commands": [ ],
"index": 10,
"name": "unit_2",
"order": 0,
"type": "unit"
}, {
"children": [ 30, 31 ],
"command": -1,
"commands": [ ],
"index": 11,
"name": "unit_3",
"order": 0,
"type": "unit"
}, {
"children": [ 32 ],
"command": -1,
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ] ],
"index": 12,
"name": "stair_0",
"order": 0,
@@ -102,7 +102,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 13,
"name": "living_room_0",
"order": 0,
@@ -112,7 +112,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 14,
"name": "kitchen_0",
"order": 1,
@@ -122,7 +122,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 15,
"name": "storage_room_0",
"order": 2,
@@ -132,7 +132,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 16,
"name": "enterance_0",
"order": 3,
@@ -142,7 +142,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 17,
"name": "wc_0",
"order": 0,
@@ -152,7 +152,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 18,
"name": "bathroom_0",
"order": 1,
@@ -162,7 +162,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 19,
"name": "bedroom_0",
"order": 2,
@@ -172,7 +172,7 @@ entries=[ {
"window": true
}, {
"children": [ 33, 34, 35 ],
"command": -1,
"commands": [ ],
"index": 20,
"name": "zone_0",
"order": 0,
@@ -180,7 +180,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 36, 37 ],
"command": -1,
"commands": [ ],
"index": 21,
"name": "zone_1",
"order": 0,
@@ -188,7 +188,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 22,
"name": "enterance_0",
"order": 0,
@@ -198,7 +198,7 @@ entries=[ {
"window": true
}, {
"children": [ 38 ],
"command": -1,
"commands": [ ],
"index": 23,
"name": "stair_0",
"order": 0,
@@ -208,7 +208,7 @@ entries=[ {
"window": true
}, {
"children": [ 39, 40, 41 ],
"command": -1,
"commands": [ ],
"index": 24,
"name": "zone_0",
"order": 0,
@@ -216,7 +216,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 42, 43 ],
"command": -1,
"commands": [ ],
"index": 25,
"name": "zone_1",
"order": 0,
@@ -224,7 +224,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 44 ],
"command": -1,
"commands": [ ],
"index": 26,
"name": "zone_0",
"order": 0,
@@ -232,7 +232,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 45, 46 ],
"command": -1,
"commands": [ ],
"index": 27,
"name": "zone_1",
"order": 0,
@@ -240,7 +240,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 47 ],
"command": -1,
"commands": [ ],
"index": 28,
"name": "zone_0",
"order": 0,
@@ -248,7 +248,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 48 ],
"command": -1,
"commands": [ ],
"index": 29,
"name": "zone_1",
"order": 0,
@@ -256,7 +256,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 49 ],
"command": -1,
"commands": [ ],
"index": 30,
"name": "zone_0",
"order": 0,
@@ -264,7 +264,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 50 ],
"command": -1,
"commands": [ ],
"index": 31,
"name": "zone_1",
"order": 0,
@@ -272,7 +272,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 51 ],
"command": -1,
"commands": [ ],
"floor_index": 0,
"index": 32,
"name": "floor_0",
@@ -280,7 +280,7 @@ entries=[ {
"type": "floor"
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 33,
"name": "bathroom_0",
"order": 0,
@@ -290,7 +290,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 34,
"name": "wc_0",
"order": 1,
@@ -300,7 +300,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 35,
"name": "bedroom_0",
"order": 2,
@@ -310,7 +310,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 36,
"name": "living_room_0",
"order": 0,
@@ -320,7 +320,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": 1,
"commands": [ ],
"index": 37,
"name": "kitchen_0",
"order": 1,
@@ -330,7 +330,7 @@ entries=[ {
"window": true
}, {
"children": [ 52, 53 ],
"command": -1,
"commands": [ ],
"floor_index": 1,
"index": 38,
"name": "floor_0",
@@ -338,7 +338,7 @@ entries=[ {
"type": "floor"
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 39,
"name": "bathroom_0",
"order": 0,
@@ -348,7 +348,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 40,
"name": "bedroom_0",
"order": 0,
@@ -358,7 +358,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 41,
"name": "wc_0",
"order": 0,
@@ -368,7 +368,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 42,
"name": "kitchen_0",
"order": 0,
@@ -378,7 +378,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 43,
"name": "living_room_0",
"order": 0,
@@ -388,7 +388,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 44,
"name": "bathroom_0",
"order": 0,
@@ -398,7 +398,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 45,
"name": "kitchen_0",
"order": 0,
@@ -408,7 +408,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 46,
"name": "living_room_0",
"order": 0,
@@ -418,7 +418,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 47,
"name": "wc_0",
"order": 0,
@@ -428,7 +428,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 48,
"name": "living_room_0",
"order": 0,
@@ -438,7 +438,7 @@ entries=[ {
"window": true
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 49,
"name": "bathroom_0",
"order": 0,
@@ -448,7 +448,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 50,
"name": "living_room_0",
"order": 0,
@@ -458,14 +458,14 @@ entries=[ {
"window": true
}, {
"children": [ 54, 55 ],
"command": -1,
"commands": [ ],
"index": 51,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ 56 ],
"command": -1,
"commands": [ ],
"index": 52,
"name": "zone_0",
"order": 0,
@@ -473,14 +473,14 @@ entries=[ {
"zone_type": 1
}, {
"children": [ 57, 58 ],
"command": -1,
"commands": [ ],
"index": 53,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 54,
"name": "zone_0",
"order": 0,
@@ -488,7 +488,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 55,
"name": "zone_1",
"order": 0,
@@ -496,7 +496,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 56,
"name": "storage_room_0",
"order": 0,
@@ -506,7 +506,7 @@ entries=[ {
"window": true
}, {
"children": [ 59 ],
"command": -1,
"commands": [ ],
"index": 57,
"name": "zone_0",
"order": 0,
@@ -514,7 +514,7 @@ entries=[ {
"zone_type": 0
}, {
"children": [ 60 ],
"command": -1,
"commands": [ ],
"index": 58,
"name": "zone_1",
"order": 0,
@@ -522,7 +522,7 @@ entries=[ {
"zone_type": 1
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 59,
"name": "wc_0",
"order": 0,
@@ -532,7 +532,7 @@ entries=[ {
"window": false
}, {
"children": [ ],
"command": -1,
"commands": [ ],
"index": 60,
"name": "living_room_0",
"order": 0,