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.
Script files must be ended with
.acl
extension.
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;
}
}
- Open VSCode and go to the Extensions view (you can press
Ctrl + Shift + X
). - Search for
AoTTG 2 Custom Logic
and install it.
- 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.
npm install -g vsce
npm i
vsce package