<commit_before>﻿using System;
using Nez;
using Nez.Sprites;


namespace MacTester
{
	public class SimpleMoonOutlineRenderer : RenderableComponent
	{
		public override float width
		{
			get { return _sprite.width; }
		}

		public override float height
		{
			get { return _sprite.height; }
		}


		Sprite _sprite;


		public SimpleMoonOutlineRenderer( Sprite sprite )
		{
			_sprite = sprite;
			_sprite.enabled = false;
		}


		public override void render( Graphics graphics, Camera camera )
		{
			_sprite.drawOutline( graphics, camera, 3 );
			_sprite.render( graphics, camera );
		}<commit_msg>fixed culling issue with outline renderer<commit_after>﻿using System;
using Nez;
using Nez.Sprites;


namespace MacTester
{
	public class SimpleMoonOutlineRenderer : RenderableComponent
	{
		public override float width
		{
			get { return _sprite.width; }
		}

		public override float height
		{
			get { return _sprite.height; }
		}


		Sprite _sprite;


		public SimpleMoonOutlineRenderer( Sprite sprite )
		{
			_sprite = sprite;
			_sprite.enabled = false;
		}


		public override void onEntityPositionChanged()
		{
			base.onEntityPositionChanged();

			// our sprite is disabled so we need to forward the call over to it so it can update its bounds for rendering
			_sprite.onEntityPositionChanged();
		}


		public override void render( Graphics graphics, Camera camera )
		{
			_sprite.drawOutline( graphics, camera, 3 );
			_sprite.render( graphics, camera );
		}
{'fraction_non_alphanumeric': 0.0761904761904762, 'fraction_numerical': 0.0013605442176870747, 'mean_word_length': 3.5541795665634677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5318539', 'n_tokens_mistral': 539, 'n_tokens_neox': 459, 'n_words': 135}