computer4 
Vars | |
| 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 |
Procs | |
| 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) |
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)