X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fworld.py;h=d13b07c10ea5c8e3c81289c0ad33792639136e13;hb=bbb8912588e99e4e7131cc733427563e2c41b95f;hp=b0e3debfd16d830ee8d030aee2aa2eb4e5be8a3a;hpb=cda4116741c03cb69ee972a4285251126fa4de2e;p=koperkapel.git diff --git a/koperkapel/world.py b/koperkapel/world.py index b0e3deb..d13b07c 100644 --- a/koperkapel/world.py +++ b/koperkapel/world.py @@ -30,7 +30,6 @@ class World: ] state["vehicles"] = { "current": "walking", - "available": ["walking"], } state["level"] = { "name": "level1", @@ -128,3 +127,9 @@ class WorldListProxy(WorldBaseProxy): def __getitem__(self, index): return _maybe_subproxy(self, index, self._state[index]) + + def __len__(self): + return len(self._state) + + def __bool__(self): + return bool(self._state)