public SimpleEvaluationDomainProvider()
 {
     if (!this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$)
     {
         this._domain = new EvaluationDomain();
         this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$ = true;
     }
 }
 public SimpleEvaluationDomainProvider()
 {
     if (!this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$)
     {
         this._domain = new EvaluationDomain();
         this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$ = true;
     }
 }
Ejemplo n.º 3
0
        public void CacheScript(EvaluationScriptCacheKey key, Type type)
        {
            EvaluationDomain domain = this;

            lock (domain)
            {
                this._cache[key] = type;
            }
        }
 public SimpleEvaluationDomainProvider(params string[] imports)
 {
     if (!this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$)
     {
         this._domain = new EvaluationDomain();
         this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$ = true;
     }
     this._imports = imports;
 }
 public SimpleEvaluationDomainProvider(params string[] imports)
 {
     if (!this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$)
     {
         this._domain = new EvaluationDomain();
         this.$initialized__UnityScript_Scripting_SimpleEvaluationDomainProvider$ = true;
     }
     this._imports = imports;
 }
Ejemplo n.º 6
0
        private EvaluationDomain GetEvaluationDomain()
        {
            EvaluationDomain evaluationDomain = this._context.ScriptContainer.GetEvaluationDomain();

            if (evaluationDomain == null)
            {
                throw new AssertionFailedException("domain is not null");
            }
            return(evaluationDomain);
        }
Ejemplo n.º 7
0
        public Type GetCachedScript(EvaluationScriptCacheKey key)
        {
            EvaluationDomain domain = this;

            lock (domain)
            {
                object obj1 = this._cache[key];
                if (!(obj1 is Type))
                {
                }
                return((Type)RuntimeServices.Coerce(obj1, typeof(Type)));
            }
        }