A lightweight alternative to scripting in gameplay code