From 34486843638be8c699e1bed4d9ccca46b51416bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 7 Apr 2024 17:22:41 +0500 Subject: [PATCH] Make more variable modifiable through engine events. --- main.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index ff46273..8f8ce0f 100755 --- a/main.py +++ b/main.py @@ -87,14 +87,24 @@ def mainLoop(): 'ground': ground } for i in aoEngineEvents: - if i.sVariableToModify == "bCont": + if i.sVariableToModify == "bCap": + bCap = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "bCont": bCont = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) - elif i.sVariableToModify == "debugInfo": - debugInfo = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) elif i.sVariableToModify == "gPlayer": gPlayer = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) - elif i.sVariableToModify == "bCap": - bCap = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "fontSize": + fontSize = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "wall_buffer": + wall_buffer = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "alerts": + alerts = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "sky": + sky = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "ground": + ground = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) + elif i.sVariableToModify == "debugInfo": + debugInfo = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) elif i.sVariableToModify == "level": level = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments))) elif i.sVariableToModify is None: