- Save state now available. Call
story.state.ToJson()
to get a JSON string representation of your game state. Callstory.state.LoadJson(yourString)
to load it up again. - Intermediate compiled JSON format for stories themselves re-worked from scratch. File size is now roughly 50% smaller. Further improvements may be made in future but they're likely to be harder work and less dramatic!
VariablesState
now implementsIEnumerable
for easy walking over your global variables from game code. Thanks @bateramos!- API Change:
Story
now has a normal constructor that takes a JSON string rather than calling a staticCreateWithJson
factory method. - Small bug fixes