mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-31 08:37:14 +01:00
* sync (#3) * shuttle auto call * Merge /vore into /master (#39) * progress * Compile errors fixed No idea if it's test worthy tho as conflicts with race overhaul and narky removal. * Update admins.txt * efforts continue Fuck grab code, seriously * grab code is cancer * Execute the Narkism Do not hesitate. Show no mercy. * holy shit grab code is awful * have I bitched about grab code My bitching, let me show you it * código de agarre es una mierda No really it is * yeah I don't even know anymore. * Lolnope. Fuck grab code * I'm not even sure what to fix anymore * Self eating is not an acceptable fate * Taste the void, son. * My code doesn't pass it's own sanity check. Maybe it's a sign of things to come. * uncommented and notes * It Works and I Don't Know Why (#38) * shuttle auto call * it works and I don't know why * Subsystem 12/21 Most Recent TG subsystem folder * globalvars 12/21 Tossed out the flavor_misc and parallax files * Onclick 12/21 as well as .dme updates * _defines 12/21 ommited old _MC.dm * _HELPERS 12/21 Preserved snowflake placement of furry sprites * _defeines/genetics reapplied narkism holdover for snowflake races. * Oops forgot mutant colors * modules porting 12/21 + Sounds/icons Admin, Client and most of mob life files ommitted * enviroment file * Admin optimizations ahelp log system kept * Mob ports 12/21 Flavor text preserved * datums ported 12/21 * Game ported 12/21 * batch of duplicate fixes/dogborg work Dogborgs need to be modernized to refractored borg standards. * moar fixes * Maps and futher compile fixes
94 lines
2.6 KiB
Plaintext
94 lines
2.6 KiB
Plaintext
/datum/computer/file/embedded_program
|
|
var/list/memory = list()
|
|
var/state
|
|
var/obj/machinery/embedded_controller/master
|
|
|
|
/datum/computer/file/embedded_program/proc/post_signal(datum/signal/signal, comm_line)
|
|
if(master)
|
|
master.post_signal(signal, comm_line)
|
|
else
|
|
qdel(signal)
|
|
|
|
/datum/computer/file/embedded_program/proc/receive_user_command(command)
|
|
|
|
/datum/computer/file/embedded_program/proc/receive_signal(datum/signal/signal, receive_method, receive_param)
|
|
return null
|
|
|
|
/datum/computer/file/embedded_program/process()
|
|
return 0
|
|
|
|
/obj/machinery/embedded_controller
|
|
var/datum/computer/file/embedded_program/program
|
|
|
|
name = "embedded controller"
|
|
density = 0
|
|
anchored = 1
|
|
|
|
var/on = 1
|
|
|
|
/obj/machinery/embedded_controller/interact(mob/user)
|
|
user.set_machine(src)
|
|
var/datum/browser/popup = new(user, "computer", name) // Set up the popup browser window
|
|
popup.set_title_image(user.browse_rsc_icon(src.icon, src.icon_state))
|
|
popup.set_content(return_text())
|
|
popup.open()
|
|
|
|
/obj/machinery/embedded_controller/attack_hand(mob/user)
|
|
interact(user)
|
|
|
|
/obj/machinery/embedded_controller/update_icon()
|
|
|
|
/obj/machinery/embedded_controller/proc/return_text()
|
|
|
|
/obj/machinery/embedded_controller/proc/post_signal(datum/signal/signal, comm_line)
|
|
return 0
|
|
|
|
/obj/machinery/embedded_controller/receive_signal(datum/signal/signal, receive_method, receive_param)
|
|
if(!signal || signal.encryption) return
|
|
|
|
if(program)
|
|
program.receive_signal(signal, receive_method, receive_param)
|
|
//spawn(5) program.process() //no, program.process sends some signals and machines respond and we here again and we lag -rastaf0
|
|
|
|
/obj/machinery/embedded_controller/Topic(href, href_list)
|
|
if(..())
|
|
return 0
|
|
|
|
if(program)
|
|
program.receive_user_command(href_list["command"])
|
|
addtimer(program, "process", 5)
|
|
|
|
usr.set_machine(src)
|
|
addtimer(src, "updateDialog", 5)
|
|
|
|
/obj/machinery/embedded_controller/process()
|
|
if(program)
|
|
program.process()
|
|
|
|
update_icon()
|
|
src.updateDialog()
|
|
|
|
/obj/machinery/embedded_controller/radio
|
|
var/frequency
|
|
var/datum/radio_frequency/radio_connection
|
|
|
|
/obj/machinery/embedded_controller/radio/Destroy()
|
|
if(SSradio)
|
|
SSradio.remove_object(src,frequency)
|
|
return ..()
|
|
|
|
/obj/machinery/embedded_controller/radio/initialize()
|
|
set_frequency(frequency)
|
|
|
|
/obj/machinery/embedded_controller/radio/post_signal(datum/signal/signal)
|
|
signal.transmission_method = TRANSMISSION_RADIO
|
|
if(radio_connection)
|
|
return radio_connection.post_signal(src, signal)
|
|
else
|
|
signal = null
|
|
|
|
/obj/machinery/embedded_controller/radio/proc/set_frequency(new_frequency)
|
|
SSradio.remove_object(src, frequency)
|
|
frequency = new_frequency
|
|
radio_connection = SSradio.add_object(src, frequency)
|