Beispiel #1
0
 public void Initialize(RegionInfoStructure currentRegion)
 {
     CurrentRegion = currentRegion;
     HookupEvents();
 }
Beispiel #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>();
        }
Beispiel #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;
        }
Beispiel #4
0
 //private RegionInfoStructure CurrentRegion;
 public void Initialize(RegionInfoStructure currentRegion)
 {
     //CurrentRegion = currentRegion;
 }