class OnOffPrereqState extends PrereqState
{
}

class OnOffPrereq extends IScriptablePrereq
{

	protected const override function OnApplied( state : PrereqState, game : GameInstance, context : IScriptable )
	{
		( ( OnOffPrereqState )( state ) ).OnChanged( true );
	}

	protected const override function OnUnregister( state : PrereqState, game : GameInstance, context : IScriptable )
	{
		( ( OnOffPrereqState )( state ) ).OnChanged( false );
	}

}

