Skip to content

v0.3.0

Choose a tag to compare

@aimerib aimerib released this 05 Apr 03:47
· 5 commits to main since this release
85364c2

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.