class SimpleOnTurnOnPlayEffectDevice extends Device
{
	default m_controllerTypeName = 'SimpleOnTurnOnPlayEffectDeviceController';
	instanceeditable var m_OnTurnOnEffectName : CName;
	instanceeditable var m_OnTurnOffEffectName : CName;

	protected event OnTakeControl( ri : EntityResolveComponentsInterface )
	{
		super.OnTakeControl( ri );
		m_controller = ( ( SimpleOnTurnOnPlayEffectDeviceController )( EntityResolveComponentsInterface.GetComponent( ri, 'controller' ) ) );
	}

	private const override function GetController() : SimpleOnTurnOnPlayEffectDeviceController
	{
		return ( ( SimpleOnTurnOnPlayEffectDeviceController )( m_controller ) );
	}

	public const override function GetDevicePS() : SimpleOnTurnOnPlayEffectDeviceControllerPS
	{
		return GetController().GetPS();
	}

	protected const override function ShouldRegisterToHUD() : Bool
	{
		return false;
	}

	protected override function TurnOnDevice()
	{
		super.TurnOnDevice();
		if( m_OnTurnOnEffectName != '' )
		{
			GameObjectEffectHelper.StartEffectEvent( this, m_OnTurnOnEffectName );
		}
	}

	protected override function TurnOffDevice()
	{
		super.TurnOffDevice();
		if( m_OnTurnOffEffectName != '' )
		{
			GameObjectEffectHelper.StartEffectEvent( this, m_OnTurnOffEffectName );
		}
	}

}

