chickensoft-games / LogicBlocks

Human-friendly, hierarchical state machines for games and apps in C#.
https://www.nuget.org/packages/Chickensoft.LogicBlocks
MIT License
152 stars 6 forks source link

fix: prevent outputs from getting boxed and hitting the heap unnecessarily #30

Closed definitelyokay closed 6 months ago

definitelyokay commented 6 months ago

Outputs were getting boxed when casted to object, so this prevents that. Now, unless you're using the FakeContext for testing, outputs will always just be passed through.

This does restrict outputs to being value types — but they should be anyways ;)