code: def clear_to_reset(self, config_vars):
          
  
          super(TileManagerState, self).clear_to_reset(config_vars)
          self.registered_tiles = self.registered_tiles[:1]
          self.safe_mode = False
          self.debug_mode = False
docs: Clear to the state immediately after a reset.