Make processevent() look a tiny bit better.
This commit is contained in:
parent
08347cdc3f
commit
e62f985e73
22
main.py
22
main.py
@ -91,29 +91,29 @@ def mainLoop():
|
||||
}
|
||||
for i in aoEngineEvents:
|
||||
if i.sVariableToModify == "bCap":
|
||||
bCap = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
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)))
|
||||
bCont = 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)))
|
||||
gPlayer = 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)))
|
||||
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)))
|
||||
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)))
|
||||
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)))
|
||||
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)))
|
||||
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)))
|
||||
level = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
elif i.sVariableToModify == "iDistScale":
|
||||
iDistScale = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
iDistScale = i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
elif i.sVariableToModify is None:
|
||||
i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
i.fLambda(list(map(lambda oX: state[oX], i.tsArguments)))
|
||||
else:
|
||||
raise EngineEventProcessingError('Unknown variable: ' + i.sVariableToModify)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user