Update readme with Python3 event handler info

This commit is contained in:
Kristóf Tóth 2018-07-30 09:00:19 +02:00
parent a2d1531ea4
commit 199e1a5d6e
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ Our pre-made event handlers are written in Python3, but you can write event hand
This makes the framework really flexible: you can demonstrate the concepts you want to in any language while using the same set of tools provided by TFW.
Inside Avatao this means that any of the content teams can use the framework with ease.
To implement an event handler in Python3 you should subclass the `EventHandlerBase` or `FSMAwareEventHandler` class in `tfw.event_handler_base` (the first provides a minimal working `EventHandler`, the second allows you to execute code on FSM events).
### FSM
Another unique feature of the framework is the FSM finite state machine representing the state of your challenge.