mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
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
14 lines
378 B
Plaintext
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)) |