예제 #1
0
 /// <summary>
 /// Adds a new variable or overwrites one with the same name.
 /// </summary>
 public static void AddVariable(ScriptProcessor processor, string identifier, object data)
 {
     AddVariable(processor, identifier, ScriptInAdapter.Translate(processor, data));
 }
예제 #2
0
        /// <summary>
        /// Sets a member of the original script object.
        /// </summary>
        public void SetMember(string identifier, object value)
        {
            var data = ScriptInAdapter.Translate(_processor, value);

            _objReference.SetMember(_processor, _processor.CreateString(identifier), false, data);
        }