mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
17 lines
412 B
Plaintext
17 lines
412 B
Plaintext
/*
|
|
Class: scope
|
|
A runtime instance of a block. Used internally by the interpreter.
|
|
*/
|
|
/datum/scope
|
|
var/datum/scope/parent = null
|
|
var/datum/node/BlockDefinition/block
|
|
var/list/functions
|
|
var/list/variables
|
|
|
|
/datum/scope/New(var/datum/node/BlockDefinition/B, var/datum/scope/parent)
|
|
src.block = B
|
|
src.parent = parent
|
|
src.variables = B.initial_variables.Copy()
|
|
src.functions = B.functions.Copy()
|
|
. = ..()
|