示例#1
0
 public void Initialize(RegionInfoStructure currentRegion)
 {
     CurrentRegion = currentRegion;
     HookupEvents();
 }
示例#2
0
//        private static bool haveInitialized = false;

        public DotNetEngine()
        {
            RegionInfo = new RegionInfoStructure();
            RegionInfo.Compilers = Compilers;
            RegionInfo.Schedulers = Schedulers;
            RegionInfo.Executors = new Dictionary<string, IScriptExecutor>();
            RegionInfo.CommandProviders = new Dictionary<string, IScriptCommandProvider>();
            RegionInfo.EventProviders = new Dictionary<string, IScriptEventProvider>();
        }
示例#3
0
        public static IScriptEngineComponent GetComponentInstance(RegionInfoStructure info, string name, params Object[] args)
        {
            IScriptEngineComponent c = GetComponentInstance(name, args);

            // If module is IScriptEngineRegionComponent then it will have one instance per region and we will initialize it
            if (typeof(IScriptEngineRegionComponent).IsAssignableFrom(c.GetType()))
                ((IScriptEngineRegionComponent)c).Initialize(info);

            return c;
        }
示例#4
0
 //private RegionInfoStructure CurrentRegion;
 public void Initialize(RegionInfoStructure currentRegion)
 {
     //CurrentRegion = currentRegion;
 }