Engine.Objects.Person.Draw C# (CSharp) Méthode

Draw() public méthode

public Draw ( ) : void
Résultat void
        public void Draw()
        {
            _sprite.Position = new Vector2f(Position.X - _base.Left + Offset.X, Position.Y - _base.Top + Offset.Y);
            Program._window.Draw(_sprite);
#if(DEBUG)
            Line[] lines = _innerSS.GetLineBase();
            double x = Position.X;
            double y = Position.Y;
            double w = BaseWidth + 1;
            double h = BaseHeight + 1;

            GlobalPrimitives.OutlinedRectangle(((int)(x+lines[0].Start.X/2)/16)*16, ((int)(y+ lines[0].Start.Y/2)/16)*16, w, h, _debug2);
            GlobalPrimitives.OutlinedRectangle(x, y, w, h, _debug1);
#endif
        }