mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Updated README, tested more complex example :(
This commit is contained in:
6
ToDo.md
6
ToDo.md
@@ -1,10 +1,12 @@
|
|||||||
# ToDo
|
# ToDo
|
||||||
|
|
||||||
* ~~assign to returned values~~
|
* ~~assign to returned values~~
|
||||||
* special cases (like if ... exitWith)
|
* special cases (like if ... exitWith, waitUntil {...})
|
||||||
* sqf: ... sqf whitespace
|
* sqf: ... sqf whitespace
|
||||||
* solution for build in commands which do not require left values
|
* ~~solution for build in commands which do not require left values~~
|
||||||
* ~~pretty/minified printing~~
|
* ~~pretty/minified printing~~
|
||||||
* ~~usage~~
|
* ~~usage~~
|
||||||
* recursive compiling
|
* recursive compiling
|
||||||
* concurrent compiling
|
* concurrent compiling
|
||||||
|
* inline buildin function call -> foo(a)(bar(x)(y));
|
||||||
|
* negative values e.g. -1, operator !
|
||||||
|
|||||||
@@ -1,28 +1,13 @@
|
|||||||
if isServer {
|
diag_log()("easyHC: started");
|
||||||
exitWith();
|
publicVariable()("easyHCpresent");
|
||||||
|
|
||||||
|
if isNil()("easyHCpresent") {
|
||||||
|
easyHCpresent = 1; // HC client ID
|
||||||
}
|
}
|
||||||
|
|
||||||
func ZeusGrpPlaced(_curators, _group) {
|
if isServer()() && hasInterface()() {
|
||||||
each allCurators-_curators {
|
easyHCpresent = owner()(player);
|
||||||
$addCuratorEditableObjects(_x)(_group, true);
|
//diag_log()(format()("easyHC: found headless client with ID %1.", easyHCpresent));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func ZeusObjPlaced(_curators, _unit) {
|
// ...
|
||||||
each allCurators-_curators {
|
|
||||||
$addCuratorEditableObjects(_x)([_unit], true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
each allCurators {
|
|
||||||
$addCuratorEditableObjects(_x)(allUnits, true);
|
|
||||||
$addCuratorEditableObjects(_x)(allMissionObjects("All"), false);
|
|
||||||
|
|
||||||
_curator = _x;
|
|
||||||
|
|
||||||
each allUnits {
|
|
||||||
if vehicle(_x) != _x {
|
|
||||||
$addCuratorEditableObjects(_curator)([vehicle(_x)], true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// TODO:
|
// TODO:
|
||||||
//var _x = setHitIndex(vehicle()(player))(1, 1);
|
//var _x = setHitIndex(vehicle()(player))(1, 1);
|
||||||
var _x = setHit(player)("head");
|
|
||||||
foo();
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ func usage() {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// read test file
|
// read test file
|
||||||
code, _ := ioutil.ReadFile("in/simple.asl")
|
code, _ := ioutil.ReadFile("in/complex.asl")
|
||||||
token := asl.Tokenize(code)
|
token := asl.Tokenize(code)
|
||||||
out := asl.Parse(token, true)
|
out := asl.Parse(token, true)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user