MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / next_weather

Method next_weather

PythonAPI/examples/manual_control.py:235–240  ·  view source on GitHub ↗
(self, reverse=False)

Source from the content-addressed store, hash-verified

233 self.hud.notification(actor_type)
234
235 def next_weather(self, reverse=False):
236 self._weather_index += -1 if reverse else 1
237 self._weather_index %= len(self._weather_presets)
238 preset = self._weather_presets[self._weather_index]
239 self.hud.notification('Weather: %s' % preset[1])
240 self.player.get_world().set_weather(preset[0])
241
242 def toggle_radar(self):
243 if self.radar_sensor is None:

Callers 1

parse_eventsMethod · 0.45

Calls 1

notificationMethod · 0.45

Tested by

no test coverage detected