URN.py 2.82 KB
Newer Older
Juon Kawakami's avatar
init  
Juon Kawakami committed
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#AutoGenerated by 'rcrs-server/scripts/platforms/compile.sh'
#Please do not modify it

from enum import IntEnum


class Entity(IntEnum):
	WORLD = 0x1101
	ROAD = 0x1102
	BLOCKADE = 0x1103
	BUILDING = 0x1104
	REFUGE = 0x1105
	HYDRANT = 0x1106
	GAS_STATION = 0x1107
	FIRE_STATION = 0x1108
	AMBULANCE_CENTRE = 0x1109
	POLICE_OFFICE = 0x110a
	CIVILIAN = 0x110b
	FIRE_BRIGADE = 0x110c
	AMBULANCE_TEAM = 0x110d
	POLICE_FORCE = 0x110e


class Property(IntEnum):
	START_TIME = 0x1201
	LONGITUDE = 0x1202
	LATITUDE = 0x1203
	WIND_FORCE = 0x1204
	WIND_DIRECTION = 0x1205
	X = 0x1206
	Y = 0x1207
	BLOCKADES = 0x1208
	REPAIR_COST = 0x1209
	FLOORS = 0x120a
	BUILDING_ATTRIBUTES = 0x120b
	IGNITION = 0x120c
	FIERYNESS = 0x120d
	BROKENNESS = 0x120e
	BUILDING_CODE = 0x120f
	BUILDING_AREA_GROUND = 0x1210
	BUILDING_AREA_TOTAL = 0x1211
	APEXES = 0x1212
	EDGES = 0x1213
	POSITION = 0x1214
	DIRECTION = 0x1215
	POSITION_HISTORY = 0x1216
	STAMINA = 0x1217
	HP = 0x1218
	DAMAGE = 0x1219
	BURIEDNESS = 0x121a
	TRAVEL_DISTANCE = 0x121b
	WATER_QUANTITY = 0x121c
	TEMPERATURE = 0x121d
	IMPORTANCE = 0x121e
	CAPACITY = 0x121f
	BED_CAPACITY = 0x1220
	OCCUPIED_BEDS = 0x1221
	REFILL_CAPACITY = 0x1222
	WAITING_LIST_SIZE = 0x1223


class Command(IntEnum):
	AK_REST = 0x1301
	AK_MOVE = 0x1302
	AK_LOAD = 0x1303
	AK_UNLOAD = 0x1304
	AK_SAY = 0x1305
	AK_TELL = 0x1306
	AK_EXTINGUISH = 0x1307
	AK_RESCUE = 0x1308
	AK_CLEAR = 0x1309
	AK_CLEAR_AREA = 0x130a
	AK_SUBSCRIBE = 0x130b
	AK_SPEAK = 0x130c


class ComponentCommand(IntEnum):
	Target = 0x1401
	DestinationX = 0x1402
	DestinationY = 0x1403
	Water = 0x1404
	Path = 0x1405
	Message = 0x1406
	Channel = 0x1407
	Channels = 0x1408


class ControlMSG(IntEnum):
	KG_CONNECT = 0x0101
	KG_ACKNOWLEDGE = 0x0102
	GK_CONNECT_OK = 0x0103
	GK_CONNECT_ERROR = 0x0104
	SK_CONNECT = 0x0105
	SK_ACKNOWLEDGE = 0x0106
	SK_UPDATE = 0x0107
	KS_CONNECT_OK = 0x0108
	KS_CONNECT_ERROR = 0x0109
	KS_UPDATE = 0x010a
	KS_COMMANDS = 0x010b
	KS_AFTERSHOCKS_INFO = 0x010c
	VK_CONNECT = 0x010d
	VK_ACKNOWLEDGE = 0x010e
	KV_CONNECT_OK = 0x010f
	KV_CONNECT_ERROR = 0x0110
	KV_TIMESTEP = 0x0111
	AK_CONNECT = 0x0112
	AK_ACKNOWLEDGE = 0x0113
	KA_CONNECT_OK = 0x0114
	KA_CONNECT_ERROR = 0x0115
	KA_SENSE = 0x0116
	SHUTDOWN = 0x0117
	ENTITY_ID_REQUEST = 0x0118
	ENTITY_ID_RESPONSE = 0x0119


class ComponentControlMSG(IntEnum):
	RequestID = 0x0201
	AgentID = 0x0202
	Version = 0x0203
	Name = 0x0204
	RequestedEntityTypes = 0x0205
	SimulatorID = 0x0206
	RequestNumber = 0x0207
	NumberOfIDs = 0x0208
	NewEntityIDs = 0x0209
	Reason = 0x020a
	Entities = 0x020b
	ViewerID = 0x020c
	AgentConfig = 0x020d
	Time = 0x020e
	Updates = 0x020f
	Hearing = 0x0210
	INTENSITIES = 0x0211
	TIMES = 0x0212
	ID = 0x0213
	Commands = 0x0214
	SimulatorConfig = 0x0215
	Changes = 0x0216


MAP={int(u):u for u in list(Entity) +list(Property) +list(Command) +list(ComponentCommand) +list(ControlMSG) +list(ComponentControlMSG) }