Add Map.bounds
This commit is contained in:
		
							parent
							
								
									0a6ff23dcd
								
							
						
					
					
						commit
						402e910915
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,11 @@ class Map:
 | 
			
		|||
 | 
			
		||||
        self.__walkable_points = None
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def bounds(self) -> Rect:
 | 
			
		||||
        '''The bounds of the map'''
 | 
			
		||||
        return Rect(Point(), self.size)
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def size(self) -> Size:
 | 
			
		||||
        '''The size of the map'''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue