class HighlightConnectionComponentEvent extends Event
{
	var IsHighlightON : Bool;
}

class DeviceConnectionHighlightComponent extends ScriptableComponent
{

	protected event OnDeviceConnectionHighlightEvent( evt : HighlightConnectionComponentEvent )
	{
		if( evt.IsHighlightON )
		{
			SendForceVisionApperaceEvent( true, GetOwner() );
		}
		else
		{
			SendForceVisionApperaceEvent( false, GetOwner() );
		}
	}

	private function SendForceVisionApperaceEvent( enable : Bool, target : GameObject )
	{
		var evt : ForceVisionApperanceEvent;
		var highlight : FocusForcedHighlightData;
		evt = new ForceVisionApperanceEvent;
		highlight = target.GetDefaultHighlight();
		evt.forcedHighlight = highlight;
		evt.apply = enable;
		target.QueueEvent( evt );
	}

}

