Skip to main content
4 events
when toggle format what by license comment
Aug 13, 2017 at 18:58 vote accept Winter
Aug 13, 2017 at 18:16 comment added Derek Elkins left SE You could make a more specific Lazy* class to avoid the downcast, or (preferably) parameterize LazyWorldEventHandler by a type parameter replacing WorldScreen, or (even more preferably) just have WorldScreen take a completely parameterized Lazy type, e.g. Lazy<WorldEventHandler>.
Aug 13, 2017 at 18:10 comment added Winter Since the OnlineWorldEventHandler requires a OnlineWorldScreen specifically, a cast would be required but that's just a detail. Great answer !
Aug 13, 2017 at 18:02 history answered Derek Elkins left SE CC BY-SA 3.0