mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 08:27:13 +01:00
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
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// 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))
|
||||
Reference in New Issue
Block a user