computer_disk
![code/modules/modular_computers/computers/item/disks/computer_disk.dm 1](git.png)
Vars | |
max_capacity | The amount of storage space is on the disk |
---|---|
starting_programs | List of all programs that the disk should start with. |
stored_files | List of stored files on this drive. DO NOT MODIFY DIRECTLY! |
used_capacity | The amount of storage space we've got filled |
Procs | |
add_file | add_file |
remove_file | remove_file |
Var Details
max_capacity
![code/modules/modular_computers/computers/item/disks/computer_disk.dm 8](git.png)
The amount of storage space is on the disk
starting_programs
![code/modules/modular_computers/computers/item/disks/computer_disk.dm 15](git.png)
List of all programs that the disk should start with.
stored_files
![code/modules/modular_computers/computers/item/disks/computer_disk.dm 12](git.png)
List of stored files on this drive. DO NOT MODIFY DIRECTLY!
used_capacity
![code/modules/modular_computers/computers/item/disks/computer_disk.dm 10](git.png)
The amount of storage space we've got filled
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.