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

detective_scanner_log

Vars

data_entriesScan data for current log
scan_targetName of the scanned atom
scan_timeTime the scan was performed at
sorteddata_entries is an assoc list, which can't use BINARY_INSERT And to not perform sorting pipeline every time new data is added, this var will be utilized to only sort list when it's required

Procs

add_data_entryAdds new data entry to data_entries or updates existing one Entries will be not sorted after using it Returns TRUE if data_entries can be unsorted
generate_report_textReturn text that will be used in printed paper report Called in /obj/item/detective_scanner/proc/print_report()
sort_data_entriesSorts the data_entries list if it's considered not sorted

Var Details

data_entries

Scan data for current log

scan_target

Name of the scanned atom

scan_time

Time the scan was performed at

sorted

data_entries is an assoc list, which can't use BINARY_INSERT And to not perform sorting pipeline every time new data is added, this var will be utilized to only sort list when it's required

Proc Details

add_data_entry

Adds new data entry to data_entries or updates existing one Entries will be not sorted after using it Returns TRUE if data_entries can be unsorted

generate_report_text

Return text that will be used in printed paper report Called in /obj/item/detective_scanner/proc/print_report()

sort_data_entries

Sorts the data_entries list if it's considered not sorted