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:
Karolis
2021-02-05 16:05:21 +02:00
committed by GitHub
parent 12bb01ad57
commit 607b0eeeb8
38 changed files with 762 additions and 557 deletions
@@ -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))