mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] Misc PDA code improvements [MDB IGNORE] (#17026)
* Misc PDA code improvements (#70555) * How to conflict with PRs: A guide * Removes unnecessary support for the now-removed job disks from Tablet's TGUI menu, and tablet's ui_act. * Adds autodoc comments to computer files * Removes the unused 'unsendable' var on computer files * Generally improves code on tablets, now process isn't looping through every idle thread twice! * Moves the check for program in idle_threads above checking if supported by hardware, because it's already running, so there's no need to check. * eh * revert a scipaper change * Misc PDA code improvements * updated contract_uplink Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Tastyfish <crazychris32@gmail.com>
This commit is contained in:
co-authored by
John Willard
Tastyfish
parent
eff29609cd
commit
c023767b25
@@ -1,13 +1,20 @@
|
||||
/datum/computer_file
|
||||
var/filename = "NewFile" // Placeholder. No spacebars
|
||||
var/filetype = "XXX" // File full names are [filename].[filetype] so like NewFile.XXX in this case
|
||||
var/size = 1 // File size in GQ. Integers only!
|
||||
var/obj/item/computer_hardware/hard_drive/holder // Holder that contains this file.
|
||||
var/obj/item/modular_computer/computer
|
||||
var/unsendable = FALSE // Whether the file may be sent to someone via NTNet transfer or other means.
|
||||
var/undeletable = FALSE // Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.
|
||||
var/uid // UID of this file
|
||||
///The name of the internal file shown in file management.
|
||||
var/filename = "NewFile"
|
||||
///The type of file format the file is in, placed after filename. PNG, TXT, ect. This would be NewFile.XXX
|
||||
var/filetype = "XXX"
|
||||
///How much GQ storage space the file will take to store. Integers only!
|
||||
var/size = 1
|
||||
///Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.
|
||||
var/undeletable = FALSE
|
||||
///The computer file's personal ID
|
||||
var/uid
|
||||
///Static ID to ensure all IDs are unique.
|
||||
var/static/file_uid = 0
|
||||
///The hard drive that has this computer file stored.
|
||||
var/obj/item/computer_hardware/hard_drive/holder
|
||||
///The modular computer hosting the file.
|
||||
var/obj/item/modular_computer/computer
|
||||
|
||||
/datum/computer_file/New()
|
||||
..()
|
||||
@@ -28,7 +35,6 @@
|
||||
// Returns independent copy of this file.
|
||||
/datum/computer_file/proc/clone(rename = FALSE)
|
||||
var/datum/computer_file/temp = new type
|
||||
temp.unsendable = unsendable
|
||||
temp.undeletable = undeletable
|
||||
temp.size = size
|
||||
if(rename)
|
||||
|
||||
Reference in New Issue
Block a user