Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

0.0.4

Compare
Choose a tag to compare
@CrissNamon CrissNamon released this 29 Sep 23:36
· 124 commits to main since this release
34114f8

Components rework:

  • Added Component interface which represents abstract component such as Character for example
  • StoryCharacter, StoryQuest, StoryItem are extending Component now

Story rework:

  • Added StorySystem interface which represents abstract system such as Character system for example
  • Added CharacterSystem, ItemSystem, LocationSystem, QuestSystem which are extending StorySystem
  • All systems must be registered in story with addSystem method
  • Systems can have requirements which can be set with @StorySystemRequirement annotation
  • Story interface has a default method checkSystemRequirements for requirements check. It will be called on addSystem method in SimpleStory and should be called in your own implementation

StorySystem:

  • Must have non-private (protected best) empty constructor for SimpleStory implementation

Story is depends only on StoryNode now. From now story creation is looks like:

  1. Add StorySystem to Story
  2. Add Component with StorySystem addComponent method
  3. Configure Component