Skip to content

Releases: aimerib/nightrunner-lib

v0.3.1

05 Apr 04:34
013ace0
Compare
Choose a tag to compare
  • Update dependencies and remove unnecessary steps in deploy workflows
  • Update command to generate WASM for the node dependency.

v0.3.0

05 Apr 03:47
85364c2
Compare
Choose a tag to compare

Update narrative and event system

Added

  • Support for YAML and JSON configuration files for game setup.
  • New fields in the Event struct:
    • add_subject: Adds a new subject to the room when the event is triggered.
    • remove_subject: Removes a subject from the room when the event is triggered.
    • move_subject_to_location: Moves a subject to a different room when the event is triggered.
  • Error handling for missing or invalid event data.
  • Proper error messages for parsing errors and missing data.
  • Serialization and deserialization support for game progress saving and loading.

Changed

  • Refactored handle_event function to improve readability and maintainability.
  • Updated process_subject_movement function to handle subject movement and removal separately.
  • Modified return_formated_message function to simplify the logic and improve performance.
  • Enhanced error handling in the parse_input and json_parse_input functions.
  • Improved documentation and code comments for better understanding and usability.
  • Updated wasm examples

Fixed

  • Fixed issue with multiple mutable borrows in the on_submit function.
  • Fixed incorrect behavior when processing subject movement and removal in events.

Removed

  • Removed unused dependencies and code snippets.
  • Removed redundant and obsolete documentation.