Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reduce generics #18

Merged
merged 1 commit into from
Oct 7, 2023
Merged

feat: reduce generics #18

merged 1 commit into from
Oct 7, 2023

Conversation

definitelyokay
Copy link
Member

@definitelyokay definitelyokay commented Oct 7, 2023

  • removes generics for input and output — they are both just of type object as far as logic blocks is concerned. this drastically reduces boilerplate when creating logic blocks and will substantially simplify errors while developing.
  • fixes generator to infer inputs and outputs from usage, as opposed to relying on subtypes.
  • changes all examples and test fixtures to use readonly record struct types for input and output types, as well as sets forth the convention of organizing inputs and outputs in static classes inside a logic block subclass.
  • overhauled documentation in the readme, complete with the latest up-to-date code examples and diagrams
  • bumps version to 3.0, given these major breaking changes.
  • makes seperate versions of StateLogic for LogicBlock and LogicBlockAsync so that states can trigger enter/exit callbacks themselves.
  • removes the state tester in favor of asking states to re-enter and re-exit.
  • overhauls the tutorial on creating a space heater to create a much cleaner and more realistic, real-world type of example.

@definitelyokay definitelyokay merged commit be85467 into main Oct 7, 2023
4 checks passed
@definitelyokay definitelyokay deleted the feat/less-generics branch February 29, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant