Esempio n. 1
0
            public TopicSetter(ScriptEngine engine, FuncInst funcInst, DeclInstance.PinDecl pinDecl)
                : base(engine)
            {
                _owner = funcInst;
                _decl  = pinDecl;

                if ((_decl.flags & DeclInstance.Flags.optional) != DeclInstance.Flags.optional)
                {
                    _ref = _owner._owner.Get(_decl.name);
                }
                else
                {
                    _owner._owner.Exist(_decl.name, out _ref);
                }
            }
Esempio n. 2
0
      public TopicSetter(ScriptEngine engine, FuncInst funcInst, DeclInstance.PinDecl pinDecl)
        : base(engine) {
        _owner = funcInst;
        _decl = pinDecl;

        if((_decl.flags & DeclInstance.Flags.optional)!=DeclInstance.Flags.optional) {
          _ref=_owner._owner.Get(_decl.name);
        } else {
          _owner._owner.Exist(_decl.name, out _ref);
        }

      }