PathfindingTest.Pathfinding.Node.Draw C# (CSharp) Method

Draw() private method

Standard Draw function.
private Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        internal void Draw(SpriteBatch sb)
        {
            sb.Draw(texture, this.GetDrawRectangle(), null, c, 0f, Vector2.Zero, SpriteEffects.None, 0.9f);
            // Draw some connections twice, but o well!

            // if( Monitor.TryEnter(this.connections, 0) ){
            lock (this.connectionSyncLock)
            {
                try
                {
                    for( int i = 0; i < this.connections.Count(); i++){
                        new DrawableNodeConnection(this.connections.ElementAt(i)).Draw(sb);
                    }
                }
                catch (Exception e) { }
            }

            // sb.DrawString(game.font, "" + score, new Vector2(drawX, drawY - 14), Color.Black);
            // sb.DrawString(game.font, "" + costToStart, new Vector2(drawX, drawY + texture.Height - 2), Color.Black);
            // sb.DrawString(game.font, "" + costToEnd, new Vector2(drawX, drawY + texture.Height + 8), Color.Black);
        }