This repository was archived by the owner on Apr 16, 2025. It is now read-only.
0.0.4
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:
- Add StorySystem to Story
- Add Component with StorySystem addComponent method
- Configure Component