| 
									
										
										
										
											2021-02-26 21:03:16 +01:00
										 |  |  | import enum | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-21 20:17:24 +01:00
										 |  |  | __all__ = {"lookup_any_item_id_to_name", | 
					
						
							| 
									
										
										
										
											2021-02-26 21:03:16 +01:00
										 |  |  |            "lookup_any_location_id_to_name", | 
					
						
							|  |  |  |            "network_data_package", | 
					
						
							|  |  |  |            "Games"} | 
					
						
							| 
									
										
										
										
											2021-02-21 20:17:24 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | from .alttp.Items import lookup_id_to_name as alttp | 
					
						
							|  |  |  | from .hk.Items import lookup_id_to_name as hk | 
					
						
							| 
									
										
										
										
											2021-04-01 11:40:58 +02:00
										 |  |  | from .factorio import Technologies | 
					
						
							|  |  |  | lookup_any_item_id_to_name = {**alttp, **hk, **Technologies.lookup_id_to_name} | 
					
						
							| 
									
										
										
										
											2021-03-14 08:38:02 +01:00
										 |  |  | lookup_any_item_name_to_id = {name: id for id, name in lookup_any_item_id_to_name.items()} | 
					
						
							| 
									
										
										
										
											2021-02-21 20:17:24 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from .alttp import Regions | 
					
						
							|  |  |  | from .hk import Locations | 
					
						
							| 
									
										
										
										
											2021-04-01 11:40:58 +02:00
										 |  |  | lookup_any_location_id_to_name = {**Regions.lookup_id_to_name, **Locations.lookup_id_to_name, | 
					
						
							|  |  |  |                                   **Technologies.lookup_id_to_name} | 
					
						
							| 
									
										
										
										
											2021-03-19 04:30:19 +01:00
										 |  |  | lookup_any_location_name_to_id = {name: id for id, name in lookup_any_location_id_to_name.items()} | 
					
						
							| 
									
										
										
										
											2021-04-01 11:40:58 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-25 02:07:28 +01:00
										 |  |  | network_data_package = {"lookup_any_location_id_to_name": lookup_any_location_id_to_name, | 
					
						
							|  |  |  |                         "lookup_any_item_id_to_name": lookup_any_item_id_to_name, | 
					
						
							| 
									
										
										
										
											2021-04-01 11:40:58 +02:00
										 |  |  |                         "version": 2} | 
					
						
							| 
									
										
										
										
											2021-02-26 21:03:16 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @enum.unique | 
					
						
							|  |  |  | class Games(str, enum.Enum): | 
					
						
							|  |  |  |     HK = "Hollow Knight" | 
					
						
							|  |  |  |     LTTP = "A Link to the Past" | 
					
						
							| 
									
										
										
										
											2021-04-01 11:40:58 +02:00
										 |  |  |     Factorio = "Factorio" | 
					
						
							| 
									
										
										
										
											2021-02-26 21:03:16 +01:00
										 |  |  | 
 |