Skip to content

Commit 8d25e29

Browse files
committed
Add ucontrol deconstruct support
1 parent 449b3c3 commit 8d25e29

File tree

8 files changed

+30
-3
lines changed

8 files changed

+30
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mindustry_logic_bang_lang"
3-
version = "0.22.4"
3+
version = "0.22.5"
44
edition = "2021"
55

66
authors = ["A4-Tacks <wdsjxhno1001@163.com>"]

syntax/vim/UltiSnips/mdtlbl.snippets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,9 @@ endsnippet
940940
snippet ucontrol.unbind "停用单位的逻辑控制\n恢复常规AI" w
941941
ucontrol unbind 0 0 0 0 0;
942942
endsnippet
943+
snippet ucontrol.deconstruct "拆除某个位置的建筑" w
944+
ucontrol deconstruct ${1:0} ${2:0} 0 0 0;
945+
endsnippet
943946

944947
# ulocate expanded
945948
snippet ulocate.ore "查找矿脉" w

syntax/vscode/support/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mdtlbl",
33
"displayName": "mdtlbl",
44
"description": "Mindustry Logic Bang Lang syntax highlight for VSCode",
5-
"version": "1.0.15",
5+
"version": "1.0.16",
66
"engines": {
77
"vscode": "^1.80.0"
88
},

syntax/vscode/support/publish.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/bash
2+
set -o nounset
3+
set -e
4+
set -x
5+
6+
hash tsc npm vsce ls
7+
8+
cd "$(command dirname -- "$0")"
9+
10+
../make-snippets.jq ../../vim/UltiSnips/mdtlbl.snippets > ./snippets/snippets.json
11+
npm ci
12+
tsc
13+
vsce package
14+
15+
ls -lh ./*.vsix
16+
mv ./*.vsix ./release/
162 KB
Binary file not shown.

syntax/vscode/support/snippets/snippets.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,6 +2096,13 @@
20962096
"ucontrol unbind 0 0 0 0 0;"
20972097
]
20982098
},
2099+
"拆除某个位置的建筑": {
2100+
"prefix": "ucontrol.deconstruct",
2101+
"description": "拆除某个位置的建筑",
2102+
"body": [
2103+
"ucontrol deconstruct ${1:0} ${2:0} 0 0 0;"
2104+
]
2105+
},
20992106
"查找矿脉": {
21002107
"prefix": "ulocate.ore",
21012108
"description": "查找矿脉",

tools/logic_lint/src/lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ const UNIT_CONTROL_METHODS: &[&str] = &[
369369
"autoPathfind", "boost", "target", "targetp", "itemDrop",
370370
"itemTake", "payDrop", "payTake", "payEnter", "mine",
371371
"flag", "build", "getBlock", "within", "unbind",
372+
"deconstruct",
372373
];
373374
const FETCH_METHODS: &[&str] = &[
374375
"unit", "unitCount",

0 commit comments

Comments
 (0)