AoTTG 2 Custom Logic VSCode Extension
This is a VSCode extension providing syntax highlighting and autocomplete features for AoTTG 2 Custom Logic.
While this is a super early version of the extension, it already should significantly improve the comfort of writing scripts.
Usage
Script files must be ended with .acl extension.
Annotations example
class AnnotationsDemo
{
# @type Human
_myHuman = null;
# @type Character
_myCharacter = null;
/*
@type Timer
*/
_myTimer = null;
/*@type Object*/
_myObject = null;
# @param foo float
# @param bar Human
# @param baz Titan
# @return Timer
function MethodExample(foo, bar, baz)
{
return Timer();
}
/*
@param foo string
@param bar bool
@param baz Vector3
@return int
*/
function MethodExample2(foo, bar, baz)
{
return 83;
}
}
VSCode Extensions Hub
- Open VSCode and go to the Extensions view (you can press
Ctrl + Shift + X ).
- Search for
AoTTG 2 Custom Logic and install it.
Manual installation
- Download latest
aottg2cl-*.vsix package.
- Open VSCode and go to the Extensions view (you can press
Ctrl + Shift + X )
- Click on the three-dot menu (
... ) in the top-right corner of the Extensions view.
- Select
Install from VSIX...
- Choose the
.vsix file you downloaded in the first step.
Build
npm install -g vsce
npm i
vsce package
| |