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

Method next_weather

PythonAPI/examples/automatic_control.py:136–141  ·  view source on GitHub ↗
(self, reverse=False)

Source from the content-addressed store, hash-verified

134 self.hud.notification(actor_type)
135
136 def next_weather(self, reverse=False):
137 self._weather_index += -1 if reverse else 1
138 self._weather_index %= len(self._weather_presets)
139 preset = self._weather_presets[self._weather_index]
140 self.hud.notification('Weather: %s' % preset[1])
141 self.player.get_world().set_weather(preset[0])
142
143 def tick(self, clock):
144 self.hud.tick(self, clock)

Callers

nothing calls this directly

Calls 1

notificationMethod · 0.45

Tested by

no test coverage detected