File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22from json import dump , load
33
44def main ():
5- # TODO add logic for OnGameEvent so that the end result is "OnGameEvent_${1:name}(${2:table params})$0"
6- # Change data management to dicts and json
5+
76 try :
87 with open ("defs.txt" , "r" , encoding = "utf-8" ) as defs_file :
98 defs_data = defs_file .readlines ()
@@ -33,7 +32,7 @@ def parse_defs(defs_data: str) -> dict:
3332 quad_defs_entry = 0
3433 most_recent_function = ""
3534 for line in defs_data :
36- text = line [0 :- 1 ] # necessary because ".readlines() injects newlines"
35+ text = line [0 :- 1 ] # necessary because ".readlines()" injects newlines
3736
3837 match ["function" , "signature" , "description" , "space" ][quad_defs_entry % 4 ]:
3938 case "function" :
Original file line number Diff line number Diff line change 1+ ## WIP List
2+ - Change data management to Dicts and JSon
3+ - NetProp Autocompletion where ` ent.m_iHealth ` gets resolved to ` NetProps.GetPropInt(ent, "m_iHealth") ` automatically
4+ - Add logic for OnGameEvent so that the end result is ` OnGameEvent_${1:name}(${2:table params})$0 `
You can’t perform that action at this time.
0 commit comments