Initial Commit

This commit is contained in:
2026-03-16 14:38:46 +02:00
commit b8f7327a21
2327 changed files with 253610 additions and 0 deletions
@@ -0,0 +1,30 @@
namespace Zenject
{
// Derive from this class, add [InitializeOnLoad], and then call Install
// in a static constructor to add some editor time bindings
// For example:
//
// [InitializeOnLoad]
// public class FooInstaller : EditorStaticInstaller<FooInstaller>
// {
// static FooInstaller()
// {
// Install();
// }
//
// public override void InstallBindings()
// {
// Container.BindInstance("hello world");
// }
// }
//
public abstract class EditorStaticInstaller<T> : InstallerBase
where T : EditorStaticInstaller<T>
{
public static void Install()
{
StaticContext.Container.Instantiate<T>().InstallBindings();
}
}
}