Browse Source

Added all special_vars

master
Raphael Roberts 5 years ago
parent
commit
158963283e
  1. 1
      .gitignore
  2. 4
      c2logic/consts.py

1
.gitignore

@ -9,3 +9,4 @@ compile_flags.txt
*.masm
/build/
/dist/
/include/G*

4
c2logic/consts.py

@ -34,4 +34,6 @@ func_binary_ops = ["pow", "max", "min", "angle", "len", "land", "idiv", "strictE
func_unary_ops = ["abs", "log", "log10", "sin", "cos", "tan", "floor", "ceil", "sqrt", "rand"]
binary_ops.update(dict(zip(func_binary_ops, func_binary_ops)))
unary_ops.update(dict(zip(func_unary_ops, func_unary_ops)))
SPECIAL_VARS = ('counter', 'ipt', 'links', 'tick', 'time', 'unit')
SPECIAL_VARS = (
'counter', 'ipt', 'links', 'maph', 'mapw', 'this', 'thisx', 'thisy', 'tick', 'time', 'unit'
)
Loading…
Cancel
Save