Translate() публичный статический Метод

Translates a .Net object to a script object.
public static Translate ( ScriptProcessor processor, object objIn ) : SObject
processor ScriptProcessor
objIn object
Результат Pokemon3D.Scripting.Types.SObject
Пример #1
0
        /// <summary>
        /// Sets a member of the original script object.
        /// </summary>
        public void SetMember(string identifier, object value)
        {
            SObject data = ScriptInAdapter.Translate(_processor, value);

            _objReference.SetMember(_processor, _processor.CreateString(identifier), false, data);
        }
Пример #2
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));
 }