started event reading
This commit is contained in:
@ -1,7 +1,18 @@
|
||||
import csv
|
||||
import os.path
|
||||
|
||||
import config.object_ids as obj_ids
|
||||
|
||||
DEFAULT_EVENTS_CSV_PATH = "config/events.csv"
|
||||
RETURNVALUE_DICT = None
|
||||
|
||||
|
||||
def handle_event_packet(
|
||||
object_id: bytes, event_id: int, param_1: int, param_2: int
|
||||
) -> str:
|
||||
return ""
|
||||
if os.path.exists(DEFAULT_EVENTS_CSV_PATH) and RETURNVALUE_DICT is None:
|
||||
with open(DEFAULT_EVENTS_CSV_PATH) as csvfile:
|
||||
csv_reader = csv.reader(csvfile, delimiter=";")
|
||||
for row in csv_reader:
|
||||
print(row)
|
||||
return ""
|
||||
|
Reference in New Issue
Block a user