X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fgamestate.py;h=14da6d880f84d5e562cd30867d005b29fa6d7403;hb=32a34a544785f0fe5b155ac91295713adc47a8f0;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=f3600c28cd6e96abe7c0916860b0cc56b444545f;p=tabakrolletjie.git diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index e69de29..14da6d8 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -0,0 +1,17 @@ +""" The game state. """ + +from .loader import loader + + +class GameState(object): + def __init__(self): + self._state = { + "station": None, + } + + @property + def station(self): + return self._state["station"] + + def load_station(self, station): + self._state["station"] = loader.load_station(station)