/tg/ Station 13 - Modules - TypesVar Details - Proc Details

computer

Vars

max_capacityThe amount of free storage space
starting_programsList of all programs that the disk should start with
stored_filesList of stored files on this drive. Do NOT directly modify; use setters instead.
used_capacityThe amount of storage space occupied

Procs

add_fileadd_file
remove_fileremove_file

Var Details

max_capacity

The amount of free storage space

starting_programs

List of all programs that the disk should start with

stored_files

List of stored files on this drive. Do NOT directly modify; use setters instead.

used_capacity

The amount of storage space occupied

Proc Details

add_file

add_file

Attempts to add an already existing file to the computer disk, then adds that capacity to the used capicity.

remove_file

remove_file

Removes an app from the stored_files list, then removes their size from the capacity.