protected override void Update(GameTime gameTime) { // every update we can now query the keyboard & mouse for our WpfGame var mouseState = mouse.GetState(); var keyboardState = keyboard.GetState(); if (Playing) { SpriteEdited.Update((float)gameTime.ElapsedGameTime.TotalSeconds); } base.Update(gameTime); }
protected virtual void OnSpriteEdited(Sprite s) { SpriteEdited?.Invoke(this, s); }