gladstoriesengine 0.2.6 gladstoriesengine: ^0.2.6 copied to clipboard
The library for the Glad Stories Engine. This is an interactive fiction engine which can be used for editing and running your stories.
0.2.6 #
Black and white images are used for markdown export.
0.2.5 #
- Added new API methods.
- toJson method was refactored and now returns a Map<String, dynamic> instead of String.
- fromJson method was refactored and now expected Map<String, dynamic> instead of String.
- convertToMarkDown converts history of the Story into the Markdown document.
- toMarkdownString returns a Markdown string with images, meta data. Can be used for embedding into sites.
Engine no longer uses jsonEncode/jsonDecode when working with toJson/fromJson methods. It is up to users of the API to convert strings to/from JSON.
Example Before:
Story.fromJson("SOME JSON STRING");
After:
Story.fromJson(jsonEncode("SOME JSON STRING"));
0.2.4 #
- Made imageResolver a required field in the constructor.
0.2.3 #
- Added DartDocs.
- Fixed various linter issues.
- No functional changes.
0.2.2 #
- Removed accidentally added file.
0.2.1 #
- Fixed issue when story could not be initialized without parameters.
0.2.0 #
- Added type annotations for several methods.
- Improved test coverage to 75%.
- Page.hasNext logic is moved to Page.hasNextNode.
- Page.hasNext now returns true/false depending on emptiness of next list.
0.1.3 #
- Added example.
- Formatted the dart files.
0.1.2 #
Fixed issues in Story constructor.
History list is initialized with an empty list.
_logCurrentPassageToHistory ignores imageResolver calls if it is null.
Page.fromMap returns empty Page is map is null or has no keys.
Added unit tests.
0.1.1 #
- Added ImageResolver as an argument for fromJson method
0.1.0 #
- Initial version