private void Run(string[] args) { Urho3D.ParseArguments(Assembly.GetExecutingAssembly(), args); Context.SetRuntimeApi(new ScriptRuntimeApiReloadableImpl()); using (var context = new Context()) { using (Application editor = Application.CreateApplicationFromFactory(context, CreateApplication)) { Environment.ExitCode = editor.Run(); } } }
private void Run(string[] args) { Urho3D.ParseArguments(Assembly.GetExecutingAssembly(), args); // TODO: iOS does not allow runtime-compiled code. Context.SetRuntimeApi(new CompiledScriptRuntimeApiImpl()); using (var context = new Context()) { using (var player = Application.CreateApplicationFromFactory(context, CreateApplication)) { Environment.ExitCode = player.Run(); } } }
private void Run(string[] args) { var argc = args.Length + 1; // args + executable path var argv = new string[args.Length + 2]; // args + executable path + null argv[0] = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath; args.CopyTo(argv, 1); Urho3D.ParseArguments(argc, argv); using (_context = new Context()) { using (Application editor = Application.wrap(CreateApplication(Context.getCPtr(_context).Handle), true)) { Environment.ExitCode = editor.Run(); } } }
private void Run(string[] args) { int argc = args.Length + 1; // args + executable path var argv = new string[args.Length + 2]; // args + executable path + null argv[0] = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath; args.CopyTo(argv, 1); Urho3D.ParseArguments(argc, argv); Context.SetRuntimeApi(new ScriptRuntimeApiReloadableImpl()); using (var context = new Context()) { using (Application editor = Application.CreateApplicationFromFactory(context, CreateApplication)) { Environment.ExitCode = editor.Run(); } } }
private void Run(string[] args) { int argc = args.Length + 1; // args + executable path var argv = new string[args.Length + 2]; // args + executable path + null argv[0] = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath; args.CopyTo(argv, 1); Urho3D.ParseArguments(argc, argv); // TODO: iOS does not allow runtime-compiled code. Context.SetRuntimeApi(new CompiledScriptRuntimeApiImpl()); using (var context = new Context()) { using (var player = Application.CreateApplicationFromFactory(context, CreateApplication)) { Environment.ExitCode = player.Run(); } } }