class_name DreamDB ## Die Traumwelt: ein Dorf. Jedes Wesen hat ein Haus und einen Tagesablauf. static var PLACES: Dictionary = { "haus_ailen": { "name": "Ailens Webstube", "pos": [-28.0, -22.0], "size": [12.0, 10.0], "dir": "back", "color": Color(0.72, 0.62, 0.92), }, "haus_morr": { "name": "Morrs Kammer", "pos": [28.0, -22.0], "size": [12.0, 10.0], "dir": "back", "color": Color(0.58, 0.72, 0.90), }, "haus_ivo": { "name": "Ivos Unterstand", "pos": [-28.0, 22.0], "size": [12.0, 10.0], "dir": "forward", "color": Color(0.88, 0.66, 0.80), }, "haus_sela": { "name": "Selas Turmstube", "pos": [28.0, 22.0], "size": [12.0, 10.0], "dir": "forward", "color": Color(0.62, 0.82, 0.88), }, "lichtung": { "name": "Die Lichtung", "pos": [0.0, 2.0], "size": [0.0, 0.0], "dir": "none", "color": Color(0.60, 0.50, 0.85), }, "tor": { "name": "Tor zur Erde", "pos": [0.0, -34.0], "size": [0.0, 0.0], "dir": "none", "color": Color(0.50, 0.80, 1.0), }, } static var LIST: Array = [ { "id": "ailen", "name": "Ailen", "rolle": "Traumweberin", "leuchtet": true, "farbe": Color(0.78, 0.55, 0.95), "routine": [ [0, "haus_ailen", "webt"], [6, "lichtung", "ruht"], [8, "haus_ailen", "webt"], [14, "lichtung", "singt"], [16, "haus_ailen", "webt"], [20, "haus_ailen", "traeumt"], ], }, { "id": "morr", "name": "Morr", "rolle": "Erinnerungssammler", "leuchtet": true, "farbe": Color(0.45, 0.70, 0.95), "routine": [ [0, "haus_morr", "traeumt"], [5, "lichtung", "sammelt"], [9, "haus_morr", "sortiert"], [15, "lichtung", "sammelt"], [19, "haus_morr", "sortiert"], [22, "haus_morr", "traeumt"], ], }, { "id": "ivo", "name": "Ivo", "rolle": "Bote", "leuchtet": true, "farbe": Color(0.95, 0.60, 0.75), "routine": [ [0, "haus_ivo", "traeumt"], [4, "tor", "beobachtet"], [8, "lichtung", "wandert"], [10, "haus_ivo", "ruht"], [13, "tor", "beobachtet"], [18, "lichtung", "singt"], [21, "haus_ivo", "traeumt"], ], }, { "id": "sela", "name": "Sela", "rolle": "Wächterin des Tors", "leuchtet": true, "farbe": Color(0.55, 0.95, 0.90), "routine": [ [0, "tor", "wacht"], [7, "lichtung", "ruht"], [9, "tor", "wacht"], [17, "haus_sela", "ruht"], [19, "lichtung", "singt"], [21, "haus_sela", "traeumt"], ], }, ] static func by_id(id: String) -> Dictionary: for w in LIST: if w["id"] == id: return w return {}