Exemplo n.º 1
0
 private void LoadEngines()
 {
     EngineCompiler.RecompileAll();
     SelectEngine.Items.Clear();
     //Now lets add the compiled dlls/files to our engine system
     foreach (var assembly in EngineCompiler.Assemblys)
     {
         var cs = new CustomEngine(assembly.Key, assembly.Value.Name);
         SelectEngine.Items.Add(cs);
     }
 }
Exemplo n.º 2
0
            public IEngine CreateReadyToRun(EngineParameters engineParameters)
            {
                var engine = new CustomEngine
                {
                    GlobalCleanupAction = engineParameters.GlobalCleanupAction,
                    GlobalSetupAction   = engineParameters.GlobalSetupAction
                };

                engine.GlobalSetupAction?.Invoke(); // engine factory is now supposed to create an engine which is ready to run (hence the method name change)

                return(engine);
            }
Exemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();
            InitDictionaryImagesElements();
            InitDictionaryImagesBoucliers();
            InitDictionaryImagesElementsJoueur2();
            InitDictionaryImagesBoucliersJoueur2();
            customEngine = new CustomEngine();


            foreach (Gesture g in customEngine.collectionGestes)
            {
                g.GestureRecognized += this.OnGestureRecognized;
            }

            mediaPlayerMusique.Open(new Uri(@"../../Sons/Musique.mp3", UriKind.Relative));
            mediaPlayerMusique.Play();
        }
Exemplo n.º 4
0
 public static void Main()
 {
     CustomEngine engine = new CustomEngine();
     engine.Run();
 }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            var engine = new CustomEngine();

            engine.Run();
        }
Exemplo n.º 6
0
        public static void Main()
        {
            CustomEngine engine = new CustomEngine();

            engine.Run();
        }