Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            TimeApp = new TimeApp(new AndroidAppUtilities(this));
            LoadApplication(TimeApp);
        }
Exemplo n.º 2
0
        public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            global::Xamarin.Forms.Forms.Init();
            app = new TimeApp(new WinPhoneAppUtilities());
            LoadApplication(app);
        }
Exemplo n.º 3
0
        public AudioApplication(GlobalWorld source, Context overrideContext) : base(source, overrideContext)
        {
            targetFrequency = TimeSpan.FromSeconds(1f / 500f);
            timeApp         = new TimeApp(Data.Context);
            fts             = new FixedTimeStep {
                TargetFrameTimeMs = (int)targetFrequency.TotalMilliseconds
            };

            worker = new ApplicationWorker("Audio");
        }
Exemplo n.º 4
0
        public SimulationApplication(GlobalWorld source, Context overrideContext) : base(source, overrideContext)
        {
            // register game world since it's kinda important for the simu app, ahah
            Data.Context.BindExisting(gameWorld = new GameWorld());
            Data.Context.BindExisting <IBatchRunner>(batchRunner = new ThreadBatchRunner(0.5f)); // we only use 50% of the cores

            targetFrequency = TimeSpan.FromSeconds(0.02);                                        // 100 fps
            timeApp         = new TimeApp(Data.Context);
            fts             = new FixedTimeStep {
                TargetFrameTimeMs = (int)targetFrequency.TotalMilliseconds
            };

            worker = new ApplicationWorker("Simulation");
        }