@@ -25,6 +25,7 @@ public sealed partial class ModContentRegistry
2525 private static readonly HashSet < Type > RegisteredMonsters = [ ] ;
2626 private static readonly HashSet < Type > RegisteredPowers = [ ] ;
2727 private static readonly HashSet < Type > RegisteredOrbs = [ ] ;
28+ private static readonly HashSet < Type > RegisteredSharedCardPools = [ ] ;
2829 private static readonly HashSet < Type > RegisteredSharedEvents = [ ] ;
2930 private static readonly HashSet < Type > RegisteredSharedAncients = [ ] ;
3031 private static readonly Dictionary < Type , HashSet < Type > > RegisteredActEncounters = [ ] ;
@@ -144,6 +145,12 @@ public void RegisterOrb<TOrb>() where TOrb : OrbModel
144145 RegisterStandaloneModel ( RegisteredOrbs , typeof ( TOrb ) , typeof ( OrbModel ) , "orb" ) ;
145146 }
146147
148+ public void RegisterSharedCardPool < TPool > ( ) where TPool : CardPoolModel
149+ {
150+ RegisterStandaloneModel ( RegisteredSharedCardPools , typeof ( TPool ) , typeof ( CardPoolModel ) ,
151+ "shared card pool" ) ;
152+ }
153+
147154 public void RegisterSharedEvent < TEvent > ( ) where TEvent : EventModel
148155 {
149156 RegisterStandaloneModel ( RegisteredSharedEvents , typeof ( TEvent ) , typeof ( EventModel ) , "shared event" ) ;
@@ -230,6 +237,11 @@ internal static IEnumerable<OrbModel> AppendOrbs(IEnumerable<OrbModel> source)
230237 return AppendResolved ( source , ResolveModels < OrbModel > ( RegisteredOrbs ) ) ;
231238 }
232239
240+ internal static IEnumerable < CardPoolModel > AppendSharedCardPools ( IEnumerable < CardPoolModel > source )
241+ {
242+ return AppendResolved ( source , ResolveModels < CardPoolModel > ( RegisteredSharedCardPools ) ) ;
243+ }
244+
233245 internal static IEnumerable < EventModel > AppendActEvents ( ActModel act , IEnumerable < EventModel > source )
234246 {
235247 return AppendResolved ( source , ResolveScopedModels < EventModel > ( RegisteredActEvents , act . GetType ( ) ) ) ;
@@ -265,6 +277,7 @@ internal static void InjectRegisteredModels()
265277 . Concat ( RegisteredMonsters )
266278 . Concat ( RegisteredPowers )
267279 . Concat ( RegisteredOrbs )
280+ . Concat ( RegisteredSharedCardPools )
268281 . Concat ( RegisteredSharedEvents )
269282 . Concat ( RegisteredSharedAncients )
270283 . Concat ( RegisteredActEncounters . Values . SelectMany ( static set => set ) )
0 commit comments