Files
Aurora.3/code/modules/modular_computers/file_system/script.dm
Karolis 607b0eeeb8 NTSL2++ sucessor to NTSL2+ (#9321)
This drastcly is meant to rework DM and Daemon code to allow further expansion and replacement of custom engine with JavaScript language based engine.

Daemon PR - Aurorastation/ByondInterpretedLanguage#7

Forums topic for discussion - https://forums.aurorastation.org/topic/14570-ntsl2-and-its-future/

Superseeds #8817
2021-02-05 16:05:21 +02:00

14 lines
378 B
Plaintext

// Computer file types script, used by NTSL2++
/datum/computer_file/script
var/code = "" // Stored data in string format.
filetype = "NTS"
var/block_size = 1500
/datum/computer_file/script/clone()
var/datum/computer_file/script/temp = ..()
temp.code = code
return temp
/datum/computer_file/script/proc/calculate_size()
size = max(1, round(length(code) / block_size))