Пример #1
0
        public static int Run()
        {
#if !UNIVERSAL
            EngineInternal.Initialize();
#endif
            var command = new CommandLine(Environment.CommandLine);

            var args = new ProcessCommandLineArgs
            {
                Command  = command,
                Handlers = GetHandlers().ToList(),
            };
            foreach (var handler in args.Handlers)
            {
                if (handler.Process(args))
                {
                    return(0);
                }
            }
            return(-1);
        }
Пример #2
0
 public PabloEngine(string platform = null, string defaultWindowsPlatform = "win")
 {
     EngineInternal.Initialize(platform, defaultWindowsPlatform);
 }