Add new IDependencyInjectionCandidate interface to non-drawable cached classes

This commit is contained in:
Dean Herbert
2022-11-29 14:45:26 +09:00
parent b5b79e09e4
commit 61c702c02e
5 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ namespace osu.Game.Tests.Visual.OnlinePlay
=> dependencies.Get(type, info);
public void Inject<T>(T instance)
where T : class
where T : class, IDependencyInjectionCandidate
=> dependencies.Inject(instance);
protected void Cache(object instance)