Every action needs an actor, even ExitAction
This commit is contained in:
		
							parent
							
								
									17bad9fd4d
								
							
						
					
					
						commit
						bc46856117
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -79,7 +79,7 @@ class EventHandler(tcod.event.EventDispatch[Action]):
 | 
			
		|||
        return result
 | 
			
		||||
 | 
			
		||||
    def ev_quit(self, event: tcod.event.Quit) -> Optional[Action]:
 | 
			
		||||
        return ExitAction()
 | 
			
		||||
        return ExitAction(self.engine.hero)
 | 
			
		||||
 | 
			
		||||
    def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[Action]:
 | 
			
		||||
        action: Optional[Action] = None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue