mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-12 12:31:29 +00:00
18 lines
355 B
Plaintext
18 lines
355 B
Plaintext
/*
|
|
Class: scope
|
|
A runtime instance of a block. Used internally by the interpreter.
|
|
*/
|
|
scope
|
|
var
|
|
scope/parent = null
|
|
node/BlockDefinition/block
|
|
list
|
|
functions
|
|
variables
|
|
|
|
New(node/BlockDefinition/B, scope/parent)
|
|
src.block = B
|
|
src.parent = parent
|
|
src.variables = B.initial_variables.Copy()
|
|
src.functions = B.functions.Copy()
|
|
.=..() |