bc-minecraft-bedrock-command 1.19.40 → 1.19.41-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/Lib/Data/CommandData.d.ts +1 -3
- package/lib/src/Lib/Data/CommandData.js +4 -7
- package/lib/src/Lib/Data/CommandData.js.map +1 -1
- package/lib/src/Lib/Data/{Vanilla.d.ts → Commands.d.ts} +4 -0
- package/lib/src/Lib/Data/{Vanilla.js → Commands.js} +17 -3
- package/lib/src/Lib/Data/Commands.js.map +1 -0
- package/lib/src/Lib/Data/Edu/ability.d.ts +3 -0
- package/lib/src/Lib/Data/Edu/ability.js +51 -0
- package/lib/src/Lib/Data/Edu/ability.js.map +1 -0
- package/lib/src/Lib/Data/Edu/classroommode.d.ts +3 -0
- package/lib/src/Lib/Data/Edu/classroommode.js +13 -0
- package/lib/src/Lib/Data/Edu/classroommode.js.map +1 -0
- package/lib/src/Lib/Data/Edu/code.d.ts +3 -0
- package/lib/src/Lib/Data/Edu/code.js +13 -0
- package/lib/src/Lib/Data/Edu/code.js.map +1 -0
- package/lib/src/Lib/Data/Edu/gamerule.d.ts +3 -0
- package/lib/src/Lib/Data/Edu/gamerule.js +35 -0
- package/lib/src/Lib/Data/Edu/gamerule.js.map +1 -0
- package/lib/src/Lib/Data/Edu/immutableworld.d.ts +3 -0
- package/lib/src/Lib/Data/Edu/immutableworld.js +16 -0
- package/lib/src/Lib/Data/Edu/immutableworld.js.map +1 -0
- package/lib/src/Lib/Data/Vanilla/alwaysday.js +3 -3
- package/lib/src/Lib/Data/Vanilla/alwaysday.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/camerashake.js +10 -10
- package/lib/src/Lib/Data/Vanilla/camerashake.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/clear.js +6 -6
- package/lib/src/Lib/Data/Vanilla/clear.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/clearspawnpoint.js +3 -3
- package/lib/src/Lib/Data/Vanilla/clearspawnpoint.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/clone.js +41 -41
- package/lib/src/Lib/Data/Vanilla/clone.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/damage.js +11 -11
- package/lib/src/Lib/Data/Vanilla/damage.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/daylock.js +3 -3
- package/lib/src/Lib/Data/Vanilla/daylock.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/deop.js +3 -3
- package/lib/src/Lib/Data/Vanilla/deop.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/dialogue.js +11 -11
- package/lib/src/Lib/Data/Vanilla/dialogue.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/difficulty.js +3 -3
- package/lib/src/Lib/Data/Vanilla/difficulty.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/effect.js +10 -10
- package/lib/src/Lib/Data/Vanilla/effect.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/enchant.js +9 -9
- package/lib/src/Lib/Data/Vanilla/enchant.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/event.js +5 -5
- package/lib/src/Lib/Data/Vanilla/event.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/execute.js +19 -19
- package/lib/src/Lib/Data/Vanilla/execute.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/fill.js +47 -47
- package/lib/src/Lib/Data/Vanilla/fill.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/fog.js +14 -14
- package/lib/src/Lib/Data/Vanilla/fog.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/function.js +3 -3
- package/lib/src/Lib/Data/Vanilla/function.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/gamemode.js +4 -4
- package/lib/src/Lib/Data/Vanilla/gamemode.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/gamerule.js +91 -91
- package/lib/src/Lib/Data/Vanilla/gamerule.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/give.js +7 -7
- package/lib/src/Lib/Data/Vanilla/give.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/kick.js +3 -3
- package/lib/src/Lib/Data/Vanilla/kick.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/kill.js +3 -3
- package/lib/src/Lib/Data/Vanilla/kill.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/locate.js +3 -3
- package/lib/src/Lib/Data/Vanilla/locate.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/loot.js +257 -257
- package/lib/src/Lib/Data/Vanilla/loot.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/me.js +3 -3
- package/lib/src/Lib/Data/Vanilla/me.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/msg.js +4 -4
- package/lib/src/Lib/Data/Vanilla/msg.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/music.js +19 -19
- package/lib/src/Lib/Data/Vanilla/music.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/op.js +3 -3
- package/lib/src/Lib/Data/Vanilla/op.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/particle.js +6 -6
- package/lib/src/Lib/Data/Vanilla/particle.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/playanimation.js +7 -7
- package/lib/src/Lib/Data/Vanilla/playanimation.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/playsound.js +10 -10
- package/lib/src/Lib/Data/Vanilla/playsound.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/replaceitem.js +43 -43
- package/lib/src/Lib/Data/Vanilla/replaceitem.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/ride.js +26 -26
- package/lib/src/Lib/Data/Vanilla/ride.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/say.js +3 -3
- package/lib/src/Lib/Data/Vanilla/say.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/schedule.js +26 -26
- package/lib/src/Lib/Data/Vanilla/schedule.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/scoreboard.js +92 -92
- package/lib/src/Lib/Data/Vanilla/scoreboard.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/setblock.js +15 -15
- package/lib/src/Lib/Data/Vanilla/setblock.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/setmaxplayers.js +3 -3
- package/lib/src/Lib/Data/Vanilla/setmaxplayers.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/setworldspawn.js +5 -5
- package/lib/src/Lib/Data/Vanilla/setworldspawn.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/spawnpoint.js +6 -6
- package/lib/src/Lib/Data/Vanilla/spawnpoint.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/spreadplayers.js +7 -7
- package/lib/src/Lib/Data/Vanilla/spreadplayers.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/stopsound.js +4 -4
- package/lib/src/Lib/Data/Vanilla/stopsound.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/structure.js +54 -54
- package/lib/src/Lib/Data/Vanilla/structure.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/summon.js +14 -14
- package/lib/src/Lib/Data/Vanilla/summon.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/tag.js +12 -12
- package/lib/src/Lib/Data/Vanilla/tag.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/teleport.js +106 -106
- package/lib/src/Lib/Data/Vanilla/teleport.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/tell.js +4 -4
- package/lib/src/Lib/Data/Vanilla/tell.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/tellraw.js +4 -4
- package/lib/src/Lib/Data/Vanilla/tellraw.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/testfor.js +3 -3
- package/lib/src/Lib/Data/Vanilla/testfor.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/testforblock.js +39 -39
- package/lib/src/Lib/Data/Vanilla/testforblock.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/tickingarea.js +31 -31
- package/lib/src/Lib/Data/Vanilla/tickingarea.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/time.js +19 -19
- package/lib/src/Lib/Data/Vanilla/time.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/title.js +25 -25
- package/lib/src/Lib/Data/Vanilla/title.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/titleraw.js +25 -25
- package/lib/src/Lib/Data/Vanilla/titleraw.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/toggledownfall.js +2 -2
- package/lib/src/Lib/Data/Vanilla/toggledownfall.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/w.js +4 -4
- package/lib/src/Lib/Data/Vanilla/w.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/weather.js +10 -10
- package/lib/src/Lib/Data/Vanilla/weather.js.map +1 -1
- package/lib/src/Lib/Data/Vanilla/xp.js +7 -7
- package/lib/src/Lib/Data/Vanilla/xp.js.map +1 -1
- package/lib/src/Lib/Data/index.d.ts +0 -2
- package/lib/src/Lib/Data/index.js +0 -2
- package/lib/src/Lib/Data/index.js.map +1 -1
- package/lib/src/Lib/Types/Command/Command.d.ts +6 -6
- package/lib/src/Lib/Types/Command/Command.js +9 -9
- package/lib/src/Lib/Types/Command/Command.js.map +1 -1
- package/lib/src/Lib/Types/Command/Functions.d.ts +4 -4
- package/lib/src/Lib/Types/Command/Functions.js +11 -12
- package/lib/src/Lib/Types/Command/Functions.js.map +1 -1
- package/lib/src/Lib/Types/Command/Parameter.d.ts +1 -1
- package/lib/src/Lib/Types/Command/Parameter.js +1 -1
- package/lib/src/Lib/Types/Command/Parse.js +17 -17
- package/lib/src/Lib/Types/ParameterType.d.ts +2 -2
- package/lib/src/Lib/Types/ParameterType.js +2 -2
- package/lib/src/Lib/Types/ParameterType.js.map +1 -1
- package/package.json +1 -1
- package/lib/src/Lib/Data/Edu.d.ts +0 -2
- package/lib/src/Lib/Data/Edu.js +0 -110
- package/lib/src/Lib/Data/Edu.js.map +0 -1
- package/lib/src/Lib/Data/Vanilla/index.d.ts +0 -58
- package/lib/src/Lib/Data/Vanilla/index.js +0 -76
- package/lib/src/Lib/Data/Vanilla/index.js.map +0 -1
- package/lib/src/Lib/Data/Vanilla.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.titleraw = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ParameterType_1 = require("../../Types/ParameterType");
|
|
5
5
|
/**The titleraw command */
|
|
6
6
|
exports.titleraw = [
|
|
7
7
|
{
|
|
8
8
|
name: "titleraw",
|
|
9
9
|
documentation: "Sets the title.",
|
|
10
10
|
parameters: [
|
|
11
|
-
{ text: "titleraw", type:
|
|
11
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
12
12
|
{
|
|
13
13
|
text: "player",
|
|
14
|
-
type:
|
|
14
|
+
type: ParameterType_1.ParameterType.selector,
|
|
15
15
|
required: true,
|
|
16
16
|
options: { playerOnly: true },
|
|
17
17
|
},
|
|
18
|
-
{ text: "title", type:
|
|
18
|
+
{ text: "title", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
19
19
|
{
|
|
20
20
|
text: "json raw text",
|
|
21
|
-
type:
|
|
21
|
+
type: ParameterType_1.ParameterType.jsonRawText,
|
|
22
22
|
required: true,
|
|
23
23
|
},
|
|
24
24
|
],
|
|
@@ -27,17 +27,17 @@ exports.titleraw = [
|
|
|
27
27
|
name: "titleraw",
|
|
28
28
|
documentation: "Sets the sub titles.",
|
|
29
29
|
parameters: [
|
|
30
|
-
{ text: "titleraw", type:
|
|
30
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
31
31
|
{
|
|
32
32
|
text: "player",
|
|
33
|
-
type:
|
|
33
|
+
type: ParameterType_1.ParameterType.selector,
|
|
34
34
|
required: true,
|
|
35
35
|
options: { playerOnly: true },
|
|
36
36
|
},
|
|
37
|
-
{ text: "subtitle", type:
|
|
37
|
+
{ text: "subtitle", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
38
38
|
{
|
|
39
39
|
text: "json raw text",
|
|
40
|
-
type:
|
|
40
|
+
type: ParameterType_1.ParameterType.jsonRawText,
|
|
41
41
|
required: true,
|
|
42
42
|
},
|
|
43
43
|
],
|
|
@@ -46,17 +46,17 @@ exports.titleraw = [
|
|
|
46
46
|
name: "titleraw",
|
|
47
47
|
documentation: "Sets the action bar.",
|
|
48
48
|
parameters: [
|
|
49
|
-
{ text: "titleraw", type:
|
|
49
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
50
50
|
{
|
|
51
51
|
text: "player",
|
|
52
|
-
type:
|
|
52
|
+
type: ParameterType_1.ParameterType.selector,
|
|
53
53
|
required: true,
|
|
54
54
|
options: { playerOnly: true },
|
|
55
55
|
},
|
|
56
|
-
{ text: "actionbar", type:
|
|
56
|
+
{ text: "actionbar", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
57
57
|
{
|
|
58
58
|
text: "json raw text",
|
|
59
|
-
type:
|
|
59
|
+
type: ParameterType_1.ParameterType.jsonRawText,
|
|
60
60
|
required: true,
|
|
61
61
|
},
|
|
62
62
|
],
|
|
@@ -65,45 +65,45 @@ exports.titleraw = [
|
|
|
65
65
|
name: "titleraw",
|
|
66
66
|
documentation: "Clears the title & subtitle from the given players",
|
|
67
67
|
parameters: [
|
|
68
|
-
{ text: "titleraw", type:
|
|
68
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
69
69
|
{
|
|
70
70
|
text: "player",
|
|
71
|
-
type:
|
|
71
|
+
type: ParameterType_1.ParameterType.selector,
|
|
72
72
|
required: true,
|
|
73
73
|
options: { playerOnly: true },
|
|
74
74
|
},
|
|
75
|
-
{ text: "clear", type:
|
|
75
|
+
{ text: "clear", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
76
76
|
],
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
name: "titleraw",
|
|
80
80
|
documentation: "Clears the title & subtitle from the given players",
|
|
81
81
|
parameters: [
|
|
82
|
-
{ text: "titleraw", type:
|
|
82
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
83
83
|
{
|
|
84
84
|
text: "player",
|
|
85
|
-
type:
|
|
85
|
+
type: ParameterType_1.ParameterType.selector,
|
|
86
86
|
required: true,
|
|
87
87
|
options: { playerOnly: true },
|
|
88
88
|
},
|
|
89
|
-
{ text: "reset", type:
|
|
89
|
+
{ text: "reset", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
90
90
|
],
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
name: "titleraw",
|
|
94
94
|
documentation: "Set the timings.",
|
|
95
95
|
parameters: [
|
|
96
|
-
{ text: "titleraw", type:
|
|
96
|
+
{ text: "titleraw", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
97
97
|
{
|
|
98
98
|
text: "player",
|
|
99
|
-
type:
|
|
99
|
+
type: ParameterType_1.ParameterType.selector,
|
|
100
100
|
required: true,
|
|
101
101
|
options: { playerOnly: true },
|
|
102
102
|
},
|
|
103
|
-
{ text: "times", type:
|
|
104
|
-
{ text: "fade in", type:
|
|
105
|
-
{ text: "stay", type:
|
|
106
|
-
{ text: "fade out", type:
|
|
103
|
+
{ text: "times", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
104
|
+
{ text: "fade in", type: ParameterType_1.ParameterType.integer, required: true },
|
|
105
|
+
{ text: "stay", type: ParameterType_1.ParameterType.integer, required: true },
|
|
106
|
+
{ text: "fade out", type: ParameterType_1.ParameterType.integer, required: true },
|
|
107
107
|
],
|
|
108
108
|
},
|
|
109
109
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titleraw.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/titleraw.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+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U,EAAE,IAAI,EAAE;aAC9B;YACD,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC/D;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,kBAAkB;QACjC,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YACjE;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,6BAAa,CAAC,QAAQ;gBAC5B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAC9B;YACD,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC7D,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;SAClE;KACF;CACF,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toggledownfall = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ParameterType_1 = require("../../Types/ParameterType");
|
|
5
5
|
/**The toggledownfall command */
|
|
6
6
|
exports.toggledownfall = [
|
|
7
7
|
{
|
|
8
|
-
parameters: [{ text: "toggledownfall", type:
|
|
8
|
+
parameters: [{ text: "toggledownfall", type: ParameterType_1.ParameterType.keyword, required: true }],
|
|
9
9
|
name: "toggledownfall",
|
|
10
10
|
documentation: "Toggles the weather.",
|
|
11
11
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggledownfall.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/toggledownfall.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"toggledownfall.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/toggledownfall.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAG1D,gCAAgC;AACnB,QAAA,cAAc,GAAkB;IAC3C;QACE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACrF,IAAI,EAAE,gBAAgB;QACtB,aAAa,EAAE,sBAAsB;KACtC;CACF,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.w = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ParameterType_1 = require("../../Types/ParameterType");
|
|
5
5
|
/**The w command */
|
|
6
6
|
exports.w = [
|
|
7
7
|
{
|
|
8
8
|
name: "w",
|
|
9
9
|
documentation: "Sends a message to the receiver.",
|
|
10
10
|
parameters: [
|
|
11
|
-
{ text: "w", type:
|
|
12
|
-
{ text: "selector", type:
|
|
13
|
-
{ text: "message", type:
|
|
11
|
+
{ text: "w", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
12
|
+
{ text: "selector", type: ParameterType_1.ParameterType.selector, required: true },
|
|
13
|
+
{ text: "message", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
14
14
|
],
|
|
15
15
|
},
|
|
16
16
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"w.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/w.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"w.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/w.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAG1D,mBAAmB;AACN,QAAA,CAAC,GAAkB;IAC9B;QACE,IAAI,EAAE,GAAG;QACT,aAAa,EAAE,kCAAkC;QACjD,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1D,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;YAClE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;SACjE;KACF;CACF,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.weather = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ParameterType_1 = require("../../Types/ParameterType");
|
|
5
5
|
/**The weather command */
|
|
6
6
|
exports.weather = [
|
|
7
7
|
{
|
|
8
8
|
name: "weather",
|
|
9
9
|
documentation: "Sets the weather.",
|
|
10
10
|
parameters: [
|
|
11
|
-
{ text: "weather", type:
|
|
12
|
-
{ text: "clear", type:
|
|
13
|
-
{ text: "duration", type:
|
|
11
|
+
{ text: "weather", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
12
|
+
{ text: "clear", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
13
|
+
{ text: "duration", type: ParameterType_1.ParameterType.integer, required: false },
|
|
14
14
|
],
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
name: "weather",
|
|
18
18
|
documentation: "Sets the weather.",
|
|
19
19
|
parameters: [
|
|
20
|
-
{ text: "weather", type:
|
|
21
|
-
{ text: "rain", type:
|
|
22
|
-
{ text: "duration", type:
|
|
20
|
+
{ text: "weather", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
21
|
+
{ text: "rain", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
22
|
+
{ text: "duration", type: ParameterType_1.ParameterType.integer, required: false },
|
|
23
23
|
],
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
name: "weather",
|
|
27
27
|
documentation: "Sets the weather.",
|
|
28
28
|
parameters: [
|
|
29
|
-
{ text: "weather", type:
|
|
30
|
-
{ text: "thunder", type:
|
|
31
|
-
{ text: "duration", type:
|
|
29
|
+
{ text: "weather", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
30
|
+
{ text: "thunder", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
31
|
+
{ text: "duration", type: ParameterType_1.ParameterType.integer, required: false },
|
|
32
32
|
],
|
|
33
33
|
},
|
|
34
34
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/weather.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"weather.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/weather.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAG1D,yBAAyB;AACZ,QAAA,OAAO,GAAkB;IACpC;QACE,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,mBAAmB;QAClC,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE;SACnE;KACF;IACD;QACE,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,mBAAmB;QAClC,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC7D,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE;SACnE;KACF;IACD;QACE,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,mBAAmB;QAClC,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE;SACnE;KACF;CACF,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.xp = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ParameterType_1 = require("../../Types/ParameterType");
|
|
5
5
|
/**The xp command */
|
|
6
6
|
exports.xp = [
|
|
7
7
|
{
|
|
8
8
|
name: "xp",
|
|
9
9
|
documentation: "Adds or removes player experience.",
|
|
10
10
|
parameters: [
|
|
11
|
-
{ text: "xp", type:
|
|
12
|
-
{ text: "amount", type:
|
|
11
|
+
{ text: "xp", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
12
|
+
{ text: "amount", type: ParameterType_1.ParameterType.xp, required: true },
|
|
13
13
|
{
|
|
14
14
|
text: "player",
|
|
15
|
-
type:
|
|
15
|
+
type: ParameterType_1.ParameterType.selector,
|
|
16
16
|
required: false,
|
|
17
17
|
options: { playerOnly: true },
|
|
18
18
|
},
|
|
@@ -22,11 +22,11 @@ exports.xp = [
|
|
|
22
22
|
name: "xp",
|
|
23
23
|
documentation: "Adds or removes player experience.",
|
|
24
24
|
parameters: [
|
|
25
|
-
{ text: "xp", type:
|
|
26
|
-
{ text: "amount", type:
|
|
25
|
+
{ text: "xp", type: ParameterType_1.ParameterType.keyword, required: true },
|
|
26
|
+
{ text: "amount", type: ParameterType_1.ParameterType.integer, required: true },
|
|
27
27
|
{
|
|
28
28
|
text: "player",
|
|
29
|
-
type:
|
|
29
|
+
type: ParameterType_1.ParameterType.selector,
|
|
30
30
|
required: false,
|
|
31
31
|
options: { playerOnly: true },
|
|
32
32
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xp.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/xp.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"xp.js","sourceRoot":"","sources":["../../../../../src/Lib/Data/Vanilla/xp.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAG1D,oBAAoB;AACP,QAAA,EAAE,GAAkB;IAC/B;QACE,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,6BAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1D;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,6BAAa,CAAC,QAAQ;gBAC5B,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAC9B;SACF;KACF;IACD;QACE,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,6BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/D;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,6BAAa,CAAC,QAAQ;gBAC5B,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAC9B;SACF;KACF;CACF,CAAC"}
|
|
@@ -18,6 +18,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./CommandContainer"), exports);
|
|
19
19
|
__exportStar(require("./CommandData"), exports);
|
|
20
20
|
__exportStar(require("./CommandInfo"), exports);
|
|
21
|
-
__exportStar(require("./Edu"), exports);
|
|
22
|
-
__exportStar(require("./Vanilla"), exports);
|
|
23
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Lib/Data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Lib/Data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommandInfo } from "../../Data";
|
|
2
2
|
import { Parameter } from "./Parameter";
|
|
3
|
-
/**A class that helps
|
|
3
|
+
/**A class that helps interpreting written commands.*/
|
|
4
4
|
export declare class Command {
|
|
5
|
-
private
|
|
5
|
+
private _matches;
|
|
6
6
|
/**The parameters of the command.*/
|
|
7
7
|
parameters: Parameter[];
|
|
8
8
|
/**Creates a new instance of a command*/
|
|
@@ -11,15 +11,15 @@ export declare class Command {
|
|
|
11
11
|
*@returns The keyword or "" is command is empty*/
|
|
12
12
|
getKeyword(): string;
|
|
13
13
|
/**Gets all the command data that is the possible best match data
|
|
14
|
-
* @param edu
|
|
14
|
+
* @param edu Whether or not to include education data
|
|
15
15
|
* @returns An array with commands info*/
|
|
16
16
|
getCommandData(edu?: boolean): CommandInfo[];
|
|
17
|
-
/**Gets the best matching
|
|
18
|
-
* @param edu
|
|
17
|
+
/**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
18
|
+
* @param edu Whether or not to include education data
|
|
19
19
|
* @returns An array with commands info*/
|
|
20
20
|
getBestMatch(edu?: boolean): CommandInfo[];
|
|
21
21
|
/**Gets the subcommand if there is any present
|
|
22
|
-
* @param edu
|
|
22
|
+
* @param edu Whether or not to include education data
|
|
23
23
|
* @returns A sub command or undefined if there is no subcommand*/
|
|
24
24
|
getSubCommand(edu?: boolean): Command | undefined;
|
|
25
25
|
/**Finds the parameter index the cursor is at
|
|
@@ -4,11 +4,11 @@ exports.Command = void 0;
|
|
|
4
4
|
const ParameterType_1 = require("../ParameterType");
|
|
5
5
|
const Functions_1 = require("./Functions");
|
|
6
6
|
const Parse_1 = require("./Parse");
|
|
7
|
-
/**A class that helps
|
|
7
|
+
/**A class that helps interpreting written commands.*/
|
|
8
8
|
class Command {
|
|
9
9
|
/**Creates a new instance of a command*/
|
|
10
10
|
constructor() {
|
|
11
|
-
this.
|
|
11
|
+
this._matches = undefined;
|
|
12
12
|
this.parameters = [];
|
|
13
13
|
}
|
|
14
14
|
/**Gets the keyword of this command (first parameter)
|
|
@@ -19,21 +19,21 @@ class Command {
|
|
|
19
19
|
return this.parameters[0].text;
|
|
20
20
|
}
|
|
21
21
|
/**Gets all the command data that is the possible best match data
|
|
22
|
-
* @param edu
|
|
22
|
+
* @param edu Whether or not to include education data
|
|
23
23
|
* @returns An array with commands info*/
|
|
24
24
|
getCommandData(edu = false) {
|
|
25
25
|
return (0, Functions_1.getCommandData)(this.getKeyword(), edu);
|
|
26
26
|
}
|
|
27
|
-
/**Gets the best matching
|
|
28
|
-
* @param edu
|
|
27
|
+
/**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
28
|
+
* @param edu Whether or not to include education data
|
|
29
29
|
* @returns An array with commands info*/
|
|
30
30
|
getBestMatch(edu = false) {
|
|
31
|
-
if (this.
|
|
32
|
-
return this.
|
|
33
|
-
return (this.
|
|
31
|
+
if (this._matches)
|
|
32
|
+
return this._matches;
|
|
33
|
+
return (this._matches = (0, Functions_1.getBestMatches)(this, edu));
|
|
34
34
|
}
|
|
35
35
|
/**Gets the subcommand if there is any present
|
|
36
|
-
* @param edu
|
|
36
|
+
* @param edu Whether or not to include education data
|
|
37
37
|
* @returns A sub command or undefined if there is no subcommand*/
|
|
38
38
|
getSubCommand(edu = false) {
|
|
39
39
|
const Matches = this.getBestMatch(edu);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../../../../src/Lib/Types/Command/Command.ts"],"names":[],"mappings":";;;AACA,oDAAiD;AACjD,2CAA6D;AAE7D,mCAA0D;AAE1D,
|
|
1
|
+
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../../../../src/Lib/Types/Command/Command.ts"],"names":[],"mappings":";;;AACA,oDAAiD;AACjD,2CAA6D;AAE7D,mCAA0D;AAE1D,sDAAsD;AACtD,MAAa,OAAO;IAMlB,wCAAwC;IACxC;QACE,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACvB,CAAC;IAED;sDACkD;IAClD,UAAU;QACR,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,EAAE,CAAC;QA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,IAAI,CAAC,MAAM,CAAC;QAC9B,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC;QAClC,UAAU;QACV,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAEtB,MAAM,OAAO,GAAG,IAAI,wBAAgB,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAA,qBAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE7B,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;QAE/B,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAjID,0BAiIC"}
|
|
@@ -2,7 +2,7 @@ import { Command } from "./Command";
|
|
|
2
2
|
import { CommandInfo } from "../../Data";
|
|
3
3
|
/**Gets the best matching commandinfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
4
4
|
* @param command The command to search through
|
|
5
|
-
* @param edu
|
|
5
|
+
* @param edu Whether or not to include education data
|
|
6
6
|
* @returns An array with commands info*/
|
|
7
7
|
export declare function getBestMatches(command: Command, edu?: boolean): CommandInfo[];
|
|
8
8
|
/**Checks if the command matches the commandinfo
|
|
@@ -13,16 +13,16 @@ export declare function getBestMatches(command: Command, edu?: boolean): Command
|
|
|
13
13
|
export declare function isMatch(command: Command, data: CommandInfo, edu?: boolean): boolean;
|
|
14
14
|
/**Retrieves the command data related to the given keyword
|
|
15
15
|
* @param name The command to retrieve
|
|
16
|
-
* @param edu
|
|
16
|
+
* @param edu Whether or not to include education commands
|
|
17
17
|
* @returns An array with commands info*/
|
|
18
18
|
export declare function getCommandData(name: string, edu?: boolean): CommandInfo[];
|
|
19
19
|
/**Checks if the given commanddata is present
|
|
20
20
|
* @param name The command to retrieve
|
|
21
|
-
* @param edu
|
|
21
|
+
* @param edu Whether or not to include education commands
|
|
22
22
|
* @returns An array with commands info*/
|
|
23
23
|
export declare function hasCommandData(name: string, edu?: boolean): boolean;
|
|
24
24
|
/**Checks if the given commanddata is present
|
|
25
25
|
* @param command The command to retrieve
|
|
26
|
-
* @param edu
|
|
26
|
+
* @param edu Whether or not to include education commands
|
|
27
27
|
* @returns True or false*/
|
|
28
28
|
export declare function IsCommand(command: string, edu?: boolean): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IsCommand = exports.hasCommandData = exports.getCommandData = exports.isMatch = exports.getBestMatches = void 0;
|
|
4
|
-
const Edu_1 = require("../../Data/Edu");
|
|
5
4
|
const bc_minecraft_bedrock_types_1 = require("bc-minecraft-bedrock-types");
|
|
6
5
|
const ParameterType_1 = require("../ParameterType");
|
|
7
|
-
const
|
|
6
|
+
const Commands_1 = require("../../Data/Commands");
|
|
8
7
|
/**Gets the best matching commandinfo data, if multiple are returned, it unclear or somewhere not fully specified
|
|
9
8
|
* @param command The command to search through
|
|
10
|
-
* @param edu
|
|
9
|
+
* @param edu Whether or not to include education data
|
|
11
10
|
* @returns An array with commands info*/
|
|
12
11
|
function getBestMatches(command, edu = false) {
|
|
13
12
|
const m = command.getCommandData(edu);
|
|
@@ -192,36 +191,36 @@ function isMatch(command, data, edu = false) {
|
|
|
192
191
|
exports.isMatch = isMatch;
|
|
193
192
|
/**Retrieves the command data related to the given keyword
|
|
194
193
|
* @param name The command to retrieve
|
|
195
|
-
* @param edu
|
|
194
|
+
* @param edu Whether or not to include education commands
|
|
196
195
|
* @returns An array with commands info*/
|
|
197
196
|
function getCommandData(name, edu = false) {
|
|
198
197
|
const out = [];
|
|
199
|
-
Add(out,
|
|
198
|
+
Add(out, Commands_1.Vanilla[name]);
|
|
200
199
|
if (edu)
|
|
201
|
-
Add(out,
|
|
200
|
+
Add(out, Commands_1.Edu[name]);
|
|
202
201
|
return out;
|
|
203
202
|
}
|
|
204
203
|
exports.getCommandData = getCommandData;
|
|
205
204
|
/**Checks if the given commanddata is present
|
|
206
205
|
* @param name The command to retrieve
|
|
207
|
-
* @param edu
|
|
206
|
+
* @param edu Whether or not to include education commands
|
|
208
207
|
* @returns An array with commands info*/
|
|
209
208
|
function hasCommandData(name, edu = false) {
|
|
210
|
-
if (
|
|
209
|
+
if (Commands_1.Vanilla[name])
|
|
211
210
|
return true;
|
|
212
|
-
if (edu &&
|
|
211
|
+
if (edu && Commands_1.Edu[name])
|
|
213
212
|
return true;
|
|
214
213
|
return false;
|
|
215
214
|
}
|
|
216
215
|
exports.hasCommandData = hasCommandData;
|
|
217
216
|
/**Checks if the given commanddata is present
|
|
218
217
|
* @param command The command to retrieve
|
|
219
|
-
* @param edu
|
|
218
|
+
* @param edu Whether or not to include education commands
|
|
220
219
|
* @returns True or false*/
|
|
221
220
|
function IsCommand(command, edu = false) {
|
|
222
|
-
if (
|
|
221
|
+
if (Commands_1.Vanilla[command])
|
|
223
222
|
return true;
|
|
224
|
-
if (edu &&
|
|
223
|
+
if (edu && Commands_1.Edu[command])
|
|
225
224
|
return true;
|
|
226
225
|
return false;
|
|
227
226
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Functions.js","sourceRoot":"","sources":["../../../../../src/Lib/Types/Command/Functions.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"Functions.js","sourceRoot":"","sources":["../../../../../src/Lib/Types/Command/Functions.ts"],"names":[],"mappings":";;;AAEA,2EAAuE;AACvE,oDAAiD;AACjD,kDAAmD;AAEnD;;;yCAGyC;AACzC,SAAgB,cAAc,CAAC,OAAgB,EAAE,MAAe,KAAK;IACnE,MAAM,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAEtC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAE7B,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,C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AE,GAAG,CAAC,GAAG,EAAE,cAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAE7B,OAAO,GAAG,CAAC;AACb,CAAC;AARD,wCAQC;AAED;;;yCAGyC;AACzC,SAAgB,cAAc,CAAC,IAAY,EAAE,MAAe,KAAK;IAC/D,IAAI,kBAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/B,IAAI,GAAG,IAAI,cAAG,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAElC,OAAO,KAAK,CAAC;AACf,CAAC;AALD,wCAKC;AAED;;;2BAG2B;AAC3B,SAAgB,SAAS,CAAC,OAAe,EAAE,MAAe,KAAK;IAC7D,IAAI,kBAAO,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,GAAG,IAAI,cAAG,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAErC,OAAO,KAAK,CAAC;AACf,CAAC;AALD,8BAKC;AAED,SAAS,GAAG,CAAC,QAAuB,EAAE,KAAgC;IACpE,IAAI,KAAK;QAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -12,7 +12,7 @@ export declare class Parameter {
|
|
|
12
12
|
/**The namespace surrounding the parameter object*/
|
|
13
13
|
export declare namespace Parameter {
|
|
14
14
|
/**Checks if the given instance implements the Parameter object
|
|
15
|
-
* @param value The value to
|
|
15
|
+
* @param value The value to evaluate
|
|
16
16
|
* @returns true or false if the object implements the Parameter object or not*/
|
|
17
17
|
function is(value: any): value is Parameter;
|
|
18
18
|
}
|
|
@@ -15,7 +15,7 @@ exports.Parameter = Parameter;
|
|
|
15
15
|
/**The namespace surrounding the parameter object*/
|
|
16
16
|
(function (Parameter) {
|
|
17
17
|
/**Checks if the given instance implements the Parameter object
|
|
18
|
-
* @param value The value to
|
|
18
|
+
* @param value The value to evaluate
|
|
19
19
|
* @returns true or false if the object implements the Parameter object or not*/
|
|
20
20
|
function is(value) {
|
|
21
21
|
if (value && typeof value.offset === "number" && typeof value.text === "string")
|