mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-09 07:40:01 +00:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commitafbdd1d844. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commitde22ad375d. * Attempt to normalize example.yml (and another file I guess) * Try again
32 lines
899 B
Plaintext
32 lines
899 B
Plaintext
/datum/embedded_program
|
|
var/name
|
|
var/list/memory = list()
|
|
var/obj/machinery/embedded_controller/master
|
|
|
|
var/id_tag
|
|
|
|
/datum/embedded_program/New(var/obj/machinery/embedded_controller/M)
|
|
master = M
|
|
if (istype(M, /obj/machinery/embedded_controller/radio))
|
|
var/obj/machinery/embedded_controller/radio/R = M
|
|
id_tag = R.id_tag
|
|
|
|
/datum/embedded_program/Destroy()
|
|
if(master)
|
|
master.program = null
|
|
master = null
|
|
return ..()
|
|
|
|
// Return TRUE if was a command for us, otherwise return FALSE (so controllers with multiple programs can try each in turn until one accepts)
|
|
/datum/embedded_program/proc/receive_user_command(command)
|
|
return FALSE
|
|
|
|
/datum/embedded_program/proc/receive_signal(datum/signal/signal, receive_method, receive_param)
|
|
return
|
|
|
|
/datum/embedded_program/proc/post_signal(datum/signal/signal, comm_line)
|
|
if(master)
|
|
master.post_signal(signal, comm_line)
|
|
else
|
|
qdel(signal)
|