projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Serialize light state across day and night transitions
[tabakrolletjie.git]
/
tabakrolletjie
/
gamestate.py
diff --git
a/tabakrolletjie/gamestate.py
b/tabakrolletjie/gamestate.py
index 9fe4fc85d3557ea0d991a48e664c3627b0912bf3..6f6725b8e0bda36ef5a031946306194d0496b0e2 100644
(file)
--- 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()