diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f11e607 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.gscc +*.cscc +*.luac +*.zip +/build/ \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..d8917db --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,34 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "compile current file", + "type": "shell", + "command": "acts", + "args": [ + "-l", "t", + "gscc", + "-d", + "--detour", "acts", + "-g", "t8", + "-o", "${fileBasenameNoExtension}", + "${fileBasename}", + ], + "group": { + "kind": "test", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "panel": "dedicated", + "echo": false, + "clear": true, + "focus": true, + }, + "options": { + "cwd": "${fileDirname}" + }, + }, + + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d5a86c4 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Demo GSC Compiler + +- acts: https://github.com/ate47/atian-cod-tools +- source: https://github.com/ate47/bo4-source diff --git a/demo/demo.gsc b/demo/demo.gsc new file mode 100644 index 0000000..d202886 --- /dev/null +++ b/demo/demo.gsc @@ -0,0 +1,27 @@ +#using scripts\core_common\values_shared; +#using scripts\core_common\system_shared; +#using scripts\core_common\callbacks_shared; +#using scripts\core_common\util_shared; +#using scripts\core_common\array_shared; +#using scripts\core_common\clientfield_shared; + +#namespace demo; + +/* + load scripts -> autoexec functions + init step + post init step + */ + +function autoexec __init__system__() { + system::register("demo", &__init__, &__main__); +} + +function __init__() { + +} + +function __main__() { + +} + diff --git a/demo/metadata.json b/demo/metadata.json new file mode 100644 index 0000000..a494272 --- /dev/null +++ b/demo/metadata.json @@ -0,0 +1,15 @@ +{ + "name": "Demo", + "data": [ + { + "type": "scriptparsetree", + "name": "scripts/atian_mods/demo.gsc", + "path": "demo.gscc", + "hooks": [ + "scripts/mp_common/bb.gsc" + ] + } + ], + "cache": [ + ] +} \ No newline at end of file