Node-based dependency injection for C# Godot scripts at build-time, including utilities for automatic node-binding, additional lifecycle hooks, and .net-inspired notification callbacks.
this introduces a small change that allows for two callbacks to be invoked after dependencies are resolved. the new one, Setup, will be invoked before OnResolved if (and only if) the node's IsTesting flag (added to the node by this PowerUp) is set to false (which it is by default).
this makes it easier to unit test. often, you need to initialize values in production that you want to override in a test, but you need them in separate methods or you have no way to inject the fake stuff in.
this introduces a small change that allows for two callbacks to be invoked after dependencies are resolved. the new one,
Setup
, will be invoked beforeOnResolved
if (and only if) the node's IsTesting flag (added to the node by this PowerUp) is set to false (which it is by default).this makes it easier to unit test. often, you need to initialize values in production that you want to override in a test, but you need them in separate methods or you have no way to inject the fake stuff in.