Skip to content

Commit

Permalink
base demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jul 24, 2024
0 parents commit d0c3085
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.gscc
*.cscc
*.luac
*.zip
/build/
34 changes: 34 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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}"
},
},

]
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Demo GSC Compiler

- acts: https://github.com/ate47/atian-cod-tools
- source: https://github.com/ate47/bo4-source
27 changes: 27 additions & 0 deletions demo/demo.gsc
Original file line number Diff line number Diff line change
@@ -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__() {

}

15 changes: 15 additions & 0 deletions demo/metadata.json
Original file line number Diff line number Diff line change
@@ -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": [
]
}

0 comments on commit d0c3085

Please sign in to comment.