1 """ The game state. """
3 from .loader import loader
6 class GameState(object):
17 return self._state["station"]
21 return self._state["turnips"]
24 def turnips(self, turnip_list):
25 self._state["turnips"] = turnip_list
29 if 'seeds' in self._state:
30 return self._state['seeds']
31 elif (self._state["station"] and
32 'seeds' in self._state["station"]["config"]):
33 self._state['seeds'] = self._state["station"]["config"]["seeds"]
34 return self._state['seeds']
38 def seeds(self, value):
39 self._state['seeds'] = value
41 def load_station(self, station):
42 self._state["station"] = loader.load_station(station)