computer_file
Vars | |
computer | The modular computer hosting the file. |
---|---|
disk_host | The computer disk hosting the file. |
file_uid | Static ID to ensure all IDs are unique. |
filename | The name of the internal file shown in file management. |
filetype | The type of file format the file is in, placed after filename. PNG, TXT, ect. This would be NewFile.XXX |
size | How much GQ storage space the file will take to store. Integers only! |
uid | The computer file's personal ID |
undeletable | Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc. |
Procs | |
application_item_interaction | Called on modular computer item_interaction, checking if any application uses the given item. Uses the item interaction chain flags. |
can_store_file | Used for special cases where an application Requires special circumstances to install on a PC Args: |
on_examine | Called when examining a modular computer Args: Source - The tablet that's being examined User - Person examining the computer |
on_install | Called post-installation of an application in a computer, after 'computer' var is set. |
try_eject | Implement this when your program has an object that the user can eject. |
Var Details
computer
The modular computer hosting the file.
disk_host
The computer disk hosting the file.
file_uid
Static ID to ensure all IDs are unique.
filename
The name of the internal file shown in file management.
filetype
The type of file format the file is in, placed after filename. PNG, TXT, ect. This would be NewFile.XXX
size
How much GQ storage space the file will take to store. Integers only!
uid
The computer file's personal ID
undeletable
Whether the file may be deleted. Setting to TRUE prevents deletion/renaming/etc.
Proc Details
application_item_interaction
Called on modular computer item_interaction, checking if any application uses the given item. Uses the item interaction chain flags.
can_store_file
Used for special cases where an application Requires special circumstances to install on a PC Args:
- potential_host - the ModPC that is attempting to store this file.
on_examine
Called when examining a modular computer Args: Source - The tablet that's being examined User - Person examining the computer
note: please replace this with signals when hdd's are removed and program's New() already has the tablet set.
on_install
Called post-installation of an application in a computer, after 'computer' var is set.
try_eject
Implement this when your program has an object that the user can eject.
Examples include ejecting cells AI intellicards. Arguments:
- user - The mob requesting the eject.
- forced - Whether we are forced to eject everything (usually by the app being deleted)