Nasal: Bug fix

This commit is contained in:
Sidi Liang 2021-06-22 13:19:25 +08:00
parent ba0191046e
commit ab0a04b044
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
1 changed files with 3 additions and 2 deletions

View File

@ -2,13 +2,14 @@
#//Sidi Liang, 2021
io.include("library.nas");
var universalVariableDebug = Debugger.new("Information Node");
var universalVariableDebug = Debugger.new("Universal Variable");
universalVariableDebug.setDebugLevel(2);
var Variable = {
#//The class for a "universal variable"
#//testingVariable = Variable.new("test", "testing", "This is a node for testing", 0, 1, 1, "/systems/testingNode");
new: func(name, value = 0, note = nil, readOnly = 0, usePropertyTree = 0, listenPropertyTree = 1, property = nil){
var m = {parents:[InformationNode]};
var m = {parents:[Variable]};
m._name = name;
m._value = value;
m._note = note;