File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
BenMakesGames.PlayPlayMini Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 <Company >Ben Hendel-Doying</Company >
66 <Description >An opinionated framework for making smallish games with MonoGame.</Description >
77 <Copyright >2021-2025 Ben Hendel-Doying</Copyright >
8- <Version >7.0.0-rc1 </Version >
8+ <Version >7.0.0-rc2 </Version >
99
1010 <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
1111 <PackageTags >monogame game engine framework di state</PackageTags >
Original file line number Diff line number Diff line change @@ -196,7 +196,10 @@ public void Run()
196196 }
197197
198198 builder . RegisterAssemblyTypes ( assembly )
199- . Where ( t => t . IsAssignableTo < GameState > ( ) )
199+ . Where ( t =>
200+ t . IsAssignableTo < GameState > ( ) ||
201+ ( t . BaseType is { IsGenericType : true } && t . BaseType . GetGenericTypeDefinition ( ) == typeof ( GameState < > ) )
202+ )
200203 . AsSelf ( )
201204 . InstancePerDependency ( )
202205 . OnActivating ( s => serviceWatcher . RegisterService ( s . Instance ) )
You can’t perform that action at this time.
0 commit comments