Ejemplo n.º 1
0
        public EngineInstance OpenNew(string title)
        {
            var instance = new EngineInstance(title);
            lock (_Instances)
                _Instances.Add(instance);
            instance.Stopped += OnInstanceStopped;

            instance.RunAsync();

            return instance;
        }
Ejemplo n.º 2
0
        public EngineInstance OpenInNew(string title, MultiComponentFunction func)
        {
            var instance = new EngineInstance(title);
            lock (_Instances)
                _Instances.Add(instance);
            instance.Stopped += OnInstanceStopped;

            instance.AddComponent(func);
            instance.RunAsync();

            return instance;
        }