assorted tcomms housekeeping

split some files, merged some files, cleaned some code
removed spurious listening level toggle from relays
This commit is contained in:
Spookerton
2023-12-29 18:56:36 +00:00
parent 6d865d9859
commit 87d9ddf0bd
25 changed files with 1934 additions and 2298 deletions

View File

@@ -7,6 +7,10 @@
/n_Interpreter/TCS_Interpreter
var/datum/TCS_Compiler/Compiler
/n_Interpreter/TCS_Interpreter/Destroy()
QDEL_NULL(Compiler)
return ..()
/n_Interpreter/TCS_Interpreter/HandleError(runtimeError/e)
Compiler.Holder.add_entry(e.ToString(), "Execution Error")
@@ -15,6 +19,11 @@
var/obj/machinery/telecomms/server/Holder // the server that is running the code
var/ready = 1 // 1 if ready to run code
/datum/TCS_Compiler/Destroy()
QDEL_NULL(interpreter)
Holder = null
return ..()
/** Proc: Compile
* Compile a raw block of text into a program
* Returns: List of errors
@@ -278,4 +287,3 @@
var/pass = S.relay_information(newsign, /obj/machinery/telecomms/hub)
if(!pass)
S.relay_information(newsign, /obj/machinery/telecomms/broadcaster) // send this simple message to broadcasters