from .generated import common_pb2 as common_pb2 from typing import TYPE_CHECKING, NamedTuple if TYPE_CHECKING: from . import Lingo2World class PlayerLocation(NamedTuple): code: int | None class Lingo2PlayerLogic: locations_by_room: dict[int, list[PlayerLocation]] def __init__(self, world: "Lingo2World"): self.locations_by_room = {} for door in world.static_logic.objects.doors: if door.type == common_pb2.DoorType.STANDARD: self.locations_by_room.setdefault(door.room_id, []).append(PlayerLocation(door.ap_id)) lue='b92db337bf7cbe2ea0564be6c63c336d2bcd4567'/> Natural language generation library
summary refs log tree commit diff stats
path: root/LICENSE
blob: ad40f033bfd3a99c53776432e525973faf71560e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122