X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fgamestate.py;h=6f6725b8e0bda36ef5a031946306194d0496b0e2;hb=24ff8e4688188866651cbda74c559a1dba93b92d;hp=9fe4fc85d3557ea0d991a48e664c3627b0912bf3;hpb=7e9fe5eb24342f9f5a6421e1c424aab596010dd0;p=tabakrolletjie.git diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index 9fe4fc8..6f6725b 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -52,3 +52,6 @@ class GameState(object): @property def turnip_target(self): return self._state["station"]["config"]["turnip target"] + + def update_lights(self, lights): + self._state["station"]["lights"] = lights.serialize_lights()