Esempio n. 1
0
        protected override void Update(GameTime gameTime)
        {
            PerformanceManager.StartStopwatch(PerformanceStopwatchType.GlobalUpdate);

            HandleKeyboardInputs();

            base.Update(gameTime);

            if (Pause && !_computeNextFrame)
            {
                return;
            }

            Camera.Update(gameTime);

            ScreenManager.Update(gameTime);

            GuiManager.Update(gameTime);

            if (!GameManager.EndGame())
            {
                SpriteBatchManager.Update(gameTime);
            }

            GameManager.Update(gameTime);

            PerformanceManager.StartStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate);
            PerformanceManager.StopStopwatch(PerformanceStopwatchType.GlobalUpdate);
            PerformanceManager.StopStopwatch(PerformanceStopwatchType.PerformanceManagerUpdate);

            PerformanceManager.Update(gameTime);
        }
Esempio n. 2
0
        public ActionResult EditEntity(PerformanceInfo model)
        {
            if (!ModelState.IsValid)
            {
                return(Json(
                           new OperateResult
                {
                    content = Model.Utility.GetModelStateErrors(ModelState),
                },
                           JsonRequestBehavior.AllowGet
                           ));
            }

            OperateResult or = PerformanceManager.Update(model);

            return(Json(or, JsonRequestBehavior.AllowGet));
        }