tyoeer / Chaoshead

A level editor, scripting interface, campaign editor, and reverse engineering tool for Levelhead
Apache License 2.0
4 stars 1 forks source link

Script environment #41

Open tyoeer opened 1 year ago

tyoeer commented 1 year ago

Script is a coroutine: interacting with CH stuff yields, after which CH can do stuff like redraw itself and other stuff, and resume the script afterwards. Print() is wrapped and outputs to a local console. Also provide functions to ask the user for stuff: