Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mindustry v7 Syntax #4

Merged
merged 33 commits into from
Aug 21, 2021
Merged

Mindustry v7 Syntax #4

merged 33 commits into from
Aug 21, 2021

Conversation

Antyos
Copy link
Owner

@Antyos Antyos commented Aug 21, 2021

Update mlog syntax to be compatible with Mindustry v7. Closes #3.

Added

  • Jump labels syntax
  • Operators: strictEqual, asin, acos, and atan
  • Commands: wait and lookup
  • At-names:
    • Built-in: @tick
    • Counts: @blockCount, @unitCount, @itemCount, @liquidCount
    • Controlled: @ctrlProcessor, @ctrlPlayer, @ctrlFormation
    • Sensable: @progress, @timescale, @size, @dead, @range, @boosting, @controller
    • Other: @payload-propulsion-tower, @payload-source, @payload-void
  • Unrecognized at-names will also be highlighted

Fixed

  • Highlighting for: @power-node-large, @battery-large, @solar-panel-large

Changed

  • Operators: atan2 and dst with angle and len, respectively

Deprecated

  • At-names: @commanded
  • Operators: atan2 and dst. While not officially deprecated in-game, it is unclear if they will continue to be supported and the game seems to be favoring the new angle and len, respectively.

Add: progress, timescale, size, dead, range, boosting, controller
Deprecated: commanded
Although `configure` was removed, it was never in the grammar.
Add: angle, len, asin, cos, atan, strictEqual
Deprecated: atan2, dst
Add:
tick
blockCount, unitCount, itemCount, liquidCount
ctrlProcessor, ctrlPlayer, ctrlFormation,
jump_labels use scope 'entity.name.function.mlog' for consistency with
other assembly languages, such as 13xforever/x86_64-assembly-vscode
@Antyos Antyos merged commit 342ac75 into main Aug 21, 2021
@Antyos Antyos deleted the mindustry-v7 branch August 21, 2021 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Mindustry v7
1 participant