Daedalus Dock - Modules - TypesVar Details - Proc Details

computer4

Vars

default_operating_systemDefault operating system to install by default.
default_peripheralsList of peripheral typepaths to install by default.
default_program_dirThe directory to install them in
default_programsList of program typepaths to install by default.
operating_systemThe operating system.
peripheralsk:v list of peripherals where key is the peripheral type and v is a reference.
rebootingSet to TRUE during restart, prevents inputting commands.
soundloopSoundloop. Self explanatory.
text_bufferScreen text buffer.
tgui_input_historyk:v list of ckey to a list of past inputs.
tgui_input_indexk:v list of ckey to a number that indexes into the input history, used to update tgui_last_accessed.
tgui_last_accessedk:v list of ckey to the last used command.
typing_sfxTyping sound/sfx key

Procs

add_peripheralAdds a peripheral to the peripherals list. Does not handle physical location.
get_historyGet the history entry at a certain index. Returns null if the index is out of bounds or the ckey is null. Will return an empty string for length+1
get_peripheralGetter for retrieving peripherals in program code.
peripheral_goneHandles a peripheral moving.
peripheral_inputCalled by peripherals to interface with the computer
remove_peripheralRemoves a peripheral from the peripherals list. Does not handle physical location.
set_operating_systemSetter for operating system.
traverse_historyTraverse the current history by some amount. Returns true if different history was accessed, false otherwise (usually if new index OOB)

Var Details

default_operating_system

Default operating system to install by default.

default_peripherals

List of peripheral typepaths to install by default.

default_program_dir

The directory to install them in

default_programs

List of program typepaths to install by default.

operating_system

The operating system.

peripherals

k:v list of peripherals where key is the peripheral type and v is a reference.

rebooting

Set to TRUE during restart, prevents inputting commands.

soundloop

Soundloop. Self explanatory.

text_buffer

Screen text buffer.

tgui_input_history

k:v list of ckey to a list of past inputs.

tgui_input_index

k:v list of ckey to a number that indexes into the input history, used to update tgui_last_accessed.

tgui_last_accessed

k:v list of ckey to the last used command.

typing_sfx

Typing sound/sfx key

Proc Details

add_peripheral

Adds a peripheral to the peripherals list. Does not handle physical location.

get_history

Get the history entry at a certain index. Returns null if the index is out of bounds or the ckey is null. Will return an empty string for length+1

get_peripheral

Getter for retrieving peripherals in program code.

peripheral_gone

Handles a peripheral moving.

peripheral_input

Called by peripherals to interface with the computer

remove_peripheral

Removes a peripheral from the peripherals list. Does not handle physical location.

set_operating_system

Setter for operating system.

traverse_history

Traverse the current history by some amount. Returns true if different history was accessed, false otherwise (usually if new index OOB)